Skip to content

Madrid Cultural Agenda Events API

Cultural events of Madrid's city agenda whose date range overlaps a window, including events already running when the window starts, ordered by start date then id. Each event has its venue (address, district, neighbourhood, coordinates), start/end, weekly schedule and excluded days, price and free flag, category, audience and organizer. Returns one page plus the total for the query, page count and whether another page exists. The city publishes its agenda about 100 days ahead, so windows further out return only what it already lists.

GEThttps://api.maviapi.com/v1/sites/madrid-cultural-agenda/events5 credits per call

Parameters

NameRequiredExampleDescription
daysinteger in queryOptional7window from today (Madrid time) through today + days; 0 = today only. Ignored when from or to is given.
pageinteger in queryOptional1page number, from 1.
page_sizeinteger in queryOptional50events per page, 1 to 200 (default 50).
categorystring in queryOptionalNoneactivity type, a top-level type (includes its subtypes) or a subtype such as Musica/Flamenco. Case and accents do not matter. An unknown type is an error listing the known ones.
fromstring in queryOptionalNonewindow start date YYYY-MM-DD; overrides days. Alone, the window is that single day.
tostring in queryOptionalNonewindow end date YYYY-MM-DD, inclusive. Without from, the window starts today.

Response fields

totalintegere.g.574
pageintegere.g.1
page_sizeintegere.g.50
pagesintegere.g.12
has_morebooleane.g.true
fromstringe.g."2026-11-27"
tostringe.g."2026-12-04"
categorynull
eventsobject[]17 fields
idstringe.g."50450293"
urlstringe.g."https://www.madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=469aeab2c5e31a10VgnVCM200000f921e388RCRD"
titlestringe.g."RESIDENCIAS PARA ARTISTAS VISUALES"
descriptionnull
startstringe.g."2020-01-01"
endstringe.g."2030-12-31"
start_datestringe.g."2020-01-01"
end_datestringe.g."2030-12-31"
timenull
recurrencenull
venueobject7 fields
namestringe.g."Matadero Madrid"
addressstringe.g."PLAZA LEGAZPI 8, 28045 MADRID"
postal_codestringe.g."28045"
districtstringe.g."Arganzuela"
neighborhoodstringe.g."Chopera"
latnumbere.g.40.39130985242181
lngnumbere.g.-3.6958028442054074
priceobject4 fields
minnull
maxnull
currencynull
textnull
freebooleane.g.false
categorynull
audiencenull
long_runningbooleane.g.true
organizerstringe.g."Matadero Madrid"
paginationobject3 fields
countintegere.g.50
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjBlNzgzMjc4IixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-27T09:58:18.795Z"
ageintegere.g.0

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/madrid-cultural-agenda/events' \
  -H "Authorization: Bearer $MAVI_KEY"

Madrid Cultural Agenda Events API questions

What you get, what it costs and how to call it.

What does the Madrid Cultural Agenda Events API return?

Cultural events of Madrid's city agenda whose date range overlaps a window, including events already running when the window starts, ordered by start date then id. Each event has its venue (address, district, neighbourhood, coordinates), start/end, weekly schedule and excluded days, price and free flag, category, audience and organizer. Returns one page plus the total for the query, page count and whether another page exists. The city publishes its agenda about 100 days ahead, so windows further out return only what it already lists. The response has total, page, page_size, pages, has_more, from, to, category and 4 more.

Which parameters does the Madrid Cultural Agenda Events API take?

Every parameter of GET /events is optional. You can pass days, page, page_size, category, from and to.

How much does one Madrid Cultural Agenda Events API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the Madrid Cultural Agenda Events API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/madrid-cultural-agenda/events with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the Madrid Cultural Agenda Events API official?

No. It is an independent, hosted API from maviapi for the public data on datos.madrid.es, and it is not made, endorsed or supported by Madrid Cultural Agenda. Its parameters and response fields are documented on this page.