Periskop Shopping Discovery API

Run a shopping discovery and receive structured product results.

GitHub OpenAPI

Operations 1

POST /v1/mcp/shopping/discover Run Shopping Discovery #

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/periskop-ai:periskop-ai-shopping-discovery-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

periskop-ai-shopping-discovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Periskop Shopping Discovery API
  version: '0.1'
  description: 'Periskop is a Shopping Decision API for agents and workflows. Send a natural-language shopping prompt and receive structured product discovery: recommendations, ranked alternatives, bundle slots, merchant product URLs, price/currency when available, caveats, no-match results, request IDs, machine-readable errors, and an explicit purchase boundary.


    Periskop does NOT buy products, process payments, create merchant carts or checkout, reserve stock, place orders, or guarantee live price/availability. No checkout. No payments. Product links only. Users complete purchases on the merchant website. Every response includes a `purchase_boundary` object that states this contract explicitly.


    This spec describes the REST convenience endpoint, which is the recommended integration path for workflow and agent platforms (Dify, n8n, Pipedream). An MCP JSON-RPC endpoint (`POST /v1/mcp`) is also available for MCP-native clients but is not described here.


    Pricing: EUR. 70 credit_micros = 0.07 credits = €0.007 per successful billable request (1 credit = 1000 credit_micros = €0.10). Only a successful shopping decision is billable; auth errors, malformed requests, internal failures, rate limits and hard no-match responses are never billed.'
  contact:
    name: Periskop
    url: https://periskop.ai
servers:
- url: https://mcp.periskop.ai
  description: Production
tags:
- name: Shopping Discovery
  description: Run a shopping discovery and receive structured product results.
