Skip to content

Barcelona Cultural Agenda Events API

Cultural events in Barcelona whose date range overlaps a window (events already running when the window starts are included; events with no end date are left out), 50 per page, ordered by start date then id, with the total for the window and whether another page exists. Each event carries its timetable (as text and as table rows), venue address and coordinates, prices parsed from the timetable, and, read from the event's public page on guia.barcelona.cat, the venue name, image, ticket and sign-up links and status ("scheduled", "cancelled", "postponed", "suspended", "sold_out", "full", "rescheduled" or "changed"; null with the other page fields when the page could not be read; `enriched` counts the rows that have it). Times are local Barcelona time. `long_running` is true for events running more than 31 days.

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

Parameters

NameRequiredExampleDescription
daysinteger in queryOptional30window length in days counted from `from` (default today, Barcelona time); ignored when `to` is given.
fromstring in queryOptionalNonewindow start, YYYY-MM-DD; default today in Barcelona.
tostring in queryOptionalNonewindow end, YYYY-MM-DD, inclusive; overrides `days`.
pageinteger in queryOptional1page of 50 events, starting at 1.

Response fields

fromstringe.g."2026-11-27"
tostringe.g."2026-12-27"
pageintegere.g.1
page_sizeintegere.g.50
totalintegere.g.3152
has_morebooleane.g.true
enrichedintegere.g.50
eventsobject[]22 fields
idstringe.g."99400747710"
urlstringe.g."https://guia.barcelona.cat/ca/detall/taller-familiar-construccio-de-menjadores-per-a-ocells_99400747710.html"
titlestringe.g."Taller familiar: \" Construcció de menjadores per a ocells\""
startstringe.g."2007-03-03T17:30:00"
endstringe.g."2027-03-03T18:30:00"
start_timestringe.g."17:30"
end_timestringe.g."18:30"
dates_notenull
timetablestringe.g."3 març: de 17.30 h a 18.30 h"
scheduleobject[]4 fields
daysstringe.g."3 març"
hoursstringe.g."de 17.30 h a 18.30 h"
pricestringe.g."Gratuit"
notesstringe.g."Cal inscripció prèvia Places limitades"
venueobject8 fields
namestringe.g."Centre Cívic La Sagrera La Barraca"
addressstringe.g."Carrer de Martí Molins, 29"
neighborhoodstringe.g."la Sagrera"
districtstringe.g."Sant Andreu"
zipstringe.g."08027"
townstringe.g."Barcelona"
latnumbere.g.41.42397425702554
lngnumbere.g.2.1891508567064406
priceobject4 fields
minintegere.g.0
maxintegere.g.0
currencystringe.g."EUR"
textstringe.g."Gratuit"
price_minintegere.g.0
price_maxintegere.g.0
freebooleane.g.true
ticket_urlnull
registration_urlstringe.g."http://ajuntament.barcelona.cat/ccivics/lasagrera"
imagenull
statusstringe.g."scheduled"
status_textnull
long_runningbooleane.g.true
updated_atstringe.g."2026-11-19T12:37:10"
paginationobject3 fields
countintegere.g.50
has_morebooleane.g.true
next_cursorstringe.g."WzEsIjBlNzgzMjc4IixudWxsLDAseyJwYWdlIjoyfV0"
fetched_atstringe.g."2026-11-27T10:09:52.318Z"
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/barcelona-agenda/events' \
  -H "Authorization: Bearer $MAVI_KEY"

Barcelona Cultural Agenda Events API questions

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

What does the Barcelona Cultural Agenda Events API return?

Cultural events in Barcelona whose date range overlaps a window (events already running when the window starts are included; events with no end date are left out), 50 per page, ordered by start date then id, with the total for the window and whether another page exists. Each event carries its timetable (as text and as table rows), venue address and coordinates, prices parsed from the timetable, and, read from the event's public page on guia.barcelona.cat, the venue name, image, ticket and sign-up links and status ("scheduled", "cancelled", "postponed", "suspended", "sold_out", "full", "rescheduled" or "changed"; null with the other page fields when the page could not be read; `enriched` counts the rows that have it). Times are local Barcelona time. `long_running` is true for events running more than 31 days. The response has from, to, page, page_size, total, has_more, enriched, events and 3 more.

Which parameters does the Barcelona Cultural Agenda Events API take?

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

How much does one Barcelona 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 Barcelona Cultural Agenda Events API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/barcelona-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 Barcelona Cultural Agenda Events API official?

No. It is an independent, hosted API from maviapi for the public data on opendata-ajuntament.barcelona.cat, and it is not made, endorsed or supported by Barcelona Cultural Agenda. Its parameters and response fields are documented on this page.