Members of the United States Congress, 1789-Present, in YAML/JSON/CSV, as well as committees, presidents, and vice presidents.
Members of the United States Congress, 1789-Present, in YAML/JSON/CSV, as well as committees, presidents, and vice presidents.
This project provides the following data files:
File Download Descriptionlegislators-current
YAML JSON CSV
Currently serving Members of Congress.
legislators-historical
YAML JSON CSV
Historical Members of Congress (i.e. all Members of Congress except those in the current file).
legislators-social-media
YAML JSON
Current social media accounts for Members of Congress. Official accounts only (no campaign or personal accounts).
committees-current
YAML JSON
Current committees of the Congress, with subcommittees.
committee-membership-current
YAML JSON CSV
Current committee/subcommittee assignments.
committees-historical
YAML JSON
Current and historical committees of the Congress, with subcommittees, from the 93rd Congress (1973) and on.
legislators-district-offices
YAML JSON CSV
District offices for current Members of Congress.
executive
YAML JSON
Presidents and vice presidents.
The data formats are documented below.
The files are maintained in YAML format in the main branch of this project. YAML is a serialization format similar in structure to JSON but typically written with one field per line. Like JSON, it allows for nested structure. Each level of nesting is indicated by indentation or a dash. CSV and JSON formatted files are also provided in the gh-pages branch --- they're linked above.
This database is maintained through a combination of manual edits by volunteers (from GovTrack, ProPublica, MapLight, FiveThirtyEight, and others) and automated imports from a variety of sources including:
legislators-current.yaml and legislators-historical.yaml contain biographical information on all Members of Congress that have ever served in Congress, that is, since 1789, as well as cross-walks into other databases.
Each legislator record is grouped into four guaranteed parts: id's which relate the record to other databases, name information (first, last, etc.), biographical information (birthday, gender), and terms served in Congress. A typical record looks something like this:
- id:
bioguide: R000570
thomas: '01560'
govtrack: 400351
opensecrets: N00004357
votesmart: 26344
fec:
- H8WI01024
cspan: 57970
wikipedia: Paul Ryan
ballotpedia: Paul Ryan
maplight: 445
house_history: 20785
icpsr: 29939
name:
first: Paul
middle: D.
last: Ryan
bio:
birthday: '1970-01-29'
gender: M
terms:
...
- type: rep
start: '2011-01-03'
end: '2013-01-03'
...
- type: rep
start: '2013-01-03'
end: '2015-01-03'
state: WI
party: Republican
district: 1
url: http://paulryan.house.gov
address: 1233 Longworth HOB; Washington DC 20515-4901
phone: 202-225-3031
fax: 202-225-3393
contact_form: http://www.house.gov/ryan/email.htm
office: 1233 Longworth House Office Building
Terms correspond to elections and are listed in chronological order. If a legislator is currently serving, the current term information will always be the last one. To check if a legislator is currently serving, check that the end date on the last term is in the future.
The split between legislators-current.yaml and legislators-historical.yaml is somewhat arbitrary because these files may not be updated immediately when a legislator leaves office. If it matters to you, just load both files.
A separate file legislators-social-media.yaml stores social media account information. Its structure is similar but includes different fields.
The following fields are available in legislators-current.yaml and legislators-historical.yaml:
id
fec_ids column is comma-separated.name
nickname field. When legislators go by a first initial and middle name, we set the first name field to the initial (one character plus a period).first name field is an initial (one character plus a period).first name field instead (see above).other_names, when present, lists other names the legislator has gone by officially. This is helpful in cases where a legislator's legal name has changed. These listings will only include the name attributes which differ from the current name, and a start or end date where applicable. Where multiple names exist, other names are listed chronologically by end date. An excerpted example:
bio
terms (one entry for each election)
No open issues yet, or sync has not completed.