Drug Search
/api/goodrx/search
Find US drugs by name with pass-through slugs
Scrappa's GoodRx API returns structured JSON from public GoodRx pages: search US prescription drugs, compare pharmacy coupon prices for a drug and ZIP, and read drug descriptions, side effects and alternatives. Scrappa is an independent service and is not affiliated with or endorsed by GoodRx.
Try it now
Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.
curl -X GET "https://scrappa.co/api/goodrx/drug?slug=atorvastatin&location=10001&quantity=30" \
-H "Accept: application/json" \
-H "X-API-KEY: YOUR_API_KEY"
{
"success": true,
"currency": "USD",
"total": 1,
"offers": [
{
"pharmacyChain": "CVS",
"storeName": "CVS #123",
"couponPrice": 12.5,
"listPrice": 40,
"savingsPercent": 68.8,
"deliveryType": "pickup",
"scrapedAt": "2026-11-17T10:00:00Z"
}
],
"slug": "atorvastatin",
"delivery_type": "pickup"
}
Structured data for real applications. Here are some ideas.
Compare local pharmacy coupon prices for a drug and ZIP before a patient fills a prescription.
Add drug descriptions, side effects and alternative medicines to a consumer health application.
Study public US drug price variation across pharmacies and delivery types over time.
Suggest alternative drugs with pass-through slugs that work directly with the price endpoint.
GoodRx scraper API
The GoodRx API returns public, logged-out data as JSON. Search a drug by name, pass its slug to the price endpoint with a US ZIP, and read the monograph for description, side effects and alternatives. Prices are numbers with USD currency, and mail-order offers stay separate from pickup offers.
Search drugs by name and receive the drug name and a pass-through slug.
Compare pharmacy coupon prices with list price, savings percent, distance and coupon link.
Keep pickup and mail-order offers isolated with the deliveryType parameter.
Read drug descriptions, side effects summaries and alternatives.
All prices are numbers with currency USD; timestamps use ISO 8601.
Test the GoodRx API with 500 free monthly credits before scaling production traffic.
Search by drug name and read the slug from each result. The same slug works on the price and drug-info endpoints.
Open GoodRx Search API docsPass the slug with a five-digit US ZIP, quantity and delivery type to get pharmacy price cards with coupon and list prices.
Open GoodRx Pharmacy Prices API docsFetch drug information with the same slug and use the returned alternative slugs for further price lookups.
Open GoodRx Drug Information API docsEverything you need in one API.
/api/goodrx/search
Find US drugs by name with pass-through slugs
/api/goodrx/drug
Compare public pharmacy coupon prices for a drug and ZIP
/api/goodrx/drug-info
Read a drug description, side effects and alternatives
See how Scrappa compares to Apify GoodRx Actors.
| Feature | Scrappa | Apify GoodRx Actors |
|---|---|---|
| GoodRx data as JSON | Yes (actor output) | |
| Drug search endpoint | No | |
| Drug information endpoint | No | |
| Pickup and mail-order isolation | deliveryType input | |
| Prices as numbers with currency | Yes | |
| Unified API key | Yes (350+ APIs) | Separate actor runs |
No. Scrappa is an independent service and is not affiliated with or endorsed by GoodRx. The API returns structured JSON from public GoodRx web pages through a Scrappa API key.
Use the slug from a search result, for example atorvastatin. The same slug also works on the drug-info endpoint.
No. Set deliveryType to pickup or mail_order. The response only contains offers of the requested type.
All prices are numbers with currency USD. Timestamps such as scrapedAt use ISO 8601.
No. Only successful lookups are billed. A blocked or empty upstream response returns 503 with billable set to false.