GoodRx API

GoodRx US Drug Price API for Search, Pharmacy Offers and Drug Information

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.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
3
Endpoints
USD
Currency
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

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.

Request preview
Request
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"
JSON response
{
  "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"
}

What you can build

Structured data for real applications. Here are some ideas.

Prescription Price Comparison

Compare local pharmacy coupon prices for a drug and ZIP before a patient fills a prescription.

Health App Enrichment

Add drug descriptions, side effects and alternative medicines to a consumer health application.

Price Transparency Research

Study public US drug price variation across pharmacies and delivery types over time.

Medication Alternatives

Suggest alternative drugs with pass-through slugs that work directly with the price endpoint.

GoodRx scraper API

GoodRx API for drug search, pharmacy prices and drug information

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.

Choose the right GoodRx API endpoint

Find a drug slug with search

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 docs

Compare prices for a ZIP

Pass 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 docs

Read the monograph and alternatives

Fetch drug information with the same slug and use the returned alternative slugs for further price lookups.

Open GoodRx Drug Information API docs

Available endpoints

Everything you need in one API.

Scrappa vs Apify GoodRx Actors

See how Scrappa compares to Apify GoodRx Actors.

GoodRx data as JSON
Scrappa
Apify GoodRx Actors
Yes (actor output)
Drug search endpoint
Scrappa
Apify GoodRx Actors
No
Drug information endpoint
Scrappa
Apify GoodRx Actors
No
Pickup and mail-order isolation
Scrappa
Apify GoodRx Actors
deliveryType input
Prices as numbers with currency
Scrappa
Apify GoodRx Actors
Yes
Unified API key
Scrappa
Yes (350+ APIs)
Apify GoodRx Actors
Separate actor runs

Key features

Drug name search with pass-through slugs
Pharmacy price cards with coupon price, list price and savings percent
Pickup and mail-order offers kept separate by delivery type
Drug descriptions, side effects summaries and alternatives
Prices as numbers with currency USD and ISO 8601 timestamps
500 free credits per month and one credit per successful request

Frequently asked questions

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.

Start using the GoodRx API

Sign up and get 500 free credits. No credit card required.