---
title: "List GoodRx drug classes"
method: GET
path: "/goodrx/classes"
tags: ["GoodRx"]
---

# List GoodRx drug classes

`GET /goodrx/classes`

## Request

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

Lists the drug classes in GoodRx's class directory, such as ACE Inhibitors, with each class name, GoodRx URL and the `slug` used to look up that class. If GoodRx is unreachable, a retained copy up to about a day old is returned and flagged with an `X-Availability-Mode: stale` header.

## Headers

- `x-api-key` string, required

## Response `200`

OK

- GoodrxClassesResponseDoc
  - `data` GoodrxClassesResponse
    - `classes` GoodrxClassRef[]
      - `name` string
      - `slug` string
      - `url` string

## Other responses

- `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/afac9b012a27?raw)
