> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sanfoundation.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get product details

> Retrieve a product’s description, specifications, and sellers.

Pass an `id` from [product search](https://docs.sanfoundation.com/api-reference/shopping-search.md) unchanged. A search row without an `id` names no product page and cannot be looked up.

Returns what the listing leaves out: the description, the specification table, and every seller offering the product with their own price and link. Use `country` to price the offers, matching the country used for the search.


## OpenAPI

````yaml https://api.sanfoundation.com/openapi.json GET /v1/shopping/{id}
openapi: 3.0.0
info:
  title: SAN API
  description: >-
    Web data and context for agents, served by a network of miners running real
    browsers on residential connections. One resource per thing an agent asks
    for: search the web, read the news, find places, hotels and flights, and
    quote a symbol. Present an API key as `Authorization: Bearer san_...`. Every
    response is snake_case JSON and every error is `{ error: { code, message,
    param } }`.
  version: 0.0.1
  contact: {}
servers: []
security: []
tags:
  - name: web
    description: Web search
  - name: news
    description: News search
  - name: places
    description: Places search
  - name: hotels
    description: Stays search
  - name: flights
    description: Flight search
  - name: finance
    description: Quotes and charts
  - name: shopping
    description: Products and sellers
  - name: account
    description: Plan and remaining budget
paths:
  /v1/shopping/{id}:
    get:
      tags:
        - shopping
      summary: One product and who sells it
      description: >-
        Everything the listing leaves out for one product: its description, its
        specification table and every seller offering it with their own price
        and link. Takes the `id` a shopping search returned. A search row
        without an `id` names no product page and cannot be looked up.
      operationId: ShoppingController_product
      parameters:
        - name: id
          required: true
          in: path
          description: The `id` of a row from a shopping search.
          schema:
            type: string
            example: san1.QkFEQ0FGRTAxMjM0NTY3ODk
        - name: country
          required: false
          in: query
          description: ISO 3166-1 alpha-2. Defaults to `us`.
          schema:
            type: string
            example: us
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductResponseDto'
        '400':
          description: A parameter is missing, invalid or not recognized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorDto'
        '401':
          description: Invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorDto'
        '404':
          description: The id is not one this API issued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorDto'
        '429':
          description: Monthly quota exhausted. Hard stop, no overage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorDto'
        '503':
          description: No miner and no fallback could serve the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorDto'
      security:
        - api_key: []
        - x-api-key: []
components:
  schemas:
    ProductResponseDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Id of this request. Quote it when reporting a problem.
        took_ms:
          type: number
          example: 1420
          description: How long the request took, in milliseconds.
        request:
          additionalProperties: true
          description: >-
            The parameters as accepted, after defaults and normalization. What
            the request actually ran with.
          example:
            id: san1.QkFEQ0FGRTAxMjM0NTY3ODk
            country: us
          allOf:
            - $ref: '#/components/schemas/ProductRequestEchoDto'
        product:
          $ref: '#/components/schemas/ProductDetailDto'
        currency:
          type: string
          example: USD
          description: >-
            ISO 4217 code the prices are quoted in. Prices follow `country`, so
            this is never absent and is not a parameter.
      required:
        - id
        - took_ms
        - request
        - product
        - currency
    PublicErrorDto:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/PublicErrorBodyDto'
      required:
        - error
    ProductRequestEchoDto:
      type: object
      properties:
        id:
          type: string
          example: san1.QkFEQ0FGRTAxMjM0NTY3ODk
        country:
          type: string
          example: us
      required:
        - id
        - country
    ProductDetailDto:
      type: object
      properties:
        name:
          type: string
          example: Sony PlayStation 5 Console Slim Digital Edition
        description:
          type: string
          example: A slimmer console with a 1TB SSD and no disc drive.
        specs:
          description: The specification table as stated, deduplicated by label.
          type: array
          items:
            $ref: '#/components/schemas/ProductSpecDto'
        offers:
          description: >-
            Every seller listed, in the order shown. Empty is a real answer:
            some products are catalogued with nobody selling them.
          type: array
          items:
            $ref: '#/components/schemas/ProductOfferDto'
      required:
        - name
        - offers
    PublicErrorBodyDto:
      type: object
      properties:
        code:
          type: string
          enum:
            - unauthorized
            - missing_parameter
            - invalid_parameter
            - not_found
            - quota_exceeded
            - rate_limited
            - unavailable
            - expired
            - internal_error
          example: missing_parameter
        message:
          type: string
          example: Missing parameter `query`.
        param:
          type: string
          example: query
          description: The parameter at fault, when one parameter is at fault.
      required:
        - code
        - message
    ProductSpecDto:
      type: object
      properties:
        label:
          type: string
          example: Storage
        value:
          type: string
          example: 1 TB SSD
      required:
        - label
        - value
    ProductOfferDto:
      type: object
      properties:
        position:
          type: number
          example: 1
          description: Rank within the offer list, 1 based.
        seller:
          type: string
          example: Best Buy
        price:
          $ref: '#/components/schemas/MoneyDto'
        original_price:
          $ref: '#/components/schemas/MoneyDto'
        discount:
          type: string
          example: 33% off
        badge:
          type: string
          example: Best price
        title:
          type: string
          example: PlayStation 5 Slim Digital, 1TB, white
          description: The seller's own title for the variant it is offering.
        stock:
          type: string
          example: In stock online
        seller_rating:
          type: number
          example: 4.7
          description: The SELLER's rating out of 5, not the product's.
        delivery:
          type: string
          example: Free delivery - Free 30-day returns
        link:
          type: string
          example: https://example.com/product/console-slim
          description: >-
            The seller's own URL, absent when the destination could not be
            resolved.
      required:
        - position
        - seller
    MoneyDto:
      type: object
      properties:
        amount:
          type: number
          example: 180
          description: The amount as a number.
        display:
          type: string
          example: $180
          description: The same amount as displayed, with its currency.
      required:
        - amount
        - display
  securitySchemes:
    api_key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: 'Public API key: `Authorization: Bearer san_...`.'
    x-api-key:
      type: apiKey
      in: header
      name: X-Api-Key
      description: The same public API key, as a header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.