Amazon Pharmacy Product Generic Version API
The Amazon Pharmacy generic version is the generic medication that Amazon shows on the product page of a brand medication, in its "Explore the generic version" card. It's returned in the generic_version object, with a serpapi_link to its own product details and prices.
On Amazon's page, the card also shows the strength, form, and prices of the generic version. Amazon loads them separately, so they aren't part of generic_version. The search of its serpapi_link returns them.
The API endpoint is https://serpapi.com/search?engine=amazon_pharmacy_product
Head to the playground for a live and interactive demo.
API examples
Generic version overview
{
"generic_version": {
"asin": "B08429CF3B",
"title": "Levothyroxine",
"link": "https://pharmacy.amazon.com/dp/B08429CF3B",
"serpapi_link": "https://serpapi.com/search.json?asin=B08429CF3B&device=desktop&engine=amazon_pharmacy_product&language=en_US",
"thumbnail": "https://m.media-amazon.com/images/I/21jAbapttrL.jpg"
}
}
JSON structure overview
{
"generic_version": { // only for brand medications
"asin": "String - Amazon Standard Identification Number of the generic version",
"title": "String - Medication name of the generic version (e.g., 'Levothyroxine')",
"link": "String - Product link of the generic version",
"serpapi_link": "String - SerpApi link to the generic version",
"thumbnail": "String - Product image URL of the generic version"
}
}