---
title: "GET /api/public/medication"
method: GET
path: "/api/public/medication"
tags: ["Public"]
---

# GET /api/public/medication

`GET /api/public/medication`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/public/medication`
- Auth: none required

A medication's names, DEA schedule and strengths with FDA shortage status counts, as on its /medications page

## Query parameters

- `kind` 'brands' | 'generics', required
- `name` string, required

## Response `200`

Cached for 10 minutes

- PublicMedication
  - `disp` string, required
  - `nName` string
  - `t` boolean, required
  - `brand` string
  - `generic` string
  - `dea` string
  - `_id` string
  - `dosages` PublicDosage[], required
    - `id` string, required
    - `form` string, required
    - `nForm` string
    - `amounts` PublicAmount[], required
      - `id` string, required
      - `release` string
      - `nAmount` string
      - `amount` string
      - `statusCounts` object
  - `rank` integer, nullable, required

## Other responses

- `404`: Not found
- `429`: Rate limited

---

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