🇪🇸 Spain · AEMPS · CIMA · CIMAVet

Spanish medicine database API

Search every medicine in the AEMPS CIMA catalogue by name, active ingredient, registration number or national code, including veterinary medicines from CIMAVet. One REST API, collected daily, with the source and licence of every record.

Instant access. No credit card required.

GET /v1/drugs
curl -G https://api.medifontis.com/v1/drugs \
  -H "Authorization: Bearer mf_live_your_api_key" \
  --data-urlencode "country=es" \
  --data-urlencode "q=enantyum"
Response
{
  "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
}

Try it before you integrate

Find a medicine by name or code

Explore a small saved sample of official records. Create a free key to search the complete API.

88,749Records · 🇪🇸 Spain
3Official sources · 🇪🇸
199Countries covered
6.7MRecords worldwide

🇪🇸 Spain

Official sources

Every record comes from one of these publishers, with its counts and licence as of the latest collection.

Agencia Española de Medicamentos y Productos Sanitarios

CIMA medicines and packages

Authorised medicines and their packages from the AEMPS CIMA catalogue, with registration numbers and national codes.

Records
67,515
Licence
Publisher terms

Registration number

Agencia Española de Medicamentos y Productos Sanitarios

CIMAVet veterinary medicines

Veterinary medicines from AEMPS CIMAVet, with registration numbers, national codes and ATCvet codes.

Records
20,258
Licence
Publisher terms

ATCvetRegistration numberNational code

Agencia Española de Medicamentos y Productos Sanitarios

Homeopathic medicines

Homeopathic medicines registered with AEMPS.

Records
976
Licence
Publisher terms

National codeRegistration number

Why Medifontis

Built for developers who need medicine data they can trust

One schema for every country

Records from 199 countries share the same JSON shape, so code written for one country works for every other.

Names and national codes

Search brand names, active ingredients and identifiers such as AIC, CN, CIP13, NDC, DIN or BNF codes, without worrying about accents or case.

Provenance on every record

Each result carries its source URL, retrieval time, licence and limitations, so you can show users exactly where the data comes from.

Human and veterinary

Filter by use domain and target species wherever the source publishes them.

Typeahead suggestions

A dedicated endpoint returns distinct names while users type, ranked exact, prefix, then substring.

Collected every day

Every source is collected on a daily schedule and published atomically, so you never read a half-imported country.

Provenance

Every record tells you where it came from

Medifontis never invents or merges data. Each record keeps the identifiers its publisher assigned and states its source, licence and known limitations.

  • sourceUrl links the official dataset the record was collected from.
  • retrievedAt is when Medifontis collected it.
  • licence names the publisher’s terms and the attribution to show.
  • limitations lists what the source does not establish, such as current availability.
Learn about records
Provenance fields
{
  "sourceUrl": "https://cima.aemps.es/cima/rest",
  "retrievedAt": "2026-10-20T04:47:41.074Z",
  "licence": {
    "id": "LicenseRef-AEMPS-CIMA-REST",
    "url": "https://sede.aemps.gob.es/datos-abiertos/",
    "scope": "CIMA REST metadata; not the separately restricted Nomenclátor bulk database",
    "termsUrl": "https://www.aemps.gob.es/aviso-legal/",
    "reviewedAt": "2026-09-24",
    "attribution": "Fuente de la información: Agencia Española de Medicamentos y Productos Sanitarios www.aemps.gob.es",
    "documentsIncluded": false
  },
  "limitations": [
    "Complete unfiltered human-medicine registrations and presentations currently exposed by CIMA, not a historical archive of all Spanish authorisations.",
    "Two identical full passes detect observed drift but CIMA supplies no point-in-time snapshot guarantee.",
    "Authorisation, marketing, prescription requirement and patient/prescriber eligibility are separate facts.",
    "Autonomous-community reimbursement, dispensing pathways, treatment plans and patient eligibility are not collected.",
    "Official document URLs and their supplied modification dates only; no document content or images are redistributed.",
    "REST reuse relies on the AEMPS open-data listing and website notice, not a Creative Commons licence or the Nomenclátor bulk terms."
  ]
}

Use cases

What developers build with Medifontis

Clinical and e-prescribing software

Let clinicians find the exact authorised product and keep its national code with the prescription.

Pharmacy and e-commerce catalogues

Match your catalogue to national codes and keep product names and holders in sync with the regulator.

Patient and telehealth apps

Autocomplete medicine names in medication lists, reminders and intake forms.

AI assistants and agents

Ground answers about medicines in official records instead of model memory.

Market research and analytics

Track authorised products, holders and presentations across countries.

Veterinary software

Search veterinary medicines and their target species where regulators publish them.

FAQ

Frequently asked questions

Where does the data come from?

From the official publishers listed above: AEMPS · CIMA · CIMAVet. Medifontis collects each source as published and keeps every record independent; records from different sources are never merged or matched by name.

How fresh is the data?

Each source is collected every day and the country is published atomically once collection succeeds. Every record carries the time it was retrieved from its source.

Which codes can I search?

Names match anywhere in the text and identifiers match from their first character. For this country that covers registration numbers, national codes and ATCvet codes.

Can I use the data in my product?

Yes, within the licence of each source. Every record includes its licence and attribution text, and some publishers restrict commercial redistribution, so check the licences of the sources you rely on.

Is Medifontis medical advice?

No. Medifontis reports what official sources publish. It does not decide whether a medicine is suitable, available or reimbursed for a patient.

How do I get access?

Create an API key in a few seconds. It works immediately, for every country and every endpoint, and there is nothing to install.

Start building with official medicine data

Your API key works immediately with every country and every endpoint.

Get your API key