Skip to content

Instantly share code, notes, and snippets.

@dwillis
Created June 14, 2017 14:34
Show Gist options
  • Save dwillis/2be9ea5fb7762e625f4d2bf8927abd9b to your computer and use it in GitHub Desktop.
Save dwillis/2be9ea5fb7762e625f4d2bf8927abd9b to your computer and use it in GitHub Desktop.
import requests
r = requests.get("https://api.propublica.org/congress/v1/bills/subjects/taxation.json", headers={'X-API-Key': 'PROPUBLICA CONGRESS API KEY'})
print r.json()['results'][0]
{u'latest_major_action': u'Referred to the House Committee on Ways and Means.', u'committees': u'House Ways and Means Committee', u'title': u'Layoff Prevention Extension Act of 2016', u'sponsor_uri': u'https://api.propublica.org/congress/v1/members/D000216.json', u'number': u'H.R.5408', u'introduced_date': u'2016-06-08', u'bill_uri': u'https://api.propublica.org/congress/v1/114/bills/hr5408.json', u'latest_major_action_date': u'2016-06-08', u'sponsor_id': u'D000216', u'cosponsors': 6}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment