Daily Spanish Agency of Medicines and Medical Devices (AEMPS) CIMA REST API tracking active medicine supply problems by Codigo Nacional (CN), expected end dates, supply problem severity types, and guidance notes.
event_period_end_utc)known_time_utc)SHA-256: 0e0fba6e2adc35ac740833d9ab8706701c27fddbba9d4964c40a2293809edfef · Protected URL: https://bitemporal.dev/v1/datasets/es_aemps_drug_shortages_pit_v1.parquet
First five rows from this file showing event dates beside public release times.
event_period_end_utc: event date
known_time_utc: first public release
Delay shows time between them
| codigo_nacional | event_period_end_utc | known_time_utc | Delay | Revision | Entity | medicine_presentation | shortage_type_code |
|---|---|---|---|---|---|---|---|
| 600243 | 2025-08-18T22:00:00Z | 2026-12-02T14:11:08Z | +470d 16h | Original r0 | UNRES_ES_AEMPS_PROLEUKIN_18_X_10_... | PROLEUKIN 18 X 10(6) UI POLVO PA... | 5 |
| 600259 | 2021-01-28T23:00:00Z | 2026-12-02T14:11:08Z | +2133d 15h | Original r0 | UNRES_ES_AEMPS_OMEPRAZOL_SERRACLI... | OMEPRAZOL SERRACLINICS 40 mg POLV... | 5 |
| 600299 | 2026-07-05T22:00:00Z | 2026-12-02T14:11:08Z | +149d 16h | Original r0 | UNRES_ES_AEMPS_CEFAZOLINA_SALA_2_... | CEFAZOLINA SALA 2 G POLVO PARA SO... | 5 |
| 600300 | 2026-09-02T22:00:00Z | 2026-12-02T14:11:08Z | +90d 16h | Original r0 | UNRES_ES_AEMPS_CEFAZOLINA_SALA_1_... | CEFAZOLINA SALA 1 G POLVO PARA SO... | 5 |
| 600633 | 2026-05-06T22:00:00Z | 2026-12-02T14:11:08Z | +209d 16h | Original r0 | UNRES_ES_AEMPS_CEFTAZIDIMA_SALA_1... | CEFTAZIDIMA SALA 1.000 mg POLVO P... | 5 |
-- Query the 100-row sample directly over HTTPS INSTALL httpfs; LOAD httpfs; SELECT COUNT(*), MIN(event_period_end_utc), MAX(known_time_utc) FROM 'https://bitemporal.dev/v1/sample/es_aemps_drug_shortages_pit_v1.parquet'; -- Query the full file (930 rows) with a pass key CREATE OR REPLACE SECRET bt_auth (TYPE HTTP, BEARER_TOKEN 'bt_live_your_token'); SELECT * FROM 'https://bitemporal.dev/v1/datasets/es_aemps_drug_shortages_pit_v1.parquet' LIMIT 25;
# Scan the 100-row sample with Polars import polars as pl sample_df = ( pl.scan_parquet("https://bitemporal.dev/v1/sample/es_aemps_drug_shortages_pit_v1.parquet") .select(["event_period_end_utc", "known_time_utc", "entity_id", "match_status"]) .limit(10) .collect() ) # Read the full file (930 rows) with your API key full_df = pl.scan_parquet( "https://bitemporal.dev/v1/datasets/es_aemps_drug_shortages_pit_v1.parquet", storage_options={"Authorization": "Bearer bt_live_your_token"}, ).collect()
# Check byte-range support on the sample file curl -i -r 0-3 "https://bitemporal.dev/v1/sample/es_aemps_drug_shortages_pit_v1.parquet" # Download the 100-row sample file curl -fSL -o sample.parquet "https://bitemporal.dev/v1/sample/es_aemps_drug_shortages_pit_v1.parquet" # Download the full file (930 rows) curl -fSL -H "Authorization: Bearer bt_live_your_token" -o dataset.parquet "https://bitemporal.dev/v1/datasets/es_aemps_drug_shortages_pit_v1.parquet"
| # | Column | Parquet type | Nullability | Role |
|---|---|---|---|---|
| 1 | codigo_nacional | string | Required | Dataset field |
| 2 | event_period_end_utc | timestamp[ms, tz=UTC] | Required | Event date (UTC) |
| 3 | known_time_utc | timestamp[ms, tz=UTC] | Required | First public release (UTC) |
| 4 | initial_known_time_utc | timestamp[ms, tz=UTC] | Required | Revision history |
| 5 | prior_known_time_utc | timestamp[ms, tz=UTC] | Optional | Revision history |
| 6 | revision_seq | uint16 | Required | Revision history |
| 7 | record_op | string | Required | Revision history |
| 8 | vintage_source | string | Required | Revision history |
| 9 | payload_sha256 | string | Required | Revision history |
| 10 | medicine_presentation | string | Optional | Dataset field |
| 11 | shortage_type_code | int64 | Optional | Dataset field |
| 12 | active | bool | Optional | Dataset field |
| 13 | start_date | date32[day] | Optional | Dataset field |
| 14 | expected_end_date | date32[day] | Optional | Dataset field |
| 15 | observations | string | Optional | Dataset field |
| 16 | raw_payload_json | string | Optional | Revision history |
| 17 | entity_id | string | Required | Entity resolution |
| 18 | match_status | string | Required | Entity resolution |
| 19 | pit_primary_lei | string | Optional | Entity resolution |
| 20 | pit_primary_figi | string | Optional | Entity resolution |
| 21 | pit_primary_cik | string | Optional | Entity resolution |
| 22 | pit_primary_ticker | string | Optional | Entity resolution |
| 23 | pit_primary_ownership_share | float | Required | Entity resolution |
| 24 | entity_mapping_known_time_utc | timestamp[ms, tz=UTC] | Required | Entity resolution |
| 25 | event_year | int16 | Required | Dataset field |
| 26 | event_quarter | int8 | Required | Dataset field |
| 27 | pub_date | date32[day] | Required | Dataset field |