Docs / Guides

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 (Spain):

Source Publisher Records Identifiers
es.aemps.cima
CIMA medicines and packages
Agencia Española de Medicamentos y Productos Sanitarios 67,515 registration
es.aemps.cimavet
CIMAVet veterinary medicines
Agencia Española de Medicamentos y Productos Sanitarios 20,258 atcvet registration national-code
es.aemps.homeopathics
Homeopathic medicines
Agencia Española de Medicamentos y Productos Sanitarios 976 national-code 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
curl -G https://api.medifontis.com/v1/drugs \
  -H "Authorization: Bearer $MEDIFONTIS_API_KEY" \
  --data-urlencode "country=es" \
  --data-urlencode "q=enantyum" \
  --data-urlencode "kinds=es.aemps.cima:medicines"

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

GET /v1/drugs
curl -G https://api.medifontis.com/v1/drugs \
  -H "Authorization: Bearer $MEDIFONTIS_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"
      }
    },
    {
      "country": "es",
      "sourceId": "es.aemps.cima",
      "id": "es:cima:packages:681973",
      "kind": "packages",
      "name": "ENANTYUM 12,5 mg COMPRIMIDOS, 20 comprimidos",
      "names": [
        "ENANTYUM 12,5 mg COMPRIMIDOS, 20 comprimidos",
        "DEXKETOPROFENO TROMETAMOL"
      ],
      "identifiers": [
        {
          "value": "60927",
          "scheme": "registration"
        },
        {
          "value": "681973",
          "scheme": "national-code"
        }
      ],
      "data": {
        "name": "ENANTYUM 12,5 mg COMPRIMIDOS, 20 comprimidos",
        "holder": "Laboratorios Menarini S.A.",
        "useDomain": "human",
        "nationalCode": "681973",
        "supplyRegime": "Medicamento Sujeto A Prescripción Médica",
        "regionalRules": "not-collected"
      },
      "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
}