GoodRx API endpoint
Use Crawlora's GoodRx drug prices API to extract supported public GoodRx data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/goodrx/drug-pricesReturns 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. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| slug | string | Yes | Drug slug from /goodrx/drugs, /goodrx/class, or /goodrx/condition-drugs | atorvastatin | |
| label | string | No | Brand or generic label slug from /goodrx/drug-options | atorvastatin | |
| form | string | No | Form slug from /goodrx/drug-options | tablet | |
| dosage | string | No | Dosage slug from /goodrx/drug-options | 20mg | |
| quantity | integer | No | Quantity (1-999999); /goodrx/drug-options lists GoodRx's standard quantities | 30 | |
| latitude | number | No | Latitude of a US location to price at (requires longitude) | 40.7506 | |
| longitude | number | No | Longitude of a US location to price at (requires latitude) | -73.9972 | |
| zip_code | string | No | Five-digit ZIP code of that location | 10001 | |
| state | string | No | Two-letter state code of that location | NY | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/goodrx/drug-prices?slug=atorvastatin" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"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
}
]
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/goodrx.drugPricesResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | goodrx.DrugPricesResponse | No | ||||
| data.configuration | goodrx.Configuration | No | ||||
| data.configuration.dosage | string | No | ||||
| data.configuration.drug_id | string | No | ||||
| data.configuration.form | string | No | ||||
| data.configuration.label | string | No | ||||
| data.configuration.quantity | integer | No | ||||
| data.configuration.summary | string | No | ||||
| data.drug | goodrx.DrugInfo | No | ||||
| data.drug.administration_route | string | No | ||||
| data.drug.alternate_name | string | No | ||||
| data.drug.description | string | No | ||||
| data.drug.drug_class | goodrx.ClassRef | No | ||||
| data.drug.drug_class.name | string | No | ||||
| data.drug.drug_class.slug | string | No | ||||
| data.drug.drug_class.url | string | No | ||||
| data.drug.image_url | string | No | ||||
| data.drug.legal_status | string | No | ||||
| data.drug.name | string | No | ||||
| data.drug.non_proprietary_name | string | No | ||||
| data.drug.prescription_status | string | No | ||||
| data.drug.slug | string | No | ||||
| data.drug.url | string | No | ||||
| data.location | goodrx.Location | No | ||||
| data.location.city | string | No | ||||
| data.location.latitude | number | No | ||||
| data.location.longitude | number | No | ||||
| data.location.state | string | No | ||||
| data.location.zip_code | string | No | ||||
| data.offers | array | No | ||||
| data.offers[].logo_url | string | No | ||||
| data.offers[].lowest_price | number | No | ||||
| data.offers[].membership | string | No | Membership names the paid program behind an UPSELL price, for example "COMPANION" (observed value; returned as data). | |||
| data.offers[].order_url | string | No | ||||
| data.offers[].pharmacy_id | string | No | ||||
| data.offers[].pharmacy_name | string | No | ||||
| data.offers[].pharmacy_type | string | No | PharmacyType is "PharmacyChain" (retail) or "PharmacyOnlineStore" (mail order) as observed; returned as data. | |||
| data.offers[].price | number | No | ||||
| data.offers[].pricing_type | string | No | PricingType is GoodRx's pricing kind, for example "COUPON", "UPSELL", or "HOME_DELIVERY" (observed values; returned as data). | |||
| data.offers[].retail_price | number | No | ||||
| data.options | array | No | ||||
| data.options[].forms | array | No | ||||
| data.options[].forms[].dosages | array | No | ||||
| data.options[].forms[].dosages[].default_quantity | integer | No | DefaultQuantity is GoodRx's default quantity for this dosage. | |||
| data.options[].forms[].dosages[].drug_id | string | No | ||||
| data.options[].forms[].dosages[].name | string | No | ||||
| data.options[].forms[].dosages[].quantities | array | No | ||||
| data.options[].forms[].dosages[].slug | string | No | ||||
| data.options[].forms[].name | string | No | ||||
| data.options[].forms[].slug | string | No | ||||
| data.options[].name | string | No | ||||
| data.options[].slug | string | No | ||||
| data.options[].type | string | No |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/goodrx/drug-prices?slug=atorvastatin" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms