The goal of legiscanrr is to provide tools in R to easily interact with the LegiScan API. You can use the API to retrieve information about legislations in US states and Congress, such as bill details, sponsors, full bill texts, roll call records and more.

This package contains two main groups of functions:

  • Wrapper functions for LegiScan APi operations to retrieve information from LegiScan API.
    • API key from LegiScan is required. Register for a key here
  • Data processing functions to parse information such as bill metadata, bill sponsor, roll call votes, from the JSON files retrieved via API or direct download

Installation

You can install the development version from GitHub with:

install.packages("devtools")
devtools::install_github("fanghuiz/legiscanrr")

Example

library(legiscanrr)

Get bill details via API using get_bill()

Extract bill metadata using parse_bill()

Extract bill progress information using parse_bill_progress()

Extract information about sponsors for this bill using parse_bill_sponsor()