Access the 'ObrasGov' Open Data API
Overview
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.
New API client
- Renamed the package and repository to
obrasgovrto avoid a name collision with an earlier GitHub package for the legacy ObrasGov API. - Rebuilt the package for the new ObrasGov open data API.
- Added consistent snake_case functions for all eight public resources.
- Added HTTP/2 over TLS negotiation, transient retries, request throttling and actionable API errors.
- Added safe multi-page collection, typed date columns, pagination metadata and lossless nested relationships.
- Added offline unit tests, optional live integration tests, vignettes, pkgdown configuration and continuous integration workflows.
- Made English names canonical across the public interface and documentation, while retaining Portuguese compatibility aliases.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
- Added step-by-step vignettes for resource discovery, safe pagination, nested data normalization, multi-resource joins, and reproducible provenance.
- Added a custom vector hex logo and a more polished, accessible pkgdown theme.
- Updated the project author list.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-07-25
Documentation
- Help pages
- 12 (1 internal)includes a package overview page
- Examples that run
- 100%11 run in a plain check (8 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 69%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
15 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/strategicprojects/obrasgovr on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-30 · The repository has a site deploy workflow
pkgdown site last built 2026-09-30
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-07-16Named in .Rbuildignore: .claude, CLAUDE.local.md, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.local.md, CLAUDE.mdCommits: at least 16 crediting it in the message
- Claude Opus 4.813 commits · Jul 2026
- Claude Opus 5.53 commits · Sep 2026
Dependencies
Code & Tests
People & History
- 0.1.0Latest2026-07-24 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-07-24
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 52 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("obrasgovr")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.