ProductIndex Search API

The Search API from ProductIndex — 1 operation(s) for search.

GitHub OpenAPI

Operations 1

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/productindex-ai:productindex-ai-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

productindex-ai-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Productindex Ai Search API
  version: 1.0.0
  contact:
    name: ProductIndex
    url: https://productindex.ai/contact
  description: 'Operations tagged Search across 2 of this provider''s published API definitions: productindex-ai-mcp.json, productindex-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://productindex.ai
  description: Production
security: []
tags:
- name: Search
paths:
  /api/search/:
    parameters:
    - $ref: '#/components/parameters/ApiVersion'
    post:
      operationId: search
      summary: Semantic product search
      description: 'Runs the search-agent Lambda pipeline (pgvector + BM25 RRF + Cohere rerank) and returns ranked product results. If the caller has a verified-email session and either sets `bundle: true` or the query matches a bundle-search pattern (e.g. "full kitchen set $900"), a multi-category bundle response is returned instead of a flat result list — see the two response schemas below. Anonymous callers always get the regular (non-bundle) response shape.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: Search results — regular or bundle shape depending on caller eligibility and query.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/SearchResponse'
                - $ref: '#/components/schemas/BundleResponse'
        '400':
          description: Missing or invalid `query`, or request body was not valid JSON.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Bundle-search per-user daily limit exceeded (20/day per authenticated, verified-email user). Only reachable when a bundle query is triggered by a verified-email session — bundle search is gated behind email verification, so an anonymous caller through this endpoint can never enter the bundle path or hit this limit (the per-IP hourly limit documented in docs/search.md applies to other, non-REST callers of the same Lambda, not this route).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: The search-agent Lambda returned a function error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Search is temporarily unavailable. Retry with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Search
    servers:
    - url: https://productindex.ai
      description: Production
components:
  parameters:
    ApiVersion:
      name: ProductIndex-API-Version
      in: header
      required: false
      description: 'API version to use. Optional: the only version is 1, requests without this header get version 1, and any other value is rejected with a 400 (code unsupported_api_version). See the versioning policy in info.description.'
      schema:
        type: string
        enum:
        - '1'
        default: '1'
  schemas:
    BundleCategory:
      type: object
      properties:
        slug:
          type: string
        label:
          type: string
        reasoning:
          type: string
          description: Claude's explanation for this category's allocation.
        budget_allocated:
          type:
          - number
          - 'null'
        over_budget:
          type: boolean
          description: True if no candidate was found within the allocated budget and the category was retried unconstrained.
        product:
          oneOf:
          - $ref: '#/components/schemas/BundleProduct'
          - type: 'null'
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: string
      additionalProperties: true
      description: Common error envelope across every route in this spec. Some validation branches add extra fields alongside `error` (e.g. `field`, `max`, `valid`, `code`) — see each operation's per-status description for the exact fields a given failure mode adds.
    BundleProduct:
      type: object
      properties:
        slug:
          type: string
        url:
          type: string
        title:
          type: string
        price_range:
          type:
          - string
          - 'null'
        verdict:
          type:
          - string
          - 'null'
    SearchResponse:
      type: object
      required:
      - query_id
      - results
      properties:
        query_id:
          type: string
        results:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
    SearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          minLength: 1
          description: Free-text search query.
        session_id:
          type: string
          description: Anonymous session UUID for search-analytics correlation; not an auth credential.
        bundle:
          type: boolean
          description: Explicitly opt into the bundle-search path (skips the keyword-trigger gate, still requires a verified-email session). Ignored for anonymous callers.
        filters:
          type: object
          properties:
            category:
              type: string
              description: Category slug. Setting this disables bundle-search consideration entirely.
            max_price:
              type: number
            min_price:
              type: number
            on_sale:
              type: boolean
        limit:
          type: number
    SearchResult:
      type: object
      properties:
        slug:
          type: string
        title:
          type: string
        category:
          type: string
        verdict:
          type:
          - string
          - 'null'
        price_range:
          type:
          - string
          - 'null'
        url:
          type: string
          description: Relative path, e.g. /p/espresso-machines/breville-bambino-plus
        similarity:
          type: number
        is_sponsored:
          type: boolean
    BundleResponse:
      type: object
      required:
      - type
      - query_id
      - categories
      properties:
        type:
          type: string
          const: bundle
        query_id:
          type: string
        overview:
          type: string
          description: Claude's overall bundle summary.
        categories:
          type: array
          items:
            $ref: '#/components/schemas/BundleCategory'
  securitySchemes:
    integrationSignature:
      type: http
      scheme: signature
      description: 'RFC 9421 HTTP Message Signature with Ed25519, ProductIndex profile (full recipe and a tested Node implementation: https://productindex.ai/docs/developers#dev-sales-reporting). Headers: `Content-Digest: sha-256=:<base64 SHA-256 of the body>:`, `Signature-Input: pi=("@method" "@authority" "@path" "@query" "content-digest");created=<unix>;expires=<unix>;nonce="<22 base64url chars>";keyid="<kid>";alg="ed25519";tag="productindex-integration"`, `Signature: pi=:<base64 signature>:`. `@authority` is productindex.ai, `@path` has no trailing slash, `expires` is at most 60 s after `created`, and each nonce is accepted once. A producer''s own key (kid `custom_…`, created in Producer Dashboard → Sales reporting; ProductIndex stores only the public key) may call only the two /api/attribution/ postbacks, and only for its own organization''s `store`.'
    producerSession:
      type: apiKey
      in: cookie
      name: authjs.session-token
      description: Browser session cookie from signing in at /auth/signin, for a producer account (accountType='producer'). Served as "__Secure-authjs.session-token" over HTTPS. Not directly obtainable by a pure API/agent client — this auth mode is for the dashboard's own fetch() calls and the human-driven signup/verification flow, not for third-party integrations. Third-party/agent integrations should use producerBearerToken where the route supports it.
    producerBearerToken:
      type: http
      scheme: bearer
      description: Shopify-plugin producer link token (issued via the Shopify OAuth/link flow, validated with validateShopifyLinkToken). Only accepted on routes built on resolveProducerAuth — not every producer route supports this; register.ts and ucp-check.ts are session-only.
x-refined-from:
- productindex-ai-mcp.json
- productindex-ai-openapi.json