Last updated
Changeloganalisi.transparenciacatalunya.cat API
HealthyRead-onlyStructured data from analisi.transparenciacatalunya.cat. Generated from analisi.transparenciacatalunya.cat.
/events1 credit per callEvents
Cultural events anywhere in Catalonia that take place in a date window, 100 per page, ordered by start date then id.
Details
An event is included when its run (first day to last day) overlaps the window. An event held at several venues has one row per venue, with id "<code>-<venue hash>". Start and end carry the Europe/Madrid offset when the schedule states one clear clock time, else are a plain date; end is null for permanent events. sessions appears only when the schedule lists several dates inside the window. Price max is null for "from X EUR" prices. Schedule text is in Catalan. distance_km is given for a radius search.
Authorization: Bearer <key> on every request.Parameters
town in Catalonia, Catalan or Spanish name, optionally "Town, Country" (e.g. "Girona", "Gerona", "Lérida", "Sant Cugat del Vallès", "Barcelona, Spain"); empty = all of Catalonia. Ignored when lat and lng are given. Unknown places give a 400.
latitude of a search centre (use with lng); overrides q.
longitude of a search centre (use with lat); overrides q.
radius around lat/lng in km, default 25 (max 300).
window length from today (Europe/Madrid), default 30; used when to is not given.
first day of the window, YYYY-MM-DD (inclusive); defaults to today.
last day of the window, YYYY-MM-DD (inclusive); defaults to from + days.
page number starting at 1, 100 events per page.
Response fields
placefrome.g."2026-12-02"toe.g."2027-01-01"pagee.g.1page_sizee.g.100totale.g.926has_moree.g.trueevents
ide.g."20240605022"event_codee.g."20240605022"urle.g."https://www.espaivapor.com/"titlee.g."Espai Vapor"subtitledescriptione.g."Espai Vapor pretén ser un lloc obert a la ciutat i atent a les noves tendències que apareixen a l'escena musical. Combina propostes musicals de solvència i prestigi amb propostes de l'escena local de la ciutat que creiem interessants i cal donar sortida. L'Espai Vapor s'emmarca dins la Festa Major de Terrassa com a oferta lúdica i cultural. Podeu consultar la programació completa del festival al web de l'Espai Vapor."starte.g."2024-06-28"ende.g."2924-06-30"end_is_approximatee.g.falsevenue
namee.g."Plaça Vapor Ventalló"addresscitye.g."Terrassa"postal_codelate.g.41.5652128lnge.g.2.0117083comarcae.g."Vallès Occidental"priceprice_textfreee.g.falseticket_urlimagee.g."https://agenda.cultura.gencat.cat/content/dam/agenda/articles/2024/06/05/022/espai-vapor-1.jpg"categorye.g."festivals-i-mostres"categoriesother_categoriesstatuse.g."ongoing"modeschedule_textpagination
counte.g.100has_moree.g.truenext_cursore.g."WzEsIjBlNzgzMjc4IixudWxsLDAseyJwYWdlIjoyfV0"fetched_ate.g."2026-12-02T01:56:43.193Z"agee.g.0curl "https://api.maviapi.com/v1/sites/analisi-transparenciacatalunya/events?radius_km=25&days=30&page=1" \-H "Authorization: Bearer $MAVI_KEY"
{
"place": null,
"from": "2026-12-02",
"to": "2027-01-01",
"page": 1,
"page_size": 100,
"total": 926,
"has_more": true,
"events": [
{
"id": "20240605022",
"event_code": "20240605022",
"url": "https://www.espaivapor.com/",
"title": "Espai Vapor",
"subtitle": null,
"description": "Espai Vapor pretén ser un lloc obert a la ciutat i atent a les noves tendències que apareixen a l'escena musical. Combina propostes musicals de solvència i prestigi amb propostes de l'escena local de la ciutat que creiem interessants i cal donar sortida. L'Espai Vapor s'emmarca dins la Festa Major de Terrassa com a oferta lúdica i cultural. Podeu consultar la programació completa del festival al web de l'Espai Vapor.",
"start": "2024-06-28",
"end": "2924-06-30",
"end_is_approximate": false,
"venue": {
"name": "Plaça Vapor Ventalló",
"address": null,
"city": "Terrassa",
"postal_code": null,
"lat": 41.5652128,
"lng": 2.0117083
},
"comarca": "Vallès Occidental",
"price": null,
"price_text": null,
"free": false,
"ticket_url": null,
"image": "https://agenda.cultura.gencat.cat/content/dam/agenda/articles/2024/06/05/022/espai-vapor-1.jpg",
"category": "festivals-i-mostres",
"categories": [
"festivals-i-mostres"
],
"other_categories": [
null
],
"status": "ongoing",
"mode": null,
"schedule_text": null
}
],
"pagination": {
"count": 100,
"has_more": true,
"next_cursor": "WzEsIjBlNzgzMjc4IixudWxsLDAseyJwYWdlIjoyfV0"
},
"fetched_at": "2026-12-02T01:56:43.193Z",
"age": 0
}Get all the data, no code
Collect every page of GET /events into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use analisi.transparenciacatalunya.cat API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of analisi.transparenciacatalunya.cat API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=analisi-transparenciacatalunya -- npx -y '@maviapi/mcp'Import analisi.transparenciacatalunya.cat API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/analisi-transparenciacatalunya/openapi.json - Postman
https://api.maviapi.com/v1/apis/analisi-transparenciacatalunya/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the analisi.transparenciacatalunya.cat API
Choose a starting endpoint
- Events
GET /eventsCultural events anywhere in Catalonia that take place in a date window, 100 per page, ordered by start date then id.
Parameters and response fields for GET /events
Request parameters Name Type / location Required Description q string / query No town in Catalonia, Catalan or Spanish name, optionally "Town, Country" (e.g. "Girona", "Gerona", "Lérida", "Sant Cugat del Vallès", "Barcelona, Spain"); empty = all of Catalonia. Ignored when lat and lng are given. Unknown places give a 400. lat string / query No latitude of a search centre (use with lng); overrides q. lng string / query No longitude of a search centre (use with lat); overrides q. radius_km number / query No radius around lat/lng in km, default 25 (max 300). days integer / query No window length from today (Europe/Madrid), default 30; used when to is not given. from string / query No first day of the window, YYYY-MM-DD (inclusive); defaults to today. to string / query No last day of the window, YYYY-MM-DD (inclusive); defaults to from + days. page integer / query No page number starting at 1, 100 events per page. Response fields Field Type Description place null from string to string page integer page_size integer total integer has_more boolean events object[] events[].id string events[].event_code string events[].url string events[].title string events[].subtitle null events[].description string events[].start string events[].end string events[].end_is_approximate boolean events[].venue object events[].venue.name string events[].venue.address null events[].venue.city string events[].venue.postal_code null events[].venue.lat number events[].venue.lng number events[].comarca string events[].price null events[].price_text null events[].free boolean events[].ticket_url null events[].image string events[].category string events[].categories string[] events[].other_categories string[] events[].status string events[].mode null events[].schedule_text null pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer
Export analisi.transparenciacatalunya.cat data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
EventsGET /events | id, event_code, url, title, subtitle, description, start, end, end_is_approximate, venue, comarca, price, price_text, free, ticket_url, image, category, categories, other_categories, status, mode, schedule_text |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
analisi.transparenciacatalunya.cat API questions
What you get, what it costs and how to call it.
Is there an official analisi.transparenciacatalunya.cat API?
This analisi.transparenciacatalunya.cat API is not official. It is an independent, hosted API from maviapi for the public data on analisi.transparenciacatalunya.cat, and it is not made, endorsed or supported by analisi.transparenciacatalunya.cat. Whether analisi.transparenciacatalunya.cat offers a developer API of its own is a question for analisi.transparenciacatalunya.cat. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the analisi.transparenciacatalunya.cat API?
The analisi.transparenciacatalunya.cat API has one endpoint. It returns JSON with the parameters and fields documented above:
- GET
/events: Cultural events anywhere in Catalonia that take place in a date window, 100 per page, ordered by start date then id.
How much does the analisi.transparenciacatalunya.cat API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 1 credit per call. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $0.76. Failed calls are free. 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 analisi.transparenciacatalunya.cat API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /events:
curl 'https://api.maviapi.com/v1/sites/analisi-transparenciacatalunya/events' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get analisi.transparenciacatalunya.cat data as JSON?
Each way to get analisi.transparenciacatalunya.cat data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on analisi.transparenciacatalunya.cat are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The analisi.transparenciacatalunya.cat API on this page: one documented endpoint, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when analisi.transparenciacatalunya.cat changes its layout?
Your code does not change. maviapi keeps the analisi.transparenciacatalunya.cat API working when analisi.transparenciacatalunya.cat changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my analisi.transparenciacatalunya.cat API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Eventbrite API
Events listed on Eventbrite for a city and date range: dates, venue with address and coordinates, image and summary…
- Songkick Concerts API
Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, prices…