dados.gov.pt
dados.gov.pt
Portugal's national open data portal API: datasets and their resources, publishing organizations, reuses and portal metrics, exposed as a JSON REST service.
GET /v1/data/dadosgovpt/dataset1Request
The 24-character dataset id returned by the dataset search.
curl "https://api.fastcrw.com/v1/data/dadosgovpt/dataset?id=6adb4d86850e2802b9832801" \ -H "Authorization: Bearer $FASTCRW_API_KEY"
2Response example
A sample shape. Press Run to see live data from dados.gov.pt.
{
"access_audiences": [],
"access_type": "open",
"access_type_reason": null,
"access_type_reason_category": null,
"acronym": null,
"archived": null,
"authorization_request_url": null,
"badges": [],
"contact_points": [
{
"contact_form": "https://agit.pt",
"email": "geral@agit.pt",
"id": "6a67a242e6ffa912ce4fe1a9",
"name": "AGIT",
"role": "contact"
}
],
"created_at": "2026-10-23T12:05:26.511000+00:00",
"deleted": null,
"description": "Bem-vindo à documentação oficial e pontos de acesso do conjunto de dados relativo a Ocorrências, Incidentes Operacionais e Anomalias em Tempo Real na rede de transportes públicos da Região de Coimbra. Este conjunto de dados disponibiliza o registo de eventos imprevistos que afetam pontualmente a operação regular, como acidentes, avarias de veículos, vias obstruídas, condicionamentos policial/emergência ou manifestações.\n\nA estrutura segue o perfil de Ocorrências / Situational Events alinhado com as diretrizes da Matriz Nacional de Dados (CNMD), permitindo a integração direta em sistemas de gestão de tráfego, plataformas de informação ao passageiro e centrais de emergência.\n\nÂmbito do Conjunto de Dados e Endpoints Disponíveis\nPara garantir o acompanhamento em tempo útil dos eventos que impactam a mobilidade na região, o dataset disponibiliza 3 endpoints dedicados, um para cada operador da rede:\n\n- Endpoint SMTUC (Rede Urbana de Coimbra):\nRegista ocorrências em tempo real na rede dos SMTUC (autocarros e troleocarros), tais como avarias em frota, atrasos significativos por trânsito local, desvios de emergência ou supressão temporária de viagens.\n\n- Endpoint Metro Mondego (Sistema de Mobilidade do Mondego):\nInforma sobre incidentes operacionais ao longo do canal exclusivo do Metrobus (SMM), obstruções em intersecções/cruzamentos, alertas em estações ou paragens técnicas de veículos.\n\n- Endpoint SIT:\nCentraliza os eventos e incidentes com impacto nas carreiras interurbanas e regionais que ligam Coimbra aos restantes municípios.",
"description_short": "Bem-vindo à documentação oficial e pontos de acesso do conjunto de dados relativo a Ocorrências, Incidentes Operacionais e Anomalias em Tempo Real na rede de transportes públicos da Região de Coimb...",
"extras": {},
"featured": false,
"frequency": "irregular",
"frequency_date": null,
"harvest": null,
"id": "6adb4d86850e2802b9832801",
"internal": {
"created_at_internal": "2026-10-23T12:05:26.511000+00:00",
"last_modified_internal": "2026-10-23T12:05:51.160000+00:00"
},
"last_modified": "2026-10-23T12:05:51.160000+00:00",
"last_update": "2026-10-23T12:05:48.332000+00:00",
"license": "cc-by",
"license_title": "Creative Commons Attribution 4.0 - CC BY 4.0",
"metrics": {
"dataservices": 0,
"discussions": 0,
"discussions_open": 0,
"followers": 0,
"followers_by_months": 0,
"resources_downloads": 0,
"reuses": 0,
"reuses_by_months": 0,
"views": 0
},
"organization": {
"acronym": "AGIT",
"badges": [
{
"kind": "public-service"
}
],
"class": "Organization",
"id": "6a5b51d82e677c28273479e6",
"logo": "https://dados.gov.pt/s/avatars/40/9f462bc5d24a07ad9ca4c11aa5996c-original.png",
"logo_thumbnail": "https://dados.gov.pt/s/avatars/40/9f462bc5d24a07ad9ca4c11aa5996c-100.png",
"name": "AGIT (Agência para a Gestão do Sistema Intermodal da Região de Coimbra) ",
"page": "https://dados.gov.pt/organizations/agit-agencia-para-a-gestao-do-sistema-intermodal-da-regiao-de-coimbra",
"permissions": {
"delete": false,
"edit": false,
"harvest": false,
"members": false,
"private": false
},
"slug": "agit-agencia-para-a-gestao-do-sistema-intermodal-da-regiao-de-coimbra",
"uri": "https://dados.gov.pt/api/1/organizations/agit-agencia-para-a-gestao-do-sistema-intermodal-da-regiao-de-coimbra/"
},
"owner": null,
"page": "https://dados.gov.pt/datasets/ocorrencias-1",
"permissions": {
"delete": false,
"edit": false,
"edit_resources": false
},
"private": false,
"quality": {
"all_resources_available": true,
"dataset_description_quality": true,
"has_open_format": false,
"has_resources": true,
"license": true,
"resources_documentation": false,
"score": 0.7777777777777778,
"spatial": true,
"temporal_coverage": true,
"update_frequency": true,
"update_fulfilled_in_time": true
},
"resources": [
{
"checksum": null,
"created_at": "2026-10-23T12:05:48.332000+00:00",
"description": null,
"extras": {},
"filesize": null,
"filetype": "remote",
"format": null,
"harvest": null,
"id": "213e6fc1-5be9-4563-be7d-a8f584226fbb",
"internal": {
"created_at_internal": "2026-10-23T12:05:48.332000+00:00",
"last_modified_internal": "2026-10-23T12:05:48.332000+00:00"
},
"last_modified": "2026-10-23T12:05:48.332000+00:00",
"latest": "https://dados.gov.pt/api/1/datasets/r/213e6fc1-5be9-4563-be7d-a8f584226fbb",
"metrics": {},
"mime": null,
"preview_url": null,
"schema": null,
"title": "https://api.planner.agit.pt/v1/datasets/sit/realtime/occurrences",
"type": "main",
"url": "https://api.planner.agit.pt/v1/datasets/sit/realtime/occurrences"
},
{
"checksum": null,
"created_at": "2026-10-23T12:05:48.279000+00:00",
"description": null,
"extras": {},
"filesize": null,
"filetype": "remote",
"format": null,
"harvest": null,
"id": "d7456188-9355-4cb1-ac3d-f6f1d9d8f17a",
"internal": {
"created_at_internal": "2026-10-23T12:05:48.279000+00:00",
"last_modified_internal": "2026-10-23T12:05:48.279000+00:00"
},
"last_modified": "2026-10-23T12:05:48.279000+00:00",
"latest": "https://dados.gov.pt/api/1/datasets/r/d7456188-9355-4cb1-ac3d-f6f1d9d8f17a",
"metrics": {},
"mime": null,
"preview_url": null,
"schema": null,
"title": "https://api.planner.agit.pt/v1/datasets/metro-mondego/realtime/occurrences",
"type": "main",
"url": "https://api.planner.agit.pt/v1/datasets/metro-mondego/realtime/occurrences"
},
{
"checksum": null,
"created_at": "2026-10-23T12:05:48.229000+00:00",
"description": null,
"extras": {},
"filesize": null,
"filetype": "remote",
"format": null,
"harvest": null,
"id": "23f482c4-7995-48b3-88c4-4c1681c50471",
"internal": {
"created_at_internal": "2026-10-23T12:05:48.229000+00:00",
"last_modified_internal": "2026-10-23T12:05:48.229000+00:00"
},
"last_modified": "2026-10-23T12:05:48.229000+00:00",
"latest": "https://dados.gov.pt/api/1/datasets/r/23f482c4-7995-48b3-88c4-4c1681c50471",
"metrics": {},
"mime": null,
"preview_url": null,
"schema": null,
"title": "https://api.planner.agit.pt/v1/datasets/smtuc/realtime/occurrences",
"type": "main",
"url": "https://api.planner.agit.pt/v1/datasets/smtuc/realtime/occurrences"
}
],
"schema": null,
"slug": "ocorrencias-1",
"spatial": {
"geom": null,
"granularity": "pt:distrito",
"zones": [
"pt:distrito:06"
]
},
"tags": [
"metro",
"ocorrencias",
"sit",
"smtuc"
],
"temporal_coverage": {
"end": "2026-12-31",
"start": "2026-01-01"
},
"title": "Ocorrências",
"uri": "https://dados.gov.pt/api/1/datasets/ocorrencias-1/"
}Attribution: Fonte: dados.gov.pt, o portal nacional de dados abertos de Portugal. Dados publicados por organismos do Estado ao abrigo da licença CC BY 4.0, salvo indicação em contrário; atribuir o organismo publicador.
Licence: The portal's Termos de Utilização state: "Licenças Todos os dados carregados por organismos do estado são publicados ao abrigo de uma licença Creative Commons CC BY 4.0, exceto se houver uma especificação em contrário. (mais informações em Licenças) Os outros participantes poderão publicar ao abrigo de outras licenças abertas, disponibilizadas pela plataforma. Os recursos relativos a conjuntos de dados estão abrangidos pela licença que se aplica ao conjunto em que estão inseridos." In translation: all data uploaded by state bodies is published under CC BY 4.0 unless stated otherwise, while other participants may use other open licences; resources inherit the dataset licence. CC BY 4.0 permits commercial use and redistribution with attribution.
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 dados.gov.pt (dadosgovpt) from fastCRW Pergamon, capability "Dataset detail" (dataset). You hold a dataset id and need its resources, licence or full description. Example options: id=6adb4d86850e2802b9832801. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dadosgovpt" 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 search
Use dados.gov.pt (dadosgovpt) from fastCRW Pergamon, capability "Dataset search" (datasets). You want to find datasets on the Portuguese portal by keyword, publisher, format or licence. Example options: q=transportes, page=1, format=csv. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dadosgovpt" 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>
Organization detail
Use dados.gov.pt (dadosgovpt) from fastCRW Pergamon, capability "Organization detail" (organization). You hold an organization id and want its profile or output counts. Example options: id=6ad726d27f858d1981fecfc1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dadosgovpt" and capability "organization". 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>
Publishing organizations
Use dados.gov.pt (dadosgovpt) from fastCRW Pergamon, capability "Publishing organizations" (organizations). You want to know which Portuguese public bodies publish here, or need an organization id. Example options: q=ambiente, page=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dadosgovpt" and capability "organizations". 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>
