Portal de Dados Abertos – Prefeitura de Belo Horizonte
dados.pbh.gov.br
Open data portal of the city of Belo Horizonte, MG, Brazil
GET /v1/data/dados-pbh-gov-br/dataset1Request
The dataset's URL slug (its `name`) or its UUID. Both are accepted.
curl "https://api.fastcrw.com/v1/data/dados-pbh-gov-br/dataset?id=despesas-orcamentarias" \ -H "Authorization: Bearer $FASTCRW_API_KEY"
2Response example
A sample shape. Press Run to see live data from Portal de Dados Abertos – Prefeitura de Belo Horizonte.
{
"help": "https://ckan.pbh.gov.br/api/3/action/help_show?name=package_show",
"success": true,
"result": {
"author": "",
"author_email": "",
"creator_user_id": "1d38f5f4-6bb2-431c-a481-1f57c683d4c3",
"id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"isopen": true,
"license_id": "cc-by",
"license_title": "Creative Commons Attribution",
"license_url": "http://www.opendefinition.org/licenses/cc-by",
"maintainer": "Subsecretaria de Contadoria-Geral do Município",
"maintainer_email": "sucgm@pbh.gov.br",
"metadata_created": "2025-06-13T10:25:22.236015",
"metadata_modified": "2026-10-23T14:22:25.157236",
"name": "despesas-orcamentarias",
"notes": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"num_resources": 7,
"num_tags": 5,
"organization": {
"id": "e67fb33e-82b1-4b26-9911-91d26c493bb7",
"name": "smfa",
"title": "SMFA",
"type": "organization",
"description": "Secretaria Municipal de Fazenda",
"image_url": "https://ckan.pbh.gov.br/uploads/group/2022-11-07-172048.678786dados-abertosorg-pbh.png",
"created": "2021-02-16T14:37:36.295446",
"is_organization": true,
"approval_status": "approved",
"state": "active"
},
"owner_org": "e67fb33e-82b1-4b26-9911-91d26c493bb7",
"private": false,
"state": "active",
"title": "Despesas Orçamentárias",
"type": "dataset",
"url": "",
"version": "",
"resources": [
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2026-01-09T15:23:06.211116",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte, no exercício de 2026.",
"format": "CSV",
"hash": "e1dbfe9a9b3896b7b46cb5f40a176ab8",
"id": "10079e7b-95a4-44fe-a154-022cff8376c2",
"ignore_hash": true,
"last_modified": "2026-10-23T14:21:21.630865",
"metadata_modified": "2026-10-23T14:22:25.172737",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2026 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/10079e7b-95a4-44fe-a154-022cff8376c2/download/dados_abertos_despesas_orcamentarias_2026.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 0,
"resource_id": "10079e7b-95a4-44fe-a154-022cff8376c2",
"resource_type": null,
"set_url_type": false,
"size": 194320337,
"state": "active",
"task_created": "2026-10-23 14:21:22.423285",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/10079e7b-95a4-44fe-a154-022cff8376c2/download/dados_abertos_despesas_orcamentarias_2026.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:14:49.979149",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte até 31/12/2025.",
"format": "CSV",
"hash": "272eefa82a3d568928a0a8f171e8b378",
"id": "34739965-f23a-4728-9e1b-aee623e8ff9b",
"ignore_hash": true,
"last_modified": "2026-01-30T14:45:57.741064",
"metadata_modified": "2026-01-30T14:47:12.604912",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2025 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/34739965-f23a-4728-9e1b-aee623e8ff9b/download/dados_abertos_despesas_orcamentarias_2025.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 1,
"resource_id": "34739965-f23a-4728-9e1b-aee623e8ff9b",
"resource_type": null,
"set_url_type": false,
"size": 227951944,
"state": "active",
"task_created": "2026-06-17 17:34:10.525239",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/34739965-f23a-4728-9e1b-aee623e8ff9b/download/dados_abertos_despesas_orcamentarias_2025.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:12:50.755941",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"format": "CSV",
"hash": "1ea1ce710cd5c66208ea6348335dff03",
"id": "7e0f4857-6701-4b5b-ad11-43a8c639e23a",
"ignore_hash": true,
"last_modified": "2025-06-17T20:05:56.645263",
"metadata_modified": "2025-06-17T20:07:07.190294",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2024 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/7e0f4857-6701-4b5b-ad11-43a8c639e23a/download/dados_abertos_despesas_orcamentarias_2024.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 2,
"resource_id": "7e0f4857-6701-4b5b-ad11-43a8c639e23a",
"resource_type": null,
"set_url_type": false,
"size": 203305267,
"state": "active",
"task_created": "2026-06-17 17:34:10.660962",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/7e0f4857-6701-4b5b-ad11-43a8c639e23a/download/dados_abertos_despesas_orcamentarias_2024.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:00:08.039751",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"format": "CSV",
"hash": "ab61382ff99bfa59ba2c17e40eb6114f",
"id": "4d75f3ba-9c31-4585-8dbf-eec8610a611d",
"ignore_hash": true,
"last_modified": "2025-06-17T20:05:18.708366",
"metadata_modified": "2025-06-17T20:06:39.853541",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2023 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/4d75f3ba-9c31-4585-8dbf-eec8610a611d/download/dados_abertos_despesas_orcamentarias_2023.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 3,
"resource_id": "4d75f3ba-9c31-4585-8dbf-eec8610a611d",
"resource_type": null,
"set_url_type": false,
"size": 240733843,
"state": "active",
"task_created": "2026-06-17 17:34:10.884093",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/4d75f3ba-9c31-4585-8dbf-eec8610a611d/download/dados_abertos_despesas_orcamentarias_2023.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:09:02.097768",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"format": "CSV",
"hash": "a0ab9cba508180477ab208473cc77c3c",
"id": "824cc3d5-b764-488e-a4e8-edba1736faa5",
"ignore_hash": true,
"last_modified": "2025-06-17T20:04:34.676933",
"metadata_modified": "2025-06-17T20:05:43.563727",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2022 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/824cc3d5-b764-488e-a4e8-edba1736faa5/download/dados_abertos_despesas_orcamentarias_2022.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 4,
"resource_id": "824cc3d5-b764-488e-a4e8-edba1736faa5",
"resource_type": null,
"set_url_type": false,
"size": 211763185,
"state": "active",
"task_created": "2026-06-17 17:34:11.056389",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/824cc3d5-b764-488e-a4e8-edba1736faa5/download/dados_abertos_despesas_orcamentarias_2022.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:06:31.301235",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"format": "CSV",
"hash": "1f2992e3e5f2c6e89e1e91239f875262",
"id": "9ca0d3cb-c943-43ba-ae22-a412f7128d7c",
"ignore_hash": true,
"last_modified": "2025-06-17T20:03:39.947639",
"metadata_modified": "2025-06-17T20:04:44.764756",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2021 Despesas Orçamentárias ",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/9ca0d3cb-c943-43ba-ae22-a412f7128d7c/download/dados_abertos_despesas_orcamentarias_2021.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 5,
"resource_id": "9ca0d3cb-c943-43ba-ae22-a412f7128d7c",
"resource_type": null,
"set_url_type": false,
"size": 199895197,
"state": "active",
"task_created": "2026-06-17 17:34:11.247857",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/9ca0d3cb-c943-43ba-ae22-a412f7128d7c/download/dados_abertos_despesas_orcamentarias_2021.csv",
"url_type": "upload"
},
{
"cache_last_updated": null,
"cache_url": null,
"ckan_url": "https://ckan.pbh.gov.br",
"created": "2025-06-13T12:03:27.056962",
"datastore_active": true,
"datastore_contains_all_records_of_source_file": true,
"description": "Informações completas da Execução Orçamentária das despesas do Município de Belo Horizonte.",
"format": "CSV",
"hash": "453dcefbad23d4a3304ccdf8ee6b9a83",
"id": "ab70704d-f4c9-4e43-8464-d1516486edd1",
"ignore_hash": true,
"last_modified": "2025-06-17T20:02:38.285798",
"metadata_modified": "2025-06-17T20:03:43.862061",
"mimetype": "text/csv",
"mimetype_inner": null,
"name": "2020 Despesas Orçamentárias",
"original_url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/ab70704d-f4c9-4e43-8464-d1516486edd1/download/dados_abertos_despesas_orcamentarias_2020.csv",
"package_id": "8617b167-e051-4ea9-a10b-39a5f1bc97ac",
"position": 6,
"resource_id": "ab70704d-f4c9-4e43-8464-d1516486edd1",
"resource_type": null,
"set_url_type": false,
"size": 187000051,
"state": "active",
"task_created": "2026-06-17 17:34:11.418345",
"url": "https://ckan.pbh.gov.br/dataset/8617b167-e051-4ea9-a10b-39a5f1bc97ac/resource/ab70704d-f4c9-4e43-8464-d1516486edd1/download/dados_abertos_despesas_orcamentarias_2020.csv",
"url_type": "upload"
}
],
"tags": [
{
"display_name": "Despesa",
"id": "7e568a0a-2e76-471f-9c45-7906ab784295",
"name": "Despesa",
"state": "active",
"vocabulary_id": null
},
{
"display_name": "Empenho",
"id": "3d97c1c4-635d-4c01-8e47-e1009269d598",
"name": "Empenho",
"state": "active",
"vocabulary_id": null
},
{
"display_name": "Liquidação",
"id": "5104269d-eb88-4548-b3ea-c2dc3a19d404",
"name": "Liquidação",
"state": "active",
"vocabulary_id": null
},
{
"display_name": "Orçamentária",
"id": "6fd332a5-d404-4961-b621-08e0a4caeec5",
"name": "Orçamentária",
"state": "active",
"vocabulary_id": null
},
{
"display_name": "Pagamento",
"id": "6a0c983f-ce7e-4014-aa6b-44ab96a0e554",
"name": "Pagamento",
"state": "active",
"vocabulary_id": null
}
],
"extras": [],
"groups": [],
"relationships_as_subject": [],
"relationships_as_object": []
}
}Attribution: Source: Portal de Dados Abertos – Prefeitura de Belo Horizonte (Município de Belo Horizonte (City of Belo Horizonte, MG, Brazil)). Data published by the portal's contributing organisations.
Licence: Dataset records on this portal declare the licence "Creative Commons Attribution" (http://www.opendefinition.org/licenses/cc-by). This is the licence the publishing organisations attach to their own datasets; the portal itself states no separate API licence. Quoted as found in the portal's own dataset metadata.
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 Portal de Dados Abertos – Prefeitura de Belo Horizonte (dados-pbh-gov-br) from fastCRW Pergamon, capability "Dataset detail" (dataset). You already have a dataset name or UUID from a search and need its resources, licence or full description. Example options: id=despesas-orcamentarias. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dados-pbh-gov-br" 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>
All dataset names
Use Portal de Dados Abertos – Prefeitura de Belo Horizonte (dados-pbh-gov-br) from fastCRW Pergamon, capability "All dataset names" (dataset-names). You want the complete inventory of dataset ids to iterate over, rather than a scored search page. Example options: limit=100, offset=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dados-pbh-gov-br" and capability "dataset-names". 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 Portal de Dados Abertos – Prefeitura de Belo Horizonte (dados-pbh-gov-br) from fastCRW Pergamon, capability "Dataset search" (datasets). You want to find datasets on this portal by keyword, filter, or recency, and you do not already know a dataset id. Example options: q=statistika, fq=res_format:CSV, sort=metadata_modified desc. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dados-pbh-gov-br" 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>
Dataset title autocomplete
Use Portal de Dados Abertos – Prefeitura de Belo Horizonte (dados-pbh-gov-br) from fastCRW Pergamon, capability "Dataset title autocomplete" (dataset-suggest). You are resolving a partly-remembered dataset title into an id and do not want full search payloads. Example options: q=despes, limit=10. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "dados-pbh-gov-br" and capability "dataset-suggest". 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>
