Python client for Congress.gov's API.
⚠️ Note: As of March 2023pycongress
is no longer maintained and not reccomended for installation at this time.
Install pycongress
with pip:
$ pip install pycongress
Sign up for an API Key from Congress.Gov prior to using the library.
Store your key as an environment variable named CONGRESS_API_KEY
and it will automatically be passed through the client for authentication.
You may also manually declare your key:
congress = Congress(api_key="Insert key here")
pycongress
currently only supports the bill
, member
, and congress
endpoints. May support more endpoints in the future.
This project was inspired by propublica-congress.
The Congress.Gov API is currently in beta. Visit the Library of Congress blog or GitHub page for more information.