---
title: "GET /api/search/medications"
method: GET
path: "/api/search/medications"
tags: ["Public"]
---

# GET /api/search/medications

`GET /api/search/medications`

## Request

- Base URL: `https://idkrx.com`
- URL: `https://idkrx.com/api/search/medications`
- Auth: none required

Search medications by name with type filtering (g=generic, b=brand)

## Query parameters

- `query` string
- `type` 'g' | 'b'
- `limit` integer
- `skip` integer

## Response `200`

Search results

- MedicationSearchResponse
  - `searched` string
  - `results` MedicationSearchResult[], required
    - `disp` string, required
    - `nName` string
    - `t` boolean, required
    - `brand` string
    - `generic` string
    - `dea` string
    - `_id` string, required
    - `dosages` PublicDosage[]
      - `id` string, required
      - `form` string, required
      - `nForm` string
      - `amounts` PublicAmount[], required
        - `id` string, required
        - `release` string
        - `nAmount` string
        - `amount` string
        - `statusCounts` object

## Other responses

- `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)
