Provides functions to access and collect data from the Brazilian Federal Senate open data API and website. Covers senators, legislative materials, committees, voting records, speeches, provisional measures, vetoes, and legislative agendas, returning results as tidy data frames ready for analysis.

Vinicius Santos http://vsantos.rbind.io/
PhD. Political Science, Universidade Federal de Minas Gerais (UFMG)
The {senatebR} package is a comprehensive tool designed to access information related to the functioning and activities of the Brazilian Federal Senate. This package offers detailed data in five main dimensions:
You can install the current version of senatebR from GitHub:
install.packages("remotes")
remotes::install_github("vsntos/senatebR")
Below is a quick-start guide to using the {senatebR} package.
# This function scraps a page containing information about vetoes.
# The parameter is the number of pages to be processed
df_senadores_legislatura <- obter_dados_senadores_legislatura(47, 56)
df_partidos <- obter_dados_partidos()
The {senatebR} is an initiative dedicated to making the public data of the Brazilian Federal Senate more accessible and understandable to interested citizens. We firmly believe in government transparency and in strengthening civic participation through easy and efficient access to legislative information. Our commitment to the accessibility and usefulness of public data is reflected in our continuous effort to improve and expand our project. We are constantly looking for ways to enhance the functionality of the system and the user experience, ensuring that our project meets the needs and expectations of researchers and individuals interested in parliamentary activities.
Santos, Vinicius (2024). senatebR: Code for collect data from the Brazilian Senate. R package. https://github.com/vsntos/senatebR