Amazon Pharmacy Product Results API

Amazon Pharmacy product results are the details of a medication, like its name, description, form, strength, and delivery information. They're returned in the product_results object. The forms and strengths it's available in are returned in product_results.variant_combinations, and its prices in pricing_options.

When a medication has brand or generic counterparts, subtitle names them, and subtitle_links contains each one Amazon links, with a serpapi_link to its own product details and prices. For a brand medication, Amazon also shows its generic version in a card, which is returned in generic_version.

When Amazon shows a message instead of a medication's prices, for example when the medication is unavailable, product_results.stock contains that message in the requested language. The response omits pricing_options and product_results.delivery, even if you provide a delivery_zip.


The API endpoint is https://serpapi.com/search?engine=amazon_pharmacy_product

Head to the playground for a live and interactive demo.

API examples

Product results overview

Product results overview

JSON Example

{
  "product_results": {
    "asin": "B08429CF3B",
    "title": "Levothyroxine, 50 MCG Tablet",
    "link": "https://pharmacy.amazon.com/dp/B08429CF3B",
    "thumbnail": "https://m.media-amazon.com/images/I/11j7V6PVqEL.jpg",
    "subtitle": "Generic for Unithroid, Synthroid, and Levoxyl",
    "subtitle_links": [
      {
        "text": "Unithroid",
        "asin": "B0846GWT4N",
        "link": "https://pharmacy.amazon.com/dp/B0846GWT4N",
        "serpapi_link": "https://serpapi.com/search.json?asin=B0846GWT4N&device=desktop&engine=amazon_pharmacy_product&language=en_US"
      },
      {
        "text": "Synthroid",
        "asin": "B08462H26B",
        "link": "https://pharmacy.amazon.com/dp/B08462H26B",
        "serpapi_link": "https://serpapi.com/search.json?asin=B08462H26B&device=desktop&engine=amazon_pharmacy_product&language=en_US"
      },
      {
        "text": "Levoxyl",
        "asin": "B0846GGMSS",
        "link": "https://pharmacy.amazon.com/dp/B0846GGMSS",
        "serpapi_link": "https://serpapi.com/search.json?asin=B0846GGMSS&device=desktop&engine=amazon_pharmacy_product&language=en_US"
      }
    ],
    "description": "LEVOTHYROXINE (lee voe thye ROX een) treats low thyroid levels (hypothyroidism) in your body. It works by replacing a thyroid hormone normally made by the body. Thyroid hormones play an important role in your overall health. They help support metabolism and energy levels.",
    "badges": [
      "Rx required"
    ],
    "form": "TABLET",
    "strength": "50 MCG",
    "variant_combinations": [
      {
        "position": 1,
        "dimensions": {
          "form": "CAPSULE",
          "strength": "13 MCG"
        },
        "asin": "B08T698QT7",
        "link": "https://pharmacy.amazon.com/dp/B08T698QT7",
        "serpapi_link": "https://serpapi.com/search.json?asin=B08T698QT7&device=desktop&engine=amazon_pharmacy_product&language=en_US"
      },
      ...
    ]
  }
}

JSON structure overview

{
  "product_results": {
    "asin": "String - Amazon Standard Identification Number",
    "title": "String - Medication name, strength, and form (e.g., 'Levothyroxine, 50 MCG Tablet')",
    "link": "String - Product link",
    "thumbnail": "String - Product image URL",
    "subtitle": "String - Brand or generic relationship (e.g., 'Generic for Unithroid, Synthroid, and Levoxyl')",
    "subtitle_links": [
      {
        "text": "String - Name of a medication linked in the subtitle (e.g., 'Unithroid')",
        "asin": "String - Amazon Standard Identification Number of the linked medication, when the link points to a product page",
        "link": "String - Product link of the linked medication, when the link points to a product page",
        "serpapi_link": "String - SerpApi link to the linked medication, when the link points to a product page"
      },
      ...
    ],
    "description": "String - Medication description, the text of the first section of 'medication_details'",
    "badges": [
      "String - Badge (e.g., 'Rx required')"
    ],
    "stock": "String - Amazon's message when it shows no prices for the medication (e.g., 'Currently unavailable', 'Price currently unavailable')",
    "delivery": [
      "String - Delivery information for the ZIP code, with 'delivery_zip' (e.g., 'FREE delivery is available in your area.')"
    ],
    "form": "String - Medication form (e.g., 'TABLET'), when Amazon shows the form and strength options",
    "strength": "String - Medication strength (e.g., '50 MCG'), when Amazon shows the form and strength options",
    "variant_combinations": [
      {
        "position": "Integer - Combination position",
        "dimensions": {
          "form": "String - Medication form (e.g., 'TABLET')",
          "strength": "String - Medication strength (e.g., '50 MCG')"
        },
        "asin": "String - Amazon Standard Identification Number of the combination",
        "link": "String - Product link of the combination",
        "serpapi_link": "String - SerpApi link to the combination",
        "selected": "Boolean - Whether the combination is the requested medication"
      },
      ...
    ]
  }
}