Help Us Grow
OpenGovernment Beta
by PPF and the Sunlight Foundation

OpenGovernment API

Using OpenGovernment data in your app

  • You may use our data as long as your use complies with our licensing terms →
  • You may find that the data you're looking for is available upstream from us. Familiarize yourself with what's available via our Data Sources.
  • No API key is needed at this time; in the future we may require an OpenCongress API key.
  • This API is still in flux. We encourage you to sign up to the OpenGovernment developer list so we keep you informed about any changes to it.

Basic data

We provide data for the following data models:

Most pages on the site are available via JSON and JSONP by simply adding .json to the URL and optionally providing a callback parameter. Most parameters available via normal browsing of the site are also available via the API. So if you request http://ca.opengovernment.org/sessions/20112012/bills?sort=views, for example, you will see a list of top bills by number of views.

Legislator lookup by location

To look up all of the representatives at both federal and state levels for a given lat/long, use a URL such as http://opengovernment.org/search.json?lat=30.286308&lng=-97.719782.

Licensing Terms

We encourage you to remix and excerpt our site content, as long as attribution to OpenGovernment is given and you share your content as well. Our site content is licensed under the Creative Commons Attribution-Share Alike 3.0 US License