Endpoint Playground
Test Crawlora's GoodRx drug prescription options 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/drug-options?slug=atorvastatin" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| slug | string | Yes | atorvastatin | Drug slug from /goodrx/drugs |
{
"code": 0,
"message": "success",
"data": {
"drug": {
"slug": "atorvastatin",
"name": "Atorvastatin",
"url": "https://www.goodrx.com/atorvastatin"
},
"default": {
"drug_id": "33396",
"label": "atorvastatin",
"form": "tablet",
"dosage": "20mg",
"quantity": 30
},
"options": [
{
"name": "Lipitor",
"slug": "lipitor",
"type": "BRAND",
"forms": [
{
"name": "tablet",
"slug": "tablet",
"dosages": [
{
"name": "10mg",
"slug": "10mg",
"drug_id": "1537",
"quantities": [
30,
36,
60,
90
],
"default_quantity": 90
}
]
}
]
}
]
}
}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 every brand and generic label, dosage form, strength, and quantity GoodRx prices for one drug, with GoodRx's default prescription. Use these values for /goodrx/drug-prices.
{
"code": 0,
"message": "success",
"data": {
"drug": {
"slug": "atorvastatin",
"name": "Atorvastatin",
"url": "https://www.goodrx.com/atorvastatin"
},
"default": {
"drug_id": "33396",
"label": "atorvastatin",
"form": "tablet",
"dosage": "20mg",
"quantity": 30
},
"options": [
{
"name": "Lipitor",
"slug": "lipitor",
"type": "BRAND",
"forms": [
{
"name": "tablet",
"slug": "tablet",
"dosages": [
{
"name": "10mg",
"slug": "10mg",
"drug_id": "1537",
"quantities": [
30,
36,
60,
90
],
"default_quantity": 90
}
]
}
]
}
]
}
}curl "https://api.crawlora.net/api/v1/goodrx/drug-options?slug=<slug>" \
-H "x-api-key: $CRAWLORA_API_KEY"