- Notifications
You must be signed in to change notification settings - Fork74
LibraryOfCongress/api.congress.gov
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
TheCongress.gov Application Programming Interface (API) provides a method for Congress and the public to view, retrieve, and re-use machine-readable data from collections available on Congress.gov. This repository contains information on accessing and using the Congress.gov API, as well as documentation on available endpoints.
Within the Congress.gov API, responses are returned in XML or JSON formats. An<api-root> element will be visible for responses returned in XML.
For every request, three elements are returned:
- TheRequest element contains information about the API request itself. This includes the format and the
<contentType>; this is essentially the information you might expect to see in a request header. - ThePagination element contains a count of how many total data items are contained within the response, a URL containing the next page of results; and, if the offset is greater than 1, a URL containing the previous page of results.
- TheData element, the name of which changes depending on the endpoint utilized (i.e.
<bills>for the bill endpoint,<amendments>for the amendment endpoint, etc.). This element contains a list of all data items returned by your API call.
An API key is required for access. Sign up for a keyhere.
Learn more on how you can use your API key to access the Congress.gov API onapi.data.gov.
The current version of the API is version 3 (v3). Prior versions were used by the Government Publishing Office (GPO) for itsBulk Data Repository, and other clients.
The rate limit is set to 5,000 requests per hour.
By default, the API returns 20 results starting with the first record. The 20 results limit can be adjusted up to 250 results. If the limit is adjusted to be greater than 250 results, only 250 results will be returned. The offset, or the starting record, can also be adjusted to be greater than 0.
Coverage information for Congress.gov collections data in the API can be found atCoverage Dates for Congress.gov Collections on Congress.gov. This page also provides estimated update times for Congress.gov collections.
Congress.gov staff will monitor and respond to anyissues created in this repository, and will initiate actions, as necessary. Before creating an issue in the repository, please review existing issues and add a comment to any issues relevant to yours.
Congress.gov staff will issue change management communication through theChangeLog so that consumers are able to adjust accordingly. TheChangeLog will contain information on updates to the API, the impacted endpoints, and the expected production release date. Milestones are also used to tag issues with expected production release date information.
About
congress.gov API
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors13
Uh oh!
There was an error while loading.Please reload this page.