GoodRx API endpoint
Returns the medications GoodRx lists for one health condition, with each drug's lowest displayed price and summary. Use a slug from /goodrx/conditions whose has_medications is true.
/goodrx/condition-drugsQuery parameters:
slug (required): condition slug from /api/v1/goodrx/conditions whose has_medications is true (for example acne).Recent results are reused: a verified response is served for up to 30 minutes, and GoodRx refuses automated traffic for an hour or more at times. When every live attempt is refused, the last verified response (at most about a day old) is returned instead of an error, with X-Availability-Mode: stale and its age in X-Availability-Last-Success-Age-Seconds. Check those headers to tell a retained copy from a live one. A response returned as stale is billed 1 credit instead of the endpoint's full price.
| Field | Filled in, of 25 checked | Values in the sample |
|---|---|---|
| name | 25 | “Seysara” and 24 other values |
| slug | 25 | |
| url | 25 | goodrx.com |
| lowest_price | 24 | 8 to 1,774, median 37 |
| description | 25 | median 405 characters |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| slug | string | Yes | Condition slug from /goodrx/conditions | acne | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/goodrx/condition-drugs?slug=acne" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 0,
"message": "success",
"data": {
"slug": "acne",
"name": "Acne",
"url": "https://www.goodrx.com/conditions/acne/drugs",
"drugs": [
{
"name": "Seysara",
"slug": "seysara",
"url": "https://www.goodrx.com/seysara",
"lowest_price": 262
}
]
}
}Request schema
No body schema
Response schema
#/definitions/goodrx.conditionDrugsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| data | goodrx.ConditionDrugsResponse | No | ||||
| data.drugs | array | No | DrugLink record, 6 fields: description, info_url, lowest_price, name, slug, url. Described under GoodRx drug class API. | |||
| data.name | string | No | ||||
| data.slug | string | No | ||||
| data.url | string | No |
| 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 |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/goodrx/condition-drugs?slug=acne" \
-H "x-api-key: $CRAWLORA_API_KEY"