A place where you can find your legislators and discover where their top campaign funding sources come from.
A JSON API for looking up legislators by zipcode along with their top 5 campaign contributors organized by cycle.
http://fundingcongress.com/api/v1/[method].json[options]
-
legislatorsExample usage:
http://fundingcongress.com/api/v1/legislators.jsonUse this method with no additional options to see all legislators in the database. Please note, the database is not an exhaustive list of all legislators; legislators are pulled in as users of the site search for their zipcode.
Add a zipcode option to the legislators method to see all legislators for that zipcode.
Example usage:
http://fundingcongress.com/api/v1/legislators.json?zipcode=80203Please note, if the legislators for that zipcode do not yet exist in the database, the request will take several seconds to pull all the data from the Sunlight APIs. -
legislators/:idExample usage:
http://fundingcongress.com/api/v1/legislators/100.jsonUse this method to see only one legislator along with its contributors.