Spain Medicines Database (CIMA)

Medicines authorised in Spain from AEMPS's CIMA database: authorisation holder and marketer, status and dates, prescription rules, generic, biosimilar and orphan flags, supply problems, ATC codes, active ingredients with strengths, dose form, routes, pack national codes and links to the SmPC and leaflet.

$2 per 1,000 records

You pay only for the records you get. Zero records cost zero. 2,500 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usProducts, 36 fieldsv1.0

Data from cima.aemps.es/cima/publico/home.html

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Nameoptional
Words in the medicine's name as CIMA writes it, in Spanish, such as ibuprofeno or IBUPROFENO CINFA.
Example: ibuprofeno
Active ingredientoptional
Only medicines with this active ingredient, in Spanish, such as ibuprofeno or paracetamol.
Example: ibuprofeno
Laboptional
Only medicines whose authorisation holder has this name, such as Stada or Cinfa.
Example: Stada
Atc codeoptional
Only medicines in this ATC class: a full code or its start, such as M01AE01 or M01AE.
Example: M01AE01
Marketed onlyoptional
Only medicines on the market in Spain now.
Authorised onlyoptional
Only medicines whose authorisation is in force, leaving out suspended and revoked ones.
Add detailsoptional
Add ATC codes, active ingredients with strengths and pack national codes (one more read per medicine). Turn off for faster runs.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 2,500 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/spain-medicines/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
2,500 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/spain-medicines/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"name":"ibuprofeno"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

nametext
Words in the medicine's name as CIMA writes it, in Spanish, such as ibuprofeno or IBUPROFENO CINFA.
example: ibuprofeno
active_ingredienttext
Only medicines with this active ingredient, in Spanish, such as ibuprofeno or paracetamol.
example: ibuprofeno
labtext
Only medicines whose authorisation holder has this name, such as Stada or Cinfa.
example: Stada
atc_codetext
Only medicines in this ATC class: a full code or its start, such as M01AE01 or M01AE.
example: M01AE01
marketed_onlyyes/no
Only medicines on the market in Spain now.
default: falseexample: true
authorised_onlyyes/no
Only medicines whose authorisation is in force, leaving out suspended and revoked ones.
default: false
add_detailsyes/no
Add ATC codes, active ingredients with strengths and pack national codes (one more read per medicine). Turn off for faster runs.
default: true

What's in each record

36 fields.

Basics

  • Registration number

    AEMPS registration number of the medicine (nregistro).

    Example 45695

  • Name

    Medicine name with strength and dose form, as authorised.

    Example EPANUTIN 100 mg CAPSULAS DURAS

  • Authorisation holder

    Company that holds the marketing authorisation.

    Example Viatris Healthcare Limited

  • Marketer

    Company that markets the medicine in Spain.

    Example Viatris Pharmaceuticals S.L.U.

  • Status

    Authorised, Suspended or Revoked.

    Example Authorised

  • Marketed

    Yes when the medicine is on the market in Spain.

    Example Yes

  • Has supply problems

    Yes when AEMPS reports a supply problem for it.

    Example Yes

  • Prescription status

    Prescription rule in English, such as Prescription only, Without prescription or Hospital use only.

    Example Prescription only

  • Prescription status es

    Prescription rule as AEMPS writes it, in Spanish.

    Example Medicamento Sujeto A Prescripción Médica. Tratamiento De Larga Duración

  • Prescription required

    Yes when it needs a prescription.

    Example Yes

  • Generic

    True for a generic medicine (EFG).

    Example No

  • Biosimilar

    True for a biosimilar.

    Example No

  • Orphan

    True for an orphan medicine.

    Example No

  • Ema authorised

    Yes when authorised for the whole EU through the European Medicines Agency.

    Example No

  • Has black triangle

    Yes when the medicine is under additional monitoring (black triangle).

    Example No

  • Has driving warning

    Yes when it can affect the ability to drive.

    Example Yes

  • Has safety notes

    Yes when AEMPS has published safety notes about it.

    Example No

  • Has safety materials

    Yes when it has extra safety materials for patients or professionals.

    Example No

  • Substitution restriction

    Why a pharmacist may not swap it for another brand, such as Biological medicine; empty when it may be swapped.

    Example Narrow therapeutic index

  • Active ingredients

    Active ingredients, in Spanish.

    Example FENITOINA SODICA

  • Active ingredient strengths

    Each active ingredient with its amount, such as IBUPROFENO 600 mg (with add_details).

    Example FENITOINA SODICA 100 mg

  • Atc code

    Most specific ATC code, such as M01AE01 (with add_details).

    Example N03AB02

  • Atc name

    Name of that ATC code, in Spanish (with add_details).

    Example Fenitoina

  • Atc codes

    The ATC codes CIMA lists, from the broadest to the most specific (with add_details).

    Example N03A, N03AB

  • Dose

    Dose as CIMA writes it, such as 600 mg.

    Example 100 mg fenitoína sodica

  • Pharmaceutical form

    Dose form, such as COMPRIMIDO RECUBIERTO CON PELÍCULA.

    Example CÁPSULA DURA

  • Form group

    Simplified dose form, such as COMPRIMIDO.

    Example CAPSULA

  • Routes

    Routes of administration, such as VÍA ORAL.

    Example VÍA ORAL

  • National codes

    National codes (CN) of every pack of the medicine (with add_details).

    Example 750976

  • Marketed national codes

    National codes (CN) of the packs on the market (with add_details).

    Example 750976

Dates

  • Authorisation date

    Day the medicine was authorised (Spanish time).

    Example Mar 18, 2003

  • Revocation date

    Day the authorisation was revoked, when it was.

    Example Jan 9, 2023

Pictures and media

  • Package image

    Photo of the medicine in its dose form, when CIMA has one.

    Example Open the image

