OpenLegislation is a web service that delivers legislative information from the New York State Senate and Assembly to the public in near-real time. It is used internally to serve up legislative data for nysenate.gov and the Bluebird-CRM.
Clone or download
stouffers Tighten bill id validation.
Adds additional bill id validation to prevent invalid print numbers from
being used to construct a bill id.  Now print numbers are validated
against the print number regex in the normalizePrintNo method.

Additionally, the print number regex has been loosened to allow more
than 5 digits in the bill number.

Fixes #12252
Latest commit aae83c0 Jan 14, 2019

README.md

OpenLegislation

From the New York State Senate

Dual BSD/GPL License. See the NYSenate licensing page http://www.nysenate.gov/Open-Source-Software-Licenses.

Open Legislation is an open source web service developed in-house by the New York State Senate to provide access to NYS legislative data including bills, resolutions, and laws. Developers can request a free key for the JSON API at http://legislation.nysenate.gov/. The JSON API is documented at http://legislation.nysenate.gov/static/docs/html/.

Updates to legislative data are distributed by the Legislative Bill drafting Commission (LBDC) in a raw, plain text format. Open Legislation parses the updates in real time and redistributes the data through the JSON API for integration with various web applications. It is developed and run using several open-source technologies and frameworks including:

  • Java 8
  • Spring 4 framework
  • PostgreSQL
  • Elasticsearch
  • AngularJS
  • Tomcat

Bill page demo

Current Senate Developers

Past Developers