---
title: "Get a GoodRx drug comparison"
method: GET
path: "/goodrx/comparison"
tags: ["GoodRx"]
---

# Get a GoodRx drug comparison

`GET /goodrx/comparison`

## Request

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

Returns a GoodRx head-to-head drug comparison's key takeaways and the two drugs compared, with their price-page and information slugs. Use a slug from /goodrx/comparisons or /goodrx/drug-info alternatives.

## Query parameters

- `slug` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GoodrxComparisonResponseDoc
  - `data` GoodrxComparisonResponse
    - `drugs` GoodrxComparisonDrug[]
      - `info_url` string
      - `name` string
      - `prescription` string
      - `slug` string
      - `url` string
    - `key_takeaways` string[]
    - `slug` string
    - `title` string
    - `url` 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)
