datos.gob.es
Open data portalsESdatos.gob.es
Spain's national open data catalogue API, a Linked Data API over datasets, distributions, publishers and themes harvested from Spanish public administrations.
Capabilities (5)
GET /v1/data/datosgobes/dataset1 creditReturns one dataset in full: multilingual title and description, keywords, themes, publisher, licence, spatial and temporal coverage and all distributions.
GET /v1/data/datosgobes/datasets1 creditReturns a page of Spanish open datasets with title, description, keywords, themes, publisher, licence, spatial and temporal coverage and their distributions.
GET /v1/data/datosgobes/distributions1 creditReturns a page of distributions (individual files and access URLs) across the catalogue, with format, byte size, access URL, download URL and the dataset they belong to.
GET /v1/data/datosgobes/publishers1 creditReturns a page of publishing organizations with their URI, preferred name and the datasets they publish.
GET /v1/data/datosgobes/themes1 creditReturns the catalogue's thematic categories (the DCAT themes used to classify Spanish datasets), with their URIs and labels.
Response example
The shape of data from datosgobes/dataset (Dataset detail). A sample, not live data.
{
"format": "linked-data-api",
"version": "0.2",
"result": {
"_about": "http://datos.gob.es/apidata/catalog/dataset/e05068001-mapas-estrategicos-de-ruido.json",
"definition": "http://datos.gob.es/apidata/catalog/meta/dataset/_id.json",
"extendedMetadataVersion": "http://datos.gob.es/apidata/catalog/dataset/e05068001-mapas-estrategicos-de-ruido.json?_metadata=all",
"first": "http://datos.gob.es/apidata/catalog/dataset/e05068001-mapas-estrategicos-de-ruido.json?_page=0",
"hasPart": "http://datos.gob.es/apidata/catalog/dataset/e05068001-mapas-estrategicos-de-ruido.json",
"isPartOf": "http://datos.gob.es/apidata/catalog/dataset/e05068001-mapas-estrategicos-de-ruido.json",
"items": [
{
"_about": "https://datos.gob.es/catalogo/e05068001-mapas-estrategicos-de-ruido",
"accrualPeriodicity": "http://publications.europa.eu/resource/authority/frequency/OP_DATPRO",
"description": [
{
"_value": "Mapas estratégicos de ruido (MER) de la tercera fase de implementación de la Directiva 2002/49/CE del Parlamento Europeo y del Consejo, de 25 de junio de 2002, sobre evaluación y gestión del ruido ambiental (END, por sus siglas en inglés).",
"_lang": "es"
},
{
"_value": "Strategic Noise Maps for the third phase of implementation of Directive 2002/49/EC of the European Parliament and of the Council, of 25 June 2002, relating to the assessment and management of environmental noise (END).",
"_lang": "en"
}
],
"distribution": {
"_about": "https://datos.gob.es/catalogo/e05068001-mapas-estrategicos-de-ruido/resource/c447411c-f531-41a3-a873-9a02d97d002b",
"accessURL": "https://catalogo.datosabiertos.miteco.gob.es/catalogo/dataset/b0da07b8-6856-4af2-91f7-20a7531d6b6f/resource/4e99901d-aed7-445c-ab1b-0690a1e195f5",
"downloadURL": "https://www.miteco.gob.es/es/cartografia-y-sig/ide/descargas/calidad-y-evaluacion-ambiental/mer.html",
"format": "http://publications.europa.eu/resource/authority/file-type/HTML",
"title": [
{
"_value": "Mapas Estratégicos de Ruido",
"_lang": "es"
}
],
"type": "http://www.w3.org/ns/dcat#Distribution"
},
"identifier": "b0da07b8-6856-4af2-91f7-20a7531d6b6f",
"issued": "dom, 19 dic 2021 00:00:00 GMT+0000",
"keyword": [
{
"_value": "environment",
"_lang": "es"
}
],
"language": "http://publications.europa.eu/resource/authority/language/SPA",
"license": "http://publications.europa.eu/resource/authority/licence/CC_BY_4_0",
"modified": "mié, 18 jun 2025 00:00:00 GMT+0000",
"publisher": "http://datos.gob.es/recurso/sector-publico/org/Organismo/E05068001",
"spatial": "http://datos.gob.es/recurso/sector-publico/territorio/Pais/España",
"temporal": "https://catalogo.datosabiertos.miteco.gob.es/catalogo/bnode/N094d7b9e44c94c8cbe2b03562fdaeea3",
"theme": [
"http://datos.gob.es/kos/sector-publico/sector/medio-ambiente",
"http://inspire.ec.europa.eu/theme/ac",
"http://publications.europa.eu/resource/authority/data-theme/ENVI"
],
"title": [
{
"_value": "Mapas estratégicos de Ruido",
"_lang": "es"
},
{
"_value": "Strategic Noise maps",
"_lang": "en"
}
],
"type": [
"http://www.w3.org/ns/dcat#Dataset",
"http://xmlns.com/foaf/0.1/Document"
]
}
],
"itemsPerPage": 10,
"page": 0,
"startIndex": 1,
"type": [
"http://purl.org/linked-data/api/vocab#ListEndpoint",
"http://purl.org/linked-data/api/vocab#Page"
]
}
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Dataset detail
Use datos.gob.es (datosgobes) from fastCRW Pergamon, capability "Dataset detail" (dataset). You hold a dataset slug from the catalogue and need its metadata, licence or resources. Example options: id=e05068001-mapas-estrategicos-de-ruido. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datosgobes" 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 listing
Use datos.gob.es (datosgobes) from fastCRW Pergamon, capability "Dataset listing" (datasets). You want to browse the Spanish catalogue page by page or sort by modification date. Example options: _pageSize=20, _page=0, _sort=-modified. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datosgobes" 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>
Distribution listing
Use datos.gob.es (datosgobes) from fastCRW Pergamon, capability "Distribution listing" (distributions). You want every downloadable file of a given format across Spanish datasets. Example options: _pageSize=20, _page=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datosgobes" and capability "distributions". 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>
Publisher listing
Use datos.gob.es (datosgobes) from fastCRW Pergamon, capability "Publisher listing" (publishers). You want to know which Spanish public bodies publish data or resolve a publisher URI. Example options: _pageSize=20, _page=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datosgobes" and capability "publishers". 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
The legal notice page returned only navigation for a non-browser client, so no portal-wide sentence could be quoted from it. Each dataset record in the API carries its own licence in the "license" field as an EU Publications Office URI. The sample dataset (mapas estratégicos de ruido) declares "license": "http://publications.europa.eu/resource/authority/licence/CC_BY_4_0"; the catalogue also publishes datasets under CC0 and other licences. We rely on the per-dataset licence recorded by the publisher: CC BY 4.0 permits commercial use and redistribution with attribution, while records under other licences carry their own terms. No blanket portal-wide grant is claimed.
https://datos.gob.es/en/legal-noticeAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Fuente: datos.gob.es, catálogo nacional de datos abiertos de España. Licencia por conjunto de datos según el campo license; atribuir el publicador y la licencia indicada en el registro.
Cache: up to 3600s
