sunlight.congress

The Sunlight Labs Congress API provides methods for obtaining basic information on Members of Congress, legislator IDs used by various websites, and geographical lookups between places and the politicians that represent them. The primary purpose of the API is to facilitate mashups involving politicians and the various other APIs that are out there.

Legislators

This set of Congress API methods deal with federal legislators. For detailed documentaion on the return value of these methods see legislator fields.

Districts

Pair of methods for retrieving districts. District dictionaries have a ‘state’ and ‘number’ key (ex. {‘state’: ‘NC’, ‘number’: ‘3’})

Committees

Methods for dealing with committees.

Table Of Contents

Previous topic

python-sunlight

Next topic

sunlight.openstates

This Page