Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python library for API

Project Description

A Python wrapper for the GovTrack API (v2).

Based off of: - []( - [](


pip install gt-py


from gtpy.api import GTPY client = GTPY()

Choose an endpoint:

client.role() client.person() client.cosponsorship() client.bill() client.vote_voter() client.committee() client.committee_member()

Get a person:

>>>PERSON_ID = 400045 >>>client.person(PERSON_ID) {‘birthday’: ‘1952-10-20’, ‘link’: ‘’, ‘lastname’: ‘Bradley’…

Filter the results, such as getting all the bills voted by the 144th Congress (supports filtering on all [filterable fields](

>>>CONGRESS_ID = 114 >>>client.bill({‘congress’: CONGRESS_ID})

Change the maximum number of results:

>>>client.bill({‘congress’: CONGRESS_ID, ‘limit’: 100})

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Source None Jul 11, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers