Madrid Cultural Events API
What's on in Madrid over the next 100 days from the City Council's cultural agenda: title, description, start and end, free flag, price, venue, address, district, coordinates, organiser and link.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from datos.madrid.es/egob/catalogo/206974-0-agenda-eventos-culturales-100.json
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 10,000 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/madrid-events/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"search":"teatro"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
15 fields: 14 here, 1 technical one under Technical details.
Basics
- Event title
Example 1927. Lorca y la culminación del teatro poético
- Description
Description in plain text.
Example La Muestra del Libro Infantil y Juvenil es una selección de las novedades literarias más destacadas publicadas en el…
- Dtstart
Start, local Madrid time (YYYY-MM-DD HH:MM).
Example Jan 27, 2027
- Dtend
End, local Madrid time (YYYY-MM-DD HH:MM).
Example Jan 28, 2027
- Free
Yes when entry is free.
Example No
- Venue name
Example Teatro Español
- Madrid district
Example Centro
- Organization
Organising body or venue operator.
Example Teatro Español
- Intended audience
Example Jovenes,Niños,Familias
Prices
- Price
Price as the council writes it.
Example 3 euros
Location
- Street address
Example CALLE PRINCIPE 25
- Venue latitude
Example 40.414829
- Venue longitude
Example -3.700165
Links
- Link
The event's page on madrid.es.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idThe council's id of the event.
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 |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
title | text | Event title | 3 of 3 |
description | text | Description | 0 of 3 |
dtstart | text | Dtstart | 3 of 3 |
dtend | text | Dtend | 3 of 3 |
free | yes or no | Free | 3 of 3 |
price | text | Price | 1 of 3 |
venue | text | Venue name | 3 of 3 |
address | text | Street address | 3 of 3 |
district | text | Madrid district | 3 of 3 |
latitude | number | Venue latitude | 3 of 3 |
longitude | number | Venue longitude | 3 of 3 |
organization | text | Organization | 3 of 3 |
audience | text | Intended audience | 0 of 3 |
url | link | Link | 3 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 | Event title | Description | Dtstart | Dtend | Free | Venue name | Madrid district | Organization | Intended audience | Price | Street address | Venue latitude | Venue longitude | Link |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1927. Lorca y la culminación del teatro poético | — | Jan 27, 2027 | Jan 28, 2027 | No | Teatro Español | Centro | Teatro Español | — | 3 euros | CALLE PRINCIPE 25 | 40.414829 | -3.700165 | madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=9621c7fc21dc0a10VgnVCM200000f921e388RCRD |
| 2 | 25 años del Museo de San Isidro. Los Orígenes de Madrid | — | Jul 21, 2026 | Feb 1, 2027 | Yes | Museo de San Isidro. Los Orígenes de Madrid | Centro | Museo de San Isidro. Los Orígenes de Madrid | — | — | PLAZA SAN ANDRES 2 | 40.412079 | -3.710816 | madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=92684dde03f7f910VgnVCM200000f921e388RCRD |
| 3 | 25 días, 25 historias por descubrir | — | Dec 1, 2026 | Dec 26, 2026 | Yes | Biblioteca Pública Municipal San Fermín (Usera) | Usera | Biblioteca Pública Municipal San Fermín (Usera) | — | — | AVENIDA SAN FERMIN 10 | 40.371162 | -3.692743 | madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=4143cc9b239e1a10VgnVCM100000891ecb1aRCRD |
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.
- The source is one file covering only the next 100 days (about 1,500 events), so nothing further ahead or in the past is returned.
- Titles and descriptions are in Spanish; descriptions and prices are empty for many events, and price is free text such as 3 euros.
- Each run reads the whole file and filters it afterwards, so search and date filters do not make it faster.
- The council refreshes the agenda daily.
- Madrid City Council open data, published with attribution; credit Ayuntamiento de Madrid when you publish it.
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.