Search medicines
GET /v1/drugs searches every record of every source in one country by name, active ingredient or identifier.
How matching works
- Names match anywhere in the text, so part of a brand name finds it.
- Identifiers match from their first character, so the beginning of a code finds every record whose code starts with it.
- Accents and case are ignored.
- The query is literal text, without wildcards or operators, and needs 3 to 120 characters.
Ranking
Exact matches come first, then records whose name starts with the query, then other matches; ties are ordered by record name.
🇧🇷 Searchable identifiers
These are the identifier schemes of each source of this country (Brazil):
| Source | Publisher | Records | Identifiers |
|---|---|---|---|
br.anvisa.cmed-pricesCMED medicine price list |
Câmara de Regulação do Mercado de Medicamentos (CMED), Secretaria Executiva exercida pela Agência Nacional de Vigilância Sanitária (ANVISA) | 26,635 |
barcode ggrem registration
|
br.mapa.veterinary-biologicalsVeterinary biologicals |
Ministério da Agricultura e Pecuária (MAPA) | 1,744 |
mapa-biological-licence mapa-registration
|
br.mapa.veterinary-pharmaceuticalsVeterinary pharmaceuticals |
Ministério da Agricultura e Pecuária (MAPA) | 2,772 |
mapa-product-key mapa-registration
|
Filter by record kind
A source can publish several kinds of records, such as packages, active ingredients or ATC classes. Pass kinds to keep only the ones your application uses. The filter applies before paging, so other kinds cannot push them off a page.
curl -G https://api.medifontis.com/v1/drugs \
-H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
--data-urlencode "country=br" \
--data-urlencode "q=dipirona sodica" \
--data-urlencode "kinds=br.anvisa.cmed-prices:presentations"
kinds takes up to 12 comma-separated sourceId:kind pairs, all of the requested country. A malformed pair, or one of another country, answers 400.
Filter by use and species
useDomain and species keep only human or veterinary medicines, or only those for a target species. Human and veterinary medicines.
Pagination
limit sets the page size, from 1 to 50 (default 20), and offset skips results, up to 10000. Each response carries nextOffset, the offset of the next page, or null on the last one.
Example
curl -G https://api.medifontis.com/v1/drugs \
-H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
--data-urlencode "country=br" \
--data-urlencode "q=dipirona sodica"const params = new URLSearchParams({ country: 'br', q: 'dipirona sodica' })
const response = await fetch(`https://api.medifontis.com/v1/drugs?${params}`, {
headers: { Authorization: `Bearer ${process.env.MEDIFONTIS_API_KEY}` },
})
if (!response.ok) throw new Error(`Medifontis ${response.status}`)
const { results, nextOffset } = await response.json()import os
import requests
response = requests.get(
"https://api.medifontis.com/v1/drugs",
params={"country": "br", "q": "dipirona sodica"},
headers={"Authorization": f"Bearer {os.environ['MEDIFONTIS_API_KEY']}"},
timeout=10,
)
response.raise_for_status()
results = response.json()["results"]
{
"country": "br",
"results": [
{
"country": "br",
"sourceId": "br.anvisa.cmed-prices",
"id": "br:cmed:presentations:528525010218907",
"kind": "presentations",
"name": "DIPIRONA SODICA 1000 MG COM CT BL AL PLAS AMB X 30",
"names": [
"DIPIRONA SODICA 1000 MG COM CT BL AL PLAS AMB X 30",
"DIPIRONA SODICA",
"DIPIRONA"
],
"identifiers": [
{
"value": "1256800410339",
"scheme": "registration"
},
{
"value": "528525010218907",
"scheme": "ggrem"
},
{
"value": "7899547553505",
"scheme": "barcode"
}
],
"data": {
"name": "DIPIRONA SODICA 1000 MG COM CT BL AL PLAS AMB X 30",
"holder": "PRATI DONADUZZI & CIA LTDA",
"stripe": "Tarja Sem Tarja",
"currency": "BRL",
"ggremCode": "528525010218907",
"useDomain": "unknown"
},
"retrievedAt": "2026-10-20T07:01:32.181Z",
"sourceUrl": "https://www.gov.br/anvisa/pt-br/assuntos/medicamentos/cmed/precos",
"licence": {
"id": "LicenseRef-CMED-Lista-Precos",
"attribution": "Fonte: Câmara de Regulação do Mercado de Medicamentos (CMED), Secretaria Executiva/ANVISA — Lista de Preços de Medicamentos (Preços Fábrica e Máximos ao Consumidor)"
}
},
{
"country": "br",
"sourceId": "br.anvisa.cmed-prices",
"id": "br:cmed:presentations:528513110124306",
"kind": "presentations",
"name": "DIPIRONA SODICA 1000 MG COM CT BL AL PLAS TRANS X 10",
"names": [
"DIPIRONA SODICA 1000 MG COM CT BL AL PLAS TRANS X 10",
"DIPIRONA SODICA",
"DIPIRONA"
],
"identifiers": [
{
"value": "1256800410150",
"scheme": "registration"
},
{
"value": "528513110124306",
"scheme": "ggrem"
},
{
"value": "7899547500356",
"scheme": "barcode"
}
],
"data": {
"name": "DIPIRONA SODICA 1000 MG COM CT BL AL PLAS TRANS X 10",
"holder": "PRATI DONADUZZI & CIA LTDA",
"stripe": "Tarja Sem Tarja",
"currency": "BRL",
"ggremCode": "528513110124306",
"useDomain": "unknown"
},
"retrievedAt": "2026-10-20T07:01:32.181Z",
"sourceUrl": "https://www.gov.br/anvisa/pt-br/assuntos/medicamentos/cmed/precos",
"licence": {
"id": "LicenseRef-CMED-Lista-Precos",
"attribution": "Fonte: Câmara de Regulação do Mercado de Medicamentos (CMED), Secretaria Executiva/ANVISA — Lista de Preços de Medicamentos (Preços Fábrica e Máximos ao Consumidor)"
}
}
],
"nextOffset": 2
}