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.
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
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
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
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.
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
Links
- Link
The medicine's page on CIMA.
Example cima.aemps.es/cima/publico/detalle.html?nregistro=45695
- Smpc link
Summary of product characteristics (ficha técnica), as a PDF.
- Leaflet link
Package leaflet (prospecto), as a PDF.
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 name | Type | Shown on this page as | Filled |
|---|---|---|---|
registration_number | text | Registration number | 3 of 3 |
url | link | Link | 3 of 3 |
name | text | Name | 3 of 3 |
authorisation_holder | text | Authorisation holder | 3 of 3 |
marketer | text | Marketer | 3 of 3 |
status | text | Status | 3 of 3 |
authorisation_date | date | Authorisation date | 2 of 3 |
revocation_date | date | Revocation date | 1 of 3 |
is_marketed | yes or no | Marketed | 3 of 3 |
has_supply_problems | yes or no | Has supply problems | 3 of 3 |
prescription_status | text | Prescription status | 3 of 3 |
prescription_status_es | text | Prescription status es | 3 of 3 |
is_prescription_required | yes or no | Prescription required | 3 of 3 |
is_generic | yes or no | Generic | 3 of 3 |
is_biosimilar | yes or no | Biosimilar | 3 of 3 |
is_orphan | yes or no | Orphan | 3 of 3 |
is_ema_authorised | yes or no | Ema authorised | 3 of 3 |
has_black_triangle | yes or no | Has black triangle | 3 of 3 |
has_driving_warning | yes or no | Has driving warning | 3 of 3 |
has_safety_notes | yes or no | Has safety notes | 3 of 3 |
has_safety_materials | yes or no | Has safety materials | 3 of 3 |
substitution_restriction | text | Substitution restriction | 1 of 3 |
active_ingredients | list | Active ingredients | 3 of 3 |
active_ingredient_strengths | list | Active ingredient strengths | 3 of 3 |
atc_code | text | Atc code | 3 of 3 |
atc_name | text | Atc name | 3 of 3 |
atc_codes | list | Atc codes | 3 of 3 |
dose | text | Dose | 3 of 3 |
pharmaceutical_form | text | Pharmaceutical form | 3 of 3 |
form_group | text | Form group | 3 of 3 |
routes | list | Routes | 3 of 3 |
national_codes | list | National codes | 3 of 3 |
marketed_national_codes | list | Marketed national codes | 2 of 3 |
smpc_url | link | Smpc link | 3 of 3 |
leaflet_url | link | Leaflet link | 3 of 3 |
package_image | image link | Package image | 1 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | Registration number | Authorisation holder | Marketer | Status | Marketed | Has supply problems | Prescription status | Prescription status es | Prescription required | Generic | Biosimilar | Orphan | Ema authorised | Has black triangle | Has driving warning | Has safety notes | Has safety materials | Substitution restriction | Active ingredients | Active ingredient strengths | Atc code | Atc name | Atc codes | Dose | Pharmaceutical form | Form group | Routes | National codes | Marketed national codes | Authorisation date | Revocation date | Link | Smpc link | Leaflet link | Package image |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | EPANUTIN 100 mg CAPSULAS DURAS | 45695 | Viatris Healthcare Limited | Viatris Pharmaceuticals S.L.U. | Authorised | Yes | Yes | Prescription only | Medicamento Sujeto A Prescripción Médica. Tratamiento De Larga Duración | Yes | No | No | No | No | No | Yes | No | No | Narrow therapeutic index | FENITOINA SODICA | FENITOINA SODICA 100 mg | N03AB02 | Fenitoina | N03A, N03AB, N03AB02 | 100 mg fenitoína sodica | CÁPSULA DURA | CAPSULA | VÍA ORAL | 750976 | 750976 | — | — | cima.aemps.es/cima/publico/detalle.html?nregistro=45695 | cima.aemps.es/cima/pdfs/ft/45695/FT_45695.pdf | cima.aemps.es/cima/pdfs/p/45695/P_45695.pdf | cima.aemps.es/cima/fotos/thumbnails/formafarmac/45695/45695_formafarmac.jpg |
| 2 | FENITOINA ACCORD 50 MG/ML SOLUCION INYECTABLE | 65303 | Accord Healthcare S.L.U. | Accord Healthcare S.L.U. | Revoked | No | No | Hospital use only | Uso Hospitalario | Yes | No | No | No | No | No | Yes | No | No | — | FENITOINA SODICA | FENITOINA SODICA 50 mg | N03AB02 | Fenitoina | N03A, N03AB, N03AB02 | 50 mg | SOLUCIÓN INYECTABLE | INYECTABLE | VÍA INTRAVENOSA | 781427, 782318, 616524, 616599 | — | Mar 18, 2003 | Jan 9, 2023 | cima.aemps.es/cima/publico/detalle.html?nregistro=65303 | cima.aemps.es/cima/pdfs/ft/65303/FT_65303.pdf | cima.aemps.es/cima/pdfs/p/65303/P_65303.pdf | — |
| 3 | FENITOINA ALTAN 50 MG/ ML SOLUCION INYECTABLE | 65372 | Altan Pharmaceuticals S.A. | Altan Pharmaceuticals S.A. | Authorised | Yes | No | Hospital use only | Uso Hospitalario | Yes | Yes | No | No | No | No | Yes | No | No | — | FENITOINA SODICA | FENITOINA SODICA 250 mg | N03AB02 | Fenitoina | N03A, N03AB, N03AB02 | AMPOLLAS | SOLUCIÓN INYECTABLE | INYECTABLE | VÍA INTRAVENOSA | 650811, 814798, 600139, 621136 | 621136 | May 27, 2003 | — | cima.aemps.es/cima/publico/detalle.html?nregistro=65372 | cima.aemps.es/cima/pdfs/ft/65372/FT_65372.pdf | cima.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.
- 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.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.