Endpoint Playground
Test Crawlora's GoodRx drug prices 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-prices?slug=atorvastatin" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| slug | string | Yes | atorvastatin | Drug slug from /goodrx/drugs, /goodrx/class, or /goodrx/condition-drugs |
| label | string | No | Brand or generic label slug from /goodrx/drug-options | |
| form | string | No | Form slug from /goodrx/drug-options | |
| dosage | string | No | Dosage slug from /goodrx/drug-options | |
| quantity | integer | No | Quantity (1-999999); /goodrx/drug-options lists GoodRx's standard quantities | |
| latitude | number | No | Latitude of a US location to price at (requires longitude) | |
| longitude | number | No | Longitude of a US location to price at (requires latitude) | |
| zip_code | string | No | Five-digit ZIP code of that location | |
| state | string | No | Two-letter state code of that location |
{
"code": 0,
"message": "success",
"data": {
"drug": {
"slug": "atorvastatin",
"name": "Atorvastatin",
"url": "https://www.goodrx.com/atorvastatin",
"alternate_name": "Generic Lipitor",
"non_proprietary_name": "atorvastatin",
"drug_class": {
"name": "Statins",
"slug": "statins",
"url": "https://www.goodrx.com/classes/statins"
},
"administration_route": "Oral",
"prescription_status": "PrescriptionOnly"
},
"configuration": {
"drug_id": "33396",
"label": "atorvastatin",
"form": "tablet",
"dosage": "20mg",
"quantity": 30,
"summary": "20mg 30 tablets"
},
"location": {
"city": "Los Angeles",
"state": "CA",
"zip_code": "90017"
},
"offers": [
{
"pharmacy_id": "31240",
"pharmacy_name": "Kroger Pharmacy",
"pharmacy_type": "PharmacyChain",
"pricing_type": "COUPON",
"price": 24.99,
"retail_price": 53.73,
"lowest_price": 24.99
}
],
"options": [
{
"name": "Atorvastatin",
"slug": "atorvastatin",
"type": "GENERIC",
"forms": [
{
"name": "tablet",
"slug": "tablet",
"dosages": [
{
"name": "20mg",
"slug": "20mg",
"drug_id": "33396",
"quantities": [
30,
60,
90,
100,
180
],
"default_quantity": 30
}
]
}
]
}
]
}
}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 GoodRx coupon, membership, and mail-order prices by pharmacy for one drug and prescription (brand/generic label, form, dosage, quantity), plus the drug summary, the priced configuration, the location prices were computed for, and every available label/form/dosage/quantity. Omit label/form/dosage/quantity for GoodRx's default prescription; values must come from /goodrx/drug-options. Pass latitude and longitude (optionally zip_code and state) to price at a US location; otherwise prices reflect a US location chosen by GoodRx. Requests use US egress because GoodRx is US-only.
{
"code": 0,
"message": "success",
"data": {
"drug": {
"slug": "atorvastatin",
"name": "Atorvastatin",
"url": "https://www.goodrx.com/atorvastatin",
"alternate_name": "Generic Lipitor",
"non_proprietary_name": "atorvastatin",
"drug_class": {
"name": "Statins",
"slug": "statins",
"url": "https://www.goodrx.com/classes/statins"
},
"administration_route": "Oral",
"prescription_status": "PrescriptionOnly"
},
"configuration": {
"drug_id": "33396",
"label": "atorvastatin",
"form": "tablet",
"dosage": "20mg",
"quantity": 30,
"summary": "20mg 30 tablets"
},
"location": {
"city": "Los Angeles",
"state": "CA",
"zip_code": "90017"
},
"offers": [
{
"pharmacy_id": "31240",
"pharmacy_name": "Kroger Pharmacy",
"pharmacy_type": "PharmacyChain",
"pricing_type": "COUPON",
"price": 24.99,
"retail_price": 53.73,
"lowest_price": 24.99
}
],
"options": [
{
"name": "Atorvastatin",
"slug": "atorvastatin",
"type": "GENERIC",
"forms": [
{
"name": "tablet",
"slug": "tablet",
"dosages": [
{
"name": "20mg",
"slug": "20mg",
"drug_id": "33396",
"quantities": [
30,
60,
90,
100,
180
],
"default_quantity": 30
}
]
}
]
}
]
}
}curl "https://api.crawlora.net/api/v1/goodrx/drug-prices?slug=<slug>" \
-H "x-api-key: $CRAWLORA_API_KEY"