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.
https://api.maviapi.com/v1/sites/madrid-cultural-agenda/events5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
daysinteger in query | Optional | 7 | window from today (Madrid time) through today + days; 0 = today only. Ignored when from or to is given. |
pageinteger in query | Optional | 1 | page number, from 1. |
page_sizeinteger in query | Optional | 50 | events per page, 1 to 200 (default 50). |
categorystring in query | Optional | None | activity 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 query | Optional | None | window start date YYYY-MM-DD; overrides days. Alone, the window is that single day. |
tostring in query | Optional | None | window end date YYYY-MM-DD, inclusive. Without from, the window starts today. |
Response fields
totale.g.574pagee.g.1page_sizee.g.50pagese.g.12has_moree.g.truefrome.g."2026-11-27"toe.g."2026-12-04"categoryevents
ide.g."50450293"urle.g."https://www.madrid.es/sites/v/index.jsp?vgnextchannel=ca9671ee4a9eb410VgnVCM100000171f5a0aRCRD&vgnextoid=469aeab2c5e31a10VgnVCM200000f921e388RCRD"titlee.g."RESIDENCIAS PARA ARTISTAS VISUALES"descriptionstarte.g."2020-01-01"ende.g."2030-12-31"start_datee.g."2020-01-01"end_datee.g."2030-12-31"timerecurrencevenue
namee.g."Matadero Madrid"addresse.g."PLAZA LEGAZPI 8, 28045 MADRID"postal_codee.g."28045"districte.g."Arganzuela"neighborhoode.g."Chopera"late.g.40.39130985242181lnge.g.-3.6958028442054074price
minmaxcurrencytextfreee.g.falsecategoryaudiencelong_runninge.g.trueorganizere.g."Matadero Madrid"pagination
counte.g.50has_moree.g.truenext_cursore.g."WzEsIjBlNzgzMjc4IixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-11-27T09:58:18.795Z"agee.g.0Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
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.