Package: obrasgovr 0.1.0

Andre Leite

obrasgovr: Access the 'ObrasGov' Open Data API

Provides a modern interface to the Brazilian federal government's 'ObrasGov' open data application programming interface (<https://api-publica.obrasgov.gestao.gov.br>). Retrieves data about public infrastructure projects, physical execution, contracts, commitments, geometries, feasibility studies, and project status histories. Results are returned as tidy tibbles with typed date columns, preserved nested relationships, pagination metadata, and optional multi-page collection.

Authors:Andre Leite [aut, cre], Marcos Wasiliew [aut], Hugo Vasconcelos [aut], Carlos Amorim [aut], Diogo Bezerra [aut]

obrasgovr_0.1.0.tar.gz
obrasgovr_0.1.0.zip(r-4.7-any)
obrasgovr_0.1.0.tar.gz(r-4.7-any)obrasgovr_0.1.0.tar.gz(r-4.6-any)
obrasgovr_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
obrasgovr/json (API)

# Install 'obrasgovr' in R:
install.packages('obrasgovr', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strategicprojects/obrasgovr/issues

Pkgdown/docs site:https://strategicprojects.github.io

On CRAN:

Conda:

3.18 score 22 exports 18 dependencies

Last updated from:7051174a33. Checks:5 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK132
source / vignettesOK222
linux-release-x86_64OK150
windows-devel-x86_64OK79
wasm-releaseOK116

Exports:get_commitmentsget_contractsget_feasibility_studiesget_geometriesget_last_updateget_physical_executionget_projectsget_status_historylist_filterslist_resourcesobrasgov_filtrosobrasgov_metadadosobrasgov_recursosobter_contratosobter_data_atualizacaoobter_empenhosobter_estudos_viabilidadeobter_execucao_fisicaobter_geometriasobter_historico_situacaoobter_projetosresult_metadata

Dependencies:askpassclicurlgluehttr2lifecyclemagrittropensslpillarpkgconfigpurrrR6rlangsystibbleutf8vctrswithr

An end-to-end ObrasGov workflow
1. Define the query explicitly | 2. Retrieve the project table | 3. Choose project identifiers | 4. Retrieve related records | 5. Join project attributes to related records | 6. Preserve provenance

Last update: 2026-07-24
Started: 2026-07-24

Introduction to obrasgovr
1. Discover available resources | 2. Inspect filters before querying | 3. Retrieve a small first page | 4. Inspect pagination metadata | 5. Retrieve related resources | 6. Record the source update timestamp | Portuguese aliases | Client configuration | Next steps

Last update: 2026-07-24
Started: 2026-07-24

Pagination and nested data
Retrieve one page first | Collect a controlled number of pages | Understand nested relationships | Normalize one nested relationship | Work across collected pages | Save data with retrieval context

Last update: 2026-07-24
Started: 2026-07-24

Readme and manuals

Help Manual

Help pageTopics
Retrieve budget commitmentsget_commitments obter_empenhos
Retrieve contractsget_contracts obter_contratos
Retrieve feasibility studiesget_feasibility_studies obter_estudos_viabilidade
Retrieve geometriesget_geometries obter_geometrias
Retrieve the data update timestampget_last_update obter_data_atualizacao
Retrieve physical execution dataget_physical_execution obter_execucao_fisica
Retrieve infrastructure projectsget_projects obter_projetos
Retrieve project status historiesget_status_history obter_historico_situacao
List filters accepted by a resourcelist_filters obrasgov_filtros
List available ObrasGov API resourceslist_resources obrasgov_recursos
Retrieve pagination metadataobrasgov_metadados result_metadata