Technical detailsField names and types for developers

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
registration_numbertextRegistration number3 of 3
urllinkLink3 of 3
nametextName3 of 3
authorisation_holdertextAuthorisation holder3 of 3
marketertextMarketer3 of 3
statustextStatus3 of 3
authorisation_datedateAuthorisation date2 of 3
revocation_datedateRevocation date1 of 3
is_marketedyes or noMarketed3 of 3
has_supply_problemsyes or noHas supply problems3 of 3
prescription_statustextPrescription status3 of 3
prescription_status_estextPrescription status es3 of 3
is_prescription_requiredyes or noPrescription required3 of 3
is_genericyes or noGeneric3 of 3
is_biosimilaryes or noBiosimilar3 of 3
is_orphanyes or noOrphan3 of 3
is_ema_authorisedyes or noEma authorised3 of 3
has_black_triangleyes or noHas black triangle3 of 3
has_driving_warningyes or noHas driving warning3 of 3
has_safety_notesyes or noHas safety notes3 of 3
has_safety_materialsyes or noHas safety materials3 of 3
substitution_restrictiontextSubstitution restriction1 of 3
active_ingredientslistActive ingredients3 of 3
active_ingredient_strengthslistActive ingredient strengths3 of 3
atc_codetextAtc code3 of 3
atc_nametextAtc name3 of 3
atc_codeslistAtc codes3 of 3
dosetextDose3 of 3
pharmaceutical_formtextPharmaceutical form3 of 3
form_grouptextForm group3 of 3
routeslistRoutes3 of 3
national_codeslistNational codes3 of 3
marketed_national_codeslistMarketed national codes2 of 3
smpc_urllinkSmpc link3 of 3
leaflet_urllinkLeaflet link3 of 3
package_imageimage linkPackage image1 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameRegistration numberAuthorisation holderMarketerStatusMarketedHas supply problemsPrescription statusPrescription status esPrescription requiredGenericBiosimilarOrphanEma authorisedHas black triangleHas driving warningHas safety notesHas safety materialsSubstitution restrictionActive ingredientsActive ingredient strengthsAtc codeAtc nameAtc codesDosePharmaceutical formForm groupRoutesNational codesMarketed national codesAuthorisation dateRevocation dateLinkSmpc linkLeaflet linkPackage image
1EPANUTIN 100 mg CAPSULAS DURAS45695Viatris Healthcare LimitedViatris Pharmaceuticals S.L.U.AuthorisedYesYesPrescription onlyMedicamento Sujeto A Prescripción Médica. Tratamiento De Larga DuraciónYesNoNoNoNoNoYesNoNoNarrow therapeutic indexFENITOINA SODICAFENITOINA SODICA 100 mgN03AB02FenitoinaN03A, N03AB, N03AB02100 mg fenitoína sodicaCÁPSULA DURACAPSULAVÍA ORAL750976750976——cima.aemps.es/cima/publico/detalle.html?nregistro=45695cima.aemps.es/cima/pdfs/ft/45695/FT_45695.pdfcima.aemps.es/cima/pdfs/p/45695/P_45695.pdfcima.aemps.es/cima/fotos/thumbnails/formafarmac/45695/45695_formafarmac.jpg
2FENITOINA ACCORD 50 MG/ML SOLUCION INYECTABLE65303Accord Healthcare S.L.U.Accord Healthcare S.L.U.RevokedNoNoHospital use onlyUso HospitalarioYesNoNoNoNoNoYesNoNo—FENITOINA SODICAFENITOINA SODICA 50 mgN03AB02FenitoinaN03A, N03AB, N03AB0250 mgSOLUCIÓN INYECTABLEINYECTABLEVÍA INTRAVENOSA781427, 782318, 616524, 616599—Mar 18, 2003Jan 9, 2023cima.aemps.es/cima/publico/detalle.html?nregistro=65303cima.aemps.es/cima/pdfs/ft/65303/FT_65303.pdfcima.aemps.es/cima/pdfs/p/65303/P_65303.pdf—
3FENITOINA ALTAN 50 MG/ ML SOLUCION INYECTABLE65372Altan Pharmaceuticals S.A.Altan Pharmaceuticals S.A.AuthorisedYesNoHospital use onlyUso HospitalarioYesYesNoNoNoNoYesNoNo—FENITOINA SODICAFENITOINA SODICA 250 mgN03AB02FenitoinaN03A, N03AB, N03AB02AMPOLLASSOLUCIÓN INYECTABLEINYECTABLEVÍA INTRAVENOSA650811, 814798, 600139, 621136621136May 27, 2003—cima.aemps.es/cima/publico/detalle.html?nregistro=65372cima.aemps.es/cima/pdfs/ft/65372/FT_65372.pdfcima.aemps.es/cima/pdfs/p/65372/P_65372.pdf—

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Data from CIMA, the medicines database of the Spanish Agency of Medicines and Medical Devices (AEMPS). Reuse must credit AEMPS as the source and keep the data's meaning; AEMPS does not endorse this API.
  • Names, dose forms, routes, ATC names and ingredient names are in Spanish as AEMPS publishes them; prescription status and substitution rules are translated into English, with the Spanish text in prescription_status_es.
  • With add_details on, each medicine needs one more read, so a run returns about 600 medicines before the run's time limit; turn it off for up to 5,000 medicines per run without ATC codes, strengths and pack codes.
  • A search covers every medicine CIMA lists, including suspended and revoked ones; use authorised_only or marketed_only to keep current products. lab matches the authorisation holder only, not the marketer.
  • CIMA has no published request limit; this API keeps to about three reads a second. AEMPS updates CIMA daily, so marketing status and supply problems can change from one day to the next.

Version history

A run uses the live version unless the request names another one with version.