Skip to main content
All providers

Portal de Dados Abertos, Prefeitura de Belo Horizonte

Open data portalsBR

dados.pbh.gov.br

Belo Horizonte's municipal open data portal (Minas Gerais, Brazil).

Capabilities (17)

GET /v1/data/dados-pbh-gov-br/dataset1 credit

Full metadata for one dataset: title, notes, licence, organization, tags, extras and the complete resource list with download URLs and formats.

id
GET /v1/data/dados-pbh-gov-br/dataset-names1 credit

Flat JSON array of every dataset slug on the portal, in alphabetical order.

limit?offset?
GET /v1/data/dados-pbh-gov-br/datasets1 credit

Solr-backed search over every dataset published on the Latvian open data portal; returns a page of 20 full dataset records plus the total match count and facets.

q?fq?sort?start?facet.field?
GET /v1/data/dados-pbh-gov-br/dataset-suggest1 credit

Lightweight typeahead: matching datasets as {name, title, match_field} objects, no resources or descriptions.

qlimit?
GET /v1/data/dados-pbh-gov-br/group1 credit

Metadata for one thematic group: title, description, image and dataset count.

idinclude_datasets?include_extras?
GET /v1/data/dados-pbh-gov-br/group-datasets1 credit

A page of up to 20 full dataset records belonging to one thematic group, with the group's total count.

groupq?sort?start?
GET /v1/data/dados-pbh-gov-br/groups1 credit

Every thematic group (subject category) on the portal with its name, display title, description and dataset count.

limit?offset?sort?
GET /v1/data/dados-pbh-gov-br/licenses1 credit

Every licence the portal offers publishers, as {id, title, url, od_conformance, osd_conformance} objects.

No parameters
GET /v1/data/dados-pbh-gov-br/organization1 credit

Metadata for one publishing organization: title, description, contact extras, dataset count and (optionally) its datasets.

idinclude_datasets?include_extras?include_followers?
GET /v1/data/dados-pbh-gov-br/organization-datasets1 credit

A page of up to 20 full dataset records published by one organization, with the total count for that publisher.

organizationq?sort?start?
GET /v1/data/dados-pbh-gov-br/organizations1 credit

Every publishing organization on the portal with its name, display title, description, image and dataset count.

limit?offset?sort?
GET /v1/data/dados-pbh-gov-br/resource1 credit

Metadata for one file or API endpoint attached to a dataset: download URL, format, size, description and datastore flag.

id
GET /v1/data/dados-pbh-gov-br/resource-rows1 credit

Up to 100 parsed rows of a tabular resource straight from CKAN's DataStore, with the column schema and total row count, so no file download or CSV parsing is needed.

resource_idq?offset?fields?sort?filters?distinct?include_total?plain?
GET /v1/data/dados-pbh-gov-br/resource-search1 credit

Searches resource metadata (not datasets) across the whole portal and returns up to 50 matching resource records with their download URLs.

queryoffset?order_by?
GET /v1/data/dados-pbh-gov-br/site-status1 credit

The portal's CKAN version, site title, locale and the list of installed CKAN extensions.

No parameters
GET /v1/data/dados-pbh-gov-br/tag1 credit

The id, name and vocabulary of one tag, and optionally every dataset carrying it.

idinclude_datasets?vocabulary_id?
GET /v1/data/dados-pbh-gov-br/tags1 credit

Flat JSON array of every free tag used on the portal.

query?vocabulary_id?

Response example

The shape of data from dados-pbh-gov-br/dataset (Dataset detail). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "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_des

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>

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.

http://www.opendefinition.org/licenses/cc-by

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

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.

Cache: up to 3600s