Endpoint Playground
Returns a GoodRx head-to-head drug comparison's key takeaways and the two drugs compared, with their price-page and information slugs. Use a slug from /goodrx/comparisons or /goodrx/drug-info alternatives.
14 Oct 2026: 2 drugs; 5 fields had a value in every checked item.
Sample value profiles: name: “Atorvastatin” and 1 other value; url: goodrx.com; info_url: goodrx.com.
curl 'https://api.crawlora.net/api/v1/goodrx/comparison?slug=lipitor-vs-zetia' \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| slug | string | Yes | lipitor-vs-zetia | Comparison slug |
{
"code": 0,
"message": "success",
"data": {
"slug": "lipitor-vs-zetia",
"title": "Lipitor vs. Zetia for High Cholesterol: Important Differences and Potential Risks.",
"url": "https://www.goodrx.com/compare/lipitor-vs-zetia",
"key_takeaways": [
"Atorvastatin (Lipitor) and Ezetimibe (Zetia) are both medications used to manage high cholesterol..."
],
"drugs": [
{
"name": "Atorvastatin",
"slug": "atorvastatin",
"url": "https://www.goodrx.com/atorvastatin",
"info_url": "https://www.goodrx.com/atorvastatin/what-is",
"prescription": "30 tablets / 40mg"
}
]
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.