Catalonia Transparency Portal Open Data
Open data portalsESanalisi.transparenciacatalunya.cat
Socrata open data portal at analisi.transparenciacatalunya.cat, publishing 1588 public datasets from the publishing organisation, led by the Sector Públic category.
Capabilities (5)
GET /v1/data/analisi-transparenciacatalunya-cat/catalog-search1 creditKeyword search over the datasets published on analisi.transparenciacatalunya.cat: each hit carries the dataset id, name, description, attribution, category, tags, column names and last update time, plus the total match count.
GET /v1/data/analisi-transparenciacatalunya-cat/dataset1 creditThe complete metadata document for one dataset: name, description, attribution, licence, category, tags, all column definitions with data types, and the table id used for queries.
GET /v1/data/analisi-transparenciacatalunya-cat/datasets1 creditA page of the portal's own dataset records (id, name, description, category, attribution, creation and update timestamps, view count) without the full column metadata.
GET /v1/data/analisi-transparenciacatalunya-cat/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/analisi-transparenciacatalunya-cat/rows1 creditThe first 100 rows of a dataset as JSON objects keyed by field name. Column names are the API field names, so they can be used directly in a later SoQL query.
Response example
The shape of data from analisi-transparenciacatalunya-cat/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "Establiments d’allotjament turístic inscrits al Registre de Turisme de Catalunya",
"id": "t2h3-cgys",
"resource_name": null,
"parent_fxf": [],
"description": "Llistats d'empreses i establiments turístics que es dediquen professionalment a la prestació del servei d'allotjament turístic i que estan inscrits en el Registre de Turisme de Catalunya.\n\nLes empreses i establiments turístics que hi consten estan ordenats per municipi i adreça, sense perjudici d'errors, omissions i tràmits pendents d'anotació al Registre de Turisme de Catalunya. Aquests llistats s'emeten únicament a efectes informatius i no generen drets de cap tipus.\n\nQuins tipus d’allotjaments es poden trobar i què són?\n\nApartaments turístics\nAquests tipus d’establiments presten servei d’allotjament temporal en edificis o conjunts continus constituïts en la seva totalitat per apartaments o estudis, com a establiments únics o com a unitats empresarials d’explotació, amb els serveis turístics corresponents. S’identifiquen amb el distintiu \"AT\".\n\nEstabliments de turisme rural\nAquest tipus d’establiment presten servei d’allotjament temporal en habitatges rurals, en règim d’habitacions o de cessió de l’habitatge sencer.\nEstan situats en el medi rural, integrats en edificacions preexistents anteriors a 1950, que respecten la tipologia arquitectònica de la zona i compleixen amb l’exigència de tranquil·litat i integració en el paisatge. Estan senyalitzats amb el distintiu “TR”.\n\nHotels\nAquests establiments presten servei d’allotjament temporal en unitats d’allotjament als usuaris turístics, com a establiment únic o com a unitat empresarial d’explotació amb els serveis turístics corresponents.\nPoden obtenir de l’Administració, independentment del grup i la categoria que els corresponguin, el reconeixement d’una especialitat o una tipologia concreta, i han d’exhibir en aquest cas el distintiu corresponent.\n\nEs classifiquen en dos grups:\n1.\tGrup d'Hotels\nA la vegada, es classifica en dues modalitats: Hotels i Hotels apartament.\n2.\tGrup d'Hostals o pensions\n\nCàmping\nAquests tipus d’establiments presten servei d’allotjament temporal en espais d’ús públic degudament delimitat…",
"attribution": "Departament d'Empresa i Treball",
"attribution_link": "https://administraciodigital.gencat.cat/ca/dades/dades-obertes/informacio-practica/llicencies/",
"contact_email": null,
"type": "dataset",
"updatedAt": "2026-10-05T06:24:56.000Z",
"createdAt": "2024-04-11T12:00:00.000Z",
"metadata_updated_at": "2026-10-05T06:24:13.000Z",
"data_updated_at": "2026-10-05T06:24:56.000Z",
"page_views": {
"page_views_last_week": 12344,
"page_views_last_month": 50781,
"page_views_total": 470803,
"page_views_last_week_log": 13.591639216030146,
"page_views_last_month_log": 15.632029594803909,
"page_views_total_log": 18.84476705215312
},
"columns_name": [
"CIF",
"Tipus establiment",
"Raó Social del titular",
"Marca turística",
"Pis",
"… 28 more items"
],
"columns_field_name": [
"cif",
"tipus_establiment",
"ra_social_del_titular",
"marca_tur_stica",
"pis",
"… 28 more items"
],
"columns_datatype": [
"Text",
"Text",
"Text",
"Text",
"Text",
"… 28 more items"
],
"columns_description": [
"NIF, CIF o NIE del titular de l'establiment. ",
"Tipologia de l’establiment: apartament, establiment de turisme rural, càmping, hotel i habitatge d’ús turístic",
"Raó Social del titular de l'establiment quan es persona jurídica. ",
"Indica la Marca Turística en què es circumscriu l'establiment",
"CamAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use Catalonia Transparency Portal Open Data (analisi-transparenciacatalunya-cat) from fastCRW Pergamon, capability "Catalogue search" (catalog-search). You want to find a dataset on this portal by keyword and do not know its four-by-four id. Example options: q=taxi, offset=0, order=page_views_total DESC. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "analisi-transparenciacatalunya-cat" and capability "catalog-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset metadata
Use Catalonia Transparency Portal Open Data (analisi-transparenciacatalunya-cat) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You already hold a dataset id and need its columns, licence or description before querying rows. Example options: id=4asa-jgb5. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "analisi-transparenciacatalunya-cat" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset inventory
Use Catalonia Transparency Portal Open Data (analisi-transparenciacatalunya-cat) from fastCRW Pergamon, capability "Dataset inventory" (datasets). You need to enumerate what this portal publishes, or page through its newest datasets. Example options: offset=0, order=createdAt, category=Transportation. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "analisi-transparenciacatalunya-cat" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Row count
Use Catalonia Transparency Portal Open Data (analisi-transparenciacatalunya-cat) from fastCRW Pergamon, capability "Row count" (row-count). You need to know how large a dataset is before downloading it, or want a cheap liveness check. Example options: id=4asa-jgb5. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "analisi-transparenciacatalunya-cat" and capability "row-count". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
La distribució i la comunicació pública de la informació.
https://administraciodigital.gencat.cat/ca/dades/dades-obertes/informacio-practica/llicencies/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: analisi.transparenciacatalunya.cat. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