paths:
  /v1/mcp/shopping/discover:
    post:
      operationId: runShoppingDiscovery
      tags:
      - Shopping Discovery
      summary: Run Shopping Discovery
      description: Run a shopping discovery from a natural-language prompt and return structured product results. The only required field is `prompt`. Set `response_format` to `simple` for a compact, easy-to-render shape (recommended for workflow platforms) or `full` for the complete contract. This call performs product discovery only; it never completes a purchase.
      security:
      - bearerApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiscoveryRequest'
            examples:
              simple:
                summary: Minimal request (simple response)
                value:
                  prompt: best desk chair under 60€
                  response_format: simple
              constrained:
                summary: Constrained request
                value:
                  prompt: wireless noise-cancelling headphones for travel
                  response_format: simple
                  country: PT
                  currency: EUR
                  language: en
                  max_results: 5
                  constraints:
                    max_price: 200
                    optimization: best_quality
      responses:
        '200':
          description: 'Discovery completed. The body is a discovery result. A genuine no-match is still a 200 with `answer_type` = `no_match` (and an empty items/products list); infra failures are surfaced via `errors[]`.

            '
          headers:
            X-Request-ID:
              description: Per-call correlation id (mirrors `request_id` in the body).
              schema:
                type: string
            X-RateLimit-Limit:
              schema:
                type: string
            X-RateLimit-Remaining:
              schema:
                type: string
            X-RateLimit-Reset:
              description: Unix epoch seconds when the window resets.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiscoveryResponse'
              examples:
                simple:
                  summary: Simple recommendation result
                  value:
                    schema_version: '0.1'
                    result_id: 00000000-0000-0000-0000-000000000000
                    request_id: 11111111-1111-1111-1111-111111111111
                    answer_type: recommendation
                    summary: Three desk chairs under 60€ from supported stores.
                    suggested_agent_reply: Here are three desk chairs under 60€.
                    items:
                    - title: Ergonomic Mesh Desk Chair
                      price: EUR 59.90
                      image: https://example-merchant.test/img/chair.jpg
                      url: https://example-merchant.test/p/ergo-mesh-chair
                      store: Example Store
                      match_quality: close
                    caveats:
                    - Final price, availability, shipping and seller terms must be confirmed on the merchant site.
                    - Periskop does not complete purchases. Use the product links to buy on the merchant.
                    purchase_boundary:
                      discovery_portal_completes_purchase: false
                      merchant_cart_created: false
                      checkout_created: false
                      purchase_completed: false
                      stock_reserved: false
                      payment_processed: false
                      user_must_complete_purchase_on_merchant_site: true
                      price_guaranteed: false
                      availability_guaranteed: false
                    errors: []
        '400':
          description: Invalid request (e.g. missing/oversized prompt, bad max_results).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: invalid_request
                message: prompt is required.
                recoverable: false
                request_id: 11111111-1111-1111-1111-111111111111
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: unauthorized
                message: Missing or invalid bearer token.
                recoverable: false
        '402':
          description: 'Billing gate blocked the request (credits exhausted, billing required, monthly cap, payment method failed, account canceled). Includes `billing_url`.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: credits_exhausted
                message: Insufficient credits for this request.
                recoverable: false
                request_id: 11111111-1111-1111-1111-111111111111
                billing_url: https://periskop.ai/developer/billing
        '403':
          description: API key lacks the required scope (`shopping:run`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: forbidden_scope
                message: This API key cannot run shopping discovery.
                recoverable: false
        '429':
          description: Rate limit exceeded. Retry after the window resets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: rate_limited
                message: Too many requests.
                recoverable: true
        '503':
          description: Temporary retrieval/runtime/storage failure. Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: retrieval_failed
                message: Discovery temporarily unavailable.
                recoverable: true
components:
  schemas:
    Product:
      type: object
      properties:
        product_id:
          type: string
        title:
          type: string
        price:
          $ref: '#/components/schemas/Price'
        image:
          type:
          - string
          - 'null'
        url:
          type: string
          description: Final, user-openable merchant product URL, decorated with Periskop attribution query params (`utm_source=periskop&utm_medium=referral&utm_campaign=periskop`). Existing merchant query params and fragment are preserved. Open it as-is — the user still completes the purchase on the merchant site.
        store_id:
          type: string
        store_name:
          type: string
        availability:
          type: string
          enum:
          - in_stock
          - out_of_stock
          - unknown
        brand:
          type:
          - string
          - 'null'
        description:
          type:
          - string
          - 'null'
        match_quality:
          type: string
          enum:
          - exact
          - close
          - substitute
          - weak
          - unknown
        match_reason:
          type:
          - array
          - 'null'
          items:
            type: string
        risk_flags:
          type:
          - array
          - 'null'
          items:
            type: string
        last_seen_at:
          type:
          - string
          - 'null'
        item_id:
          type:
          - string
          - 'null'
          description: Stable per-item handle, when present.
        slot_label:
          type:
          - string
          - 'null'
    Price:
      type:
      - object
      - 'null'
      properties:
        amount:
          type:
          - number
          - 'null'
        currency:
          type:
          - string
          - 'null'
        display:
          type:
          - string
          - 'null'
    Constraints:
      type: object
      additionalProperties: false
      description: Optional shopping constraints.
      properties:
        budget:
          type: string
          description: Free-form budget hint.
        max_price:
          type: number
        min_price:
          type: number
        condition:
          type: string
          enum:
          - new
          - used
          - any
        optimization:
          type: string
          enum:
          - cheapest
          - best_quality
          - balanced
          - fastest
          - exact_match
          - one_store
        include_used:
          type: boolean
        include_new:
          type: boolean
    Error:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: invalid_request
        message:
          type: string
          description: Human-readable error message.
        recoverable:
          type: boolean
          description: Whether retrying the request may succeed.
        request_id:
          type:
          - string
          - 'null'
        billing_url:
          type:
          - string
          - 'null'
          description: Present for billing (402) errors only.
    DiscoveryRequest:
      type: object
      required:
      - prompt
      additionalProperties: false
      properties:
        prompt:
          type: string
          maxLength: 4096
          description: Natural-language shopping intent. The only required field.
          example: best desk chair under 60€
        response_format:
          type: string
          enum:
          - full
          - simple
          default: full
          description: '`simple` returns a compact, easy-to-render shape (recommended for workflow platforms). `full` returns the complete contract.

            '
        mode:
          type: string
          enum:
          - auto
          - browse
          - recommend
          - best
          - bundle
          description: 'Optional discovery mode. Leave unset for `auto` (Periskop infers the best mode from the prompt).

            '
        store:
          type: string
          description: Optional store id or natural store hint to scope the search.
        country:
          type: string
          description: ISO country code (e.g. `PT`). Defaults to the account default.
        currency:
          type: string
          description: ISO currency code (e.g. `EUR`). Defaults to the account default.
        language:
          type: string
          description: BCP 47 language tag (e.g. `en`, `pt`).
        max_results:
          type: integer
          minimum: 1
          maximum: 50
          description: Maximum number of products to return (1-50).
        fields:
          type: array
          items:
            type: string
            enum:
            - title
            - price
            - image
            - url
            - store
            - availability
            - description
            - brand
            - match_reason
            - match_quality
            - last_seen_at
            - risk_flags
          description: Optional subset of product fields to include (full format).
        external_user_id:
          type: string
          description: Your end-user identifier, for your own analytics.
        constraints:
          $ref: '#/components/schemas/Constraints'
    PurchaseBoundary:
      type: object
      description: 'Always present. Periskop never completes a purchase. All flags are false except `user_must_complete_purchase_on_merchant_site`.

        '
      properties:
        discovery_portal_completes_purchase:
          type: boolean
          example: false
        merchant_cart_created:
          type: boolean
          example: false
        checkout_created:
          type: boolean
          example: false
        purchase_completed:
          type: boolean
          example: false
        stock_reserved:
          type: boolean
          example: false
        payment_processed:
          type: boolean
          example: false
        user_must_complete_purchase_on_merchant_site:
          type: boolean
          example: true
        price_guaranteed:
          type: boolean
          example: false
        availability_guaranteed:
          type: boolean
          example: false
    SimpleItem:
      type: object
      properties:
        title:
          type: string
        price:
          type:
          - string
          - 'null'
          description: Formatted price string (e.g. `EUR 59.90`), when available.
        image:
          type:
          - string
          - 'null'
        url:
          type: string
          description: Final, user-openable merchant product URL where the user completes the purchase. Decorated with Periskop attribution query params (`utm_source=periskop&utm_medium=referral&utm_campaign=periskop`); any existing merchant query params and fragment are preserved. Open it as-is — do not strip or rewrite the attribution params.
        store:
          type:
          - string
          - 'null'
        match_quality:
          type:
          - string
          - 'null'
          enum:
          - exact
          - close
          - substitute
          - weak
          - unknown
          - null
    DiscoveryResponse:
      type: object
      additionalProperties: true
      description: 'A discovery result. Field presence depends on `response_format` and `answer_type`. `simple` responses populate `items` / `bundle_slots` / `next_actions`; `full` responses populate `products` / `bundle` / `refinements` / `stores_used` / `render_hints` / `handoff`. Both always include `schema_version`, `result_id`, `answer_type`, `summary`, `caveats`, `purchase_boundary` and `errors`.

        '
      properties:
        schema_version:
          type: string
          example: '0.1'
        result_id:
          type: string
          description: Stable id for this result; reusable for 24h via Get Discovery Result.
        request_id:
          type: string
          description: Per-call correlation id (also in the `X-Request-ID` header).
        answer_type:
          type: string
          enum:
          - browse
          - recommendation
          - best_pick
          - bundle
          - closest_match
          - no_match
        mode_used:
          type: string
          description: The mode Periskop actually used (full format).
        interpreted_prompt:
          type: string
          description: Periskop's normalized reading of the prompt (full format).
        summary:
          type: string
          description: Human-readable summary of the result.
        suggested_agent_reply:
          type:
          - string
          - 'null'
          description: An optional ready-to-use reply your agent can show the user.
        confidence:
          type:
          - number
          - 'null'
        items:
          type: array
          description: Simple-format products.
          items:
            $ref: '#/components/schemas/SimpleItem'
        products:
          type: array
          description: Full-format products.
          items:
            $ref: '#/components/schemas/Product'
        bundle_slots:
          type:
          - array
          - 'null'
          description: Simple-format bundle slots.
          items:
            type: object
        bundle:
          type:
          - object
          - 'null'
          description: Full-format bundle (slots + estimated_total).
        next_actions:
          type: array
          description: Suggested follow-up prompts (simple format).
          items:
            type: object
        refinements:
          type: array
          description: Suggested refinements (full format).
          items:
            type: object
        stores_used:
          type: array
          items:
            type: object
        render_hints:
          type:
          - object
          - 'null'
        handoff:
          type:
          - object
          - 'null'
        caveats:
          type: array
          items:
            type: string
        purchase_boundary:
          $ref: '#/components/schemas/PurchaseBoundary'
        errors:
          type: array
          description: Machine-readable errors. Empty on success.
          items:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: Periskop dp_ API key
      description: 'Send your Periskop API key (starts with `dp_`) as a Bearer token: `Authorization: Bearer dp_...`. Create keys in the Periskop developer portal at https://periskop.ai/developer/keys.

        '