Medifontis API documentation
Medifontis is a REST API over the official medicine registers of 199 countries. Search medicines by name, active ingredient or national code and get records with their source, licence and limitations.
Quickstart
Make your first request in five minutes.
Authentication
Send your API key and keep it safe.
Search medicines
Names, ingredients and national codes.
API reference
Every endpoint, parameter and field.
Base URL
Every endpoint lives under one host, is versioned in the path and answers JSON:
https://api.medifontis.com/v1
Your first request
Search a medicine with a country code and a query. This is a real request; the response below is what it returned.
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)"
}
}
],
"nextOffset": 2
}
Principles
- Official sources only. Every record comes from a national regulator, ministry or agency, collected as the publisher released it.
- Sources stay independent. Medifontis never merges records or relates them by name. Different sources can describe the same medicine.
- Unknown stays unknown. When a source does not say whether a medicine needs a prescription, is marketed or is reimbursed, the record says unknown rather than guessing.
- Provenance travels with the data. Each record states its source URL, retrieval time, licence and limitations.