Endpoint Playground
Test Crawlora's GoodRx drug comparison API with realistic prefilled parameters. Generate a cURL request, inspect the expected structured JSON response, and open the full docs or pricing page when you are ready to integrate this public web data extraction endpoint into your application.
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"
}
]
}
}Public Playground
Sample responses, schemas, request previews, and code snippets are visible before sign in. Create an account when you are ready to save an API key and run authenticated requests.
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.
{
"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"
}
]
}
}curl "https://api.crawlora.net/api/v1/goodrx/comparison?slug=<slug>" \
-H "x-api-key: $CRAWLORA_API_KEY"