← All datasets

US Members of Congress

12,770 people who have served in the US House or Senate since 1789, one row per member, built by combining two open sources on a single shared identifier. The authoritative roster comes from the Congressional Biographical Directory as published in machine-readable form by the @unitedstates project (public domain): the member's name, chamber, state, party, gender, the first and last year they served, the number of terms, total years served, and whether they are serving now. Each member is then enriched from Wikidata (CC0), joined on the Bioguide ID, which Wikidata stores as property P1157, adding year of death, alma mater, the number of Wikidata sitelinks as a fame proxy, and the Wikidata QID, with 99 percent of members matched. John Dingell is the longest-serving at nearly 60 years, ahead of Robert Byrd. A clean demonstration of linking a government registry to Wikidata through a shared external identifier, open to analysis of tenure, turnover, party balance and prominence over more than two centuries. Ten acceptance tests, one enforcing the 25 percent fill rule on every column.
12,770 rows 1 file last pulled 2026-11-02
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • How has average tenure in Congress changed by era?
  • Which states send the longest-serving delegations?
  • Is Congress trending older, and in which chamber faster?
US Members of Congress 12,770 rows × 16 columns
Bioguide_IDNameChamberStatePartyGenderBirth_YearDeath_YearFirst_YearLast_YearTermsYears_ServedCurrently_ServingAlma_MaterWikidata_SitelinksWikidata_ID

Questions and answers

What is the US Members of Congress dataset?

12,770 people who have served in the US House or Senate since 1789, one row per member, built by combining two open sources on a single shared identifier. The authoritative roster comes from the Congressional Biographical Directory as published in machine-readable form by the @unitedstates project (public domain): the member's name, chamber, state, party, gender, the first and last year they served, the number of terms, total years served, and whether they are serving now. Each member is then enriched from Wikidata (CC0), joined on the Bioguide ID, which Wikidata stores as property P1157, adding year of death, alma mater, the number of Wikidata sitelinks as a fame proxy, and the Wikidata QID, with 99 percent of members matched. John Dingell is the longest-serving at nearly 60 years, ahead of Robert Byrd. A clean demonstration of linking a government registry to Wikidata through a shared external identifier, open to analysis of tenure, turnover, party balance and prominence over more than two centuries. Ten acceptance tests, one enforcing the 25 percent fill rule on every column.

How big is the US Members of Congress dataset?

12,770 rows in one CSV file, with 16 columns in total: Bioguide_ID, Name, Chamber, State, Party, Gender, Birth_Year, Death_Year, First_Year, Last_Year, Terms, Years_Served, Currently_Serving, Alma_Mater, Wikidata_Sitelinks, Wikidata_ID.

Where does the data come from?

It is built by programmatically scraping github.com, last pulled on 2026-11-02. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.

Browse every free dataset on CodeSights