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.

Try it
Ready-made, maintained by usEvents, 15 fieldsv1.0

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

Searchoptional
Words in the title or description.
Example: teatro
Start dateoptional
Only events still running on or after this day (YYYY-MM-DD).
Example: 2026-12-06
End dateoptional
Only events starting on or before this day (YYYY-MM-DD).
Example: 2027-01-31
Free onlyoptional
Only free events.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/madrid-events/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
10,000 free records of this API to start. No card.
curl
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.

searchtext
Words in the title or description.
example: teatro
start_datetext
Only events still running on or after this day (YYYY-MM-DD).
example: 2026-12-06
end_datetext
Only events starting on or before this day (YYYY-MM-DD).
example: 2027-01-31
free_onlyyes/no
Only free events.
example: true

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
titletextEvent title3 of 3
descriptiontextDescription0 of 3
dtstarttextDtstart3 of 3
dtendtextDtend3 of 3
freeyes or noFree3 of 3
pricetextPrice1 of 3
venuetextVenue name3 of 3
addresstextStreet address3 of 3
districttextMadrid district3 of 3
latitudenumberVenue latitude3 of 3
longitudenumberVenue longitude3 of 3
organizationtextOrganization3 of 3
audiencetextIntended audience0 of 3
urllinkLink3 of 3

How it reads the site

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

Sample records

Sample records
RecordEvent titleDescriptionDtstartDtendFreeVenue nameMadrid districtOrganizationIntended audiencePriceStreet addressVenue latitudeVenue longitudeLink
11927. Lorca y la culminación del teatro poético—Jan 27, 2027Jan 28, 2027NoTeatro EspañolCentroTeatro Español—3 eurosCALLE PRINCIPE 2540.414829-3.700165madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=9621c7fc21dc0a10VgnVCM200000f921e388RCRD
225 años del Museo de San Isidro. Los Orígenes de Madrid—Jul 21, 2026Feb 1, 2027YesMuseo de San Isidro. Los Orígenes de MadridCentroMuseo de San Isidro. Los Orígenes de Madrid——PLAZA SAN ANDRES 240.412079-3.710816madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=92684dde03f7f910VgnVCM200000f921e388RCRD
325 días, 25 historias por descubrir—Dec 1, 2026Dec 26, 2026YesBiblioteca Pública Municipal San Fermín (Usera)UseraBiblioteca Pública Municipal San Fermín (Usera)——AVENIDA SAN FERMIN 1040.371162-3.692743madrid.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.
Known limits
  • 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.