---
title: "Get GoodRx drug prices by pharmacy"
method: GET
path: "/goodrx/drug-prices"
tags: ["GoodRx"]
---

# Get GoodRx drug prices by pharmacy

`GET /goodrx/drug-prices`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/goodrx/drug-prices`
- Auth: API key in header `x-api-key`

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.

## Query parameters

- `slug` string, required
- `label` string
- `form` string
- `dosage` string
- `quantity` integer
- `latitude` number
- `longitude` number
- `zip_code` string
- `state` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GoodrxDrugPricesResponseDoc
  - `data` GoodrxDrugPricesResponse
    - `configuration` GoodrxConfiguration
      - `dosage` string
      - `drug_id` string
      - `form` string
      - `label` string
      - `quantity` integer
      - `summary` string
    - `drug` GoodrxDrugInfo
      - `administration_route` string
      - `alternate_name` string
      - `description` string
      - `drug_class` GoodrxClassRef
        - `name` string
        - `slug` string
        - `url` string
      - `image_url` string
      - `legal_status` string
      - `name` string
      - `non_proprietary_name` string
      - `prescription_status` string
      - `slug` string
      - `url` string
    - `location` GoodrxLocation
      - `city` string
      - `latitude` number
      - `longitude` number
      - `state` string
      - `zip_code` string
    - `offers` GoodrxPharmacyOffer[]
      - `logo_url` string
      - `lowest_price` number
      - `membership` string: Membership names the paid program behind an UPSELL price, for example "COMPANION" (observed value; returned as data).
      - `order_url` string
      - `pharmacy_id` string
      - `pharmacy_name` string
      - `pharmacy_type` string: PharmacyType is "PharmacyChain" (retail) or "PharmacyOnlineStore" (mail order) as observed; returned as data.
      - `price` number
      - `pricing_type` string: PricingType is GoodRx's pricing kind, for example "COUPON", "UPSELL", or "HOME_DELIVERY" (observed values; returned as data).
      - `retail_price` number
    - `options` GoodrxLabelOption[]
      - `forms` GoodrxFormOption[]
        - `dosages` GoodrxDosageOption[]
          - `default_quantity` integer: DefaultQuantity is GoodRx's default quantity for this dosage.
          - `drug_id` string
          - `name` string
          - `quantities` integer[]
          - `slug` string
        - `name` string
        - `slug` string
      - `name` string
      - `slug` string
      - `type` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
