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=es" \
--data-urlencode "q=enantyum"const params = new URLSearchParams({ country: 'es', q: 'enantyum' })
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": "es", "q": "enantyum"},
headers={"Authorization": f"Bearer {os.environ['MEDIFONTIS_API_KEY']}"},
timeout=10,
)
response.raise_for_status()
results = response.json()["results"]
{
"country": "es",
"results": [
{
"country": "es",
"sourceId": "es.aemps.cima",
"id": "es:cima:medicines:60927",
"kind": "medicines",
"name": "ENANTYUM 12,5 mg COMPRIMIDOS",
"names": [
"ENANTYUM 12,5 mg COMPRIMIDOS"
],
"identifiers": [
{
"value": "60927",
"scheme": "registration"
}
],
"data": {
"form": "COMPRIMIDO RECUBIERTO",
"name": "ENANTYUM 12,5 mg COMPRIMIDOS",
"holder": "Laboratorios Menarini S.A.",
"doseText": "12,5 mg",
"useDomain": "human",
"supplyRegime": "Medicamento Sujeto A Prescripción Médica"
},
"retrievedAt": "2026-10-20T04:47:41.074Z",
"sourceUrl": "https://cima.aemps.es/cima/rest",
"licence": {
"id": "LicenseRef-AEMPS-CIMA-REST",
"attribution": "Fuente de la información: Agencia Española de Medicamentos y Productos Sanitarios www.aemps.gob.es"
}
}
],
"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.