---
title: "Search DailyMed"
method: GET
path: "/v1/sources/dailymed/search"
tags: ["DailyMed"]
---

# Search DailyMed

`GET /v1/sources/dailymed/search`

## Request

- Base URL: `https://api.assyro.com`
- URL: `https://api.assyro.com/v1/sources/dailymed/search`
- Auth: none declared

Search DailyMed (US National Library of Medicine), the current FDA drug labels (Structured Product Labeling) that manufacturers and repackagers submit, by drug name (brand or generic), labeler, NDC, application number, boxed warning or publication date, or by words in the label text (text, optionally within named sections, e.g. text "serotonin syndrome" in warnings_and_precautions), with labelType to keep prescription, OTC or animal labels. A text search ranks the best matches first and says which section matched. Returns up to 10 labels, each cited by its set id; there are often several labels for one drug (the innovator plus repackagers and generics). A misspelled or unknown brand is retried once by its RxNorm ingredient name (records then say matchedVia "rxnorm"). Call read_dailymed_label for the label text. DailyMed shows what the labeler submitted, which FDA has not necessarily reviewed; it is not an approval record and covers US labels only.

## Query parameters

- `query` string: A drug name, brand or generic, e.g. "ozempic" or "sacubitril and valsartan".
- `nameType` 'brand' | 'generic' | 'both': Match query against brand names, generic names or both (default).
- `labeler` string: Labeler (company) name, or part of it, e.g. "Novo Nordisk".
- `ndc` string: A product or package NDC with dashes, e.g. "0169-4136".
- `applicationNumber` string: NDA, ANDA or BLA number, e.g. "NDA209637".
- `boxedWarning` boolean: true for labels with a boxed warning only, false for labels without one.
- `publishedAfter` string: Only labels DailyMed published on or after this date, YYYY-MM-DD.
- `text` string: Words that must all appear in one section of the label text, e.g. "serotonin syndrome" or "renal impairment dose adjustment"; quote a phrase to match it exactly.
- `sections` string[]: Only with text: search only these label sections (a section includes its subsections). To read named sections of a label, call read_dailymed_label with its setId and sections.
- `labelType` 'human_prescription' | 'human_otc' | 'animal' | 'other': Only human prescription, human OTC, animal or other labels (vaccines, bulk ingredients, ...).
- `limit` integer: Labels to return, default 8.
- `offset` integer: Skip this many labels (for paging), default 0.

## Response `200`

Matching records.

- SearchResponse
  - `version` unknown, required
  - `source` SourceRef, required
    - `id` string, required
    - `label` string, required
    - `authority` string, required
  - `total` integer, nullable, required: Total matches the source reports, when it says.
  - `records` Record[], required
    - `id` string, required: The source's own identifier for the record.
    - `title` string, required
    - `url` string, required: The record's page at the source, to verify it.
    - `authority` string, required: Who published the record.
    - `snippet` string, nullable, required: The part of the record that matched; null where the licence allows only a link.
    - `publishedDate` string, nullable, required
    - `version` string, nullable, required: The edition or revision read.
    - `fields` object, nullable, required: The source's own fields; null where the licence allows only a link.
    - `asOf` string, nullable, required: The day Assyro's copy of the source was read (YYYY-MM-DD).
    - `attribution` string: The attribution the source's licence requires, on sources that require one.
  - `note` string
  - `summary` string[]

## Other responses

- `400`: The request is not valid: an unknown parameter or an argument the source refuses.
- `404`: No such source or record.
- `429`: Rate limited; retry after the Retry-After header.
- `503`: The source cannot answer from Assyro's copy right now.

---

[API](https://skmtc.dev/assyro/apis/assyro-public-data-api.md) - [All operations](https://skmtc.dev/assyro/apis/assyro-public-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/assyro/apis/assyro-public-data-api/revisions/c861290c9f47?raw)
