https://benthic.io/ngopen/usp_cl/ – U.S. legislators, executives, committees & district offices

The core theme of this database, created using the wonderful congress-legislators dataset made available by the @unitedstates project, is political structure.

At a glance

CollectionNGOpen
Endpoint/ngopen/usp_cl/
OpenAPIusp_cl.json
Manifestngopen/usp_cl
Provenancemigrated 2026-08-11, commit 66f585560f
Relations12
Columns172
UpdatedWeekly
LicenceCC0
Sourcegithub.com (upstream)
Pipelinengopen-pipelines/pipelines/usp_cl/README.md

Tables

legislators

Current and historical members of the U.S. Congress. One row per person. Links to terms, social media, district offices, and committee membership via bioguide_id.

ColumnTypeDescription
bioguide_idvarchar(10)Primary key. Biographical Directory ID
thomas_idvarchar(10)THOMAS/LIS ID (legacy)
lis_idvarchar(10)LIS ID (Senate)
govtrack_idintegerGovTrack ID
opensecrets_idvarchar(20)OpenSecrets ID
votesmart_idintegerVote Smart ID
cspan_idintegerC-SPAN ID
wikipedia_pagevarchar(255)Wikipedia page title
ballotpedia_pagevarchar(255)Ballotpedia page
maplight_idintegerMapLight ID
house_history_idbigintHouse History ID
icpsr_idintegerICPSR ID
wikidata_idvarchar(20)Wikidata ID
google_entity_idvarchar(100)Google Knowledge Graph ID
pictorial_idintegerCongress pictorial ID
fec_idstext[]FEC candidate IDs (array)
bioguide_previoustext[]Previous bioguide IDs (array)
first_namevarchar(100)First name
middle_namevarchar(100)Middle name
last_namevarchar(100)Last name
suffixvarchar(20)Name suffix (Jr., Sr., etc.)
nicknamevarchar(100)Nickname
official_fullvarchar(255)Official full name
birthdaydateDate of birth
genderchar(1)Gender (M/F)
is_currentbooleanTRUE if currently serving
first_term_startdateDate of first term start
last_term_enddateDate of most recent term end
created_attimestampRecord creation time

Example queries

# Get all current members
curl "https://benthic.io/ngopen/usp_cl/legislators?is_current=is.true&select=bioguide_id,official_full,last_name,first_name&order=last_name&limit=200"

# Look up a specific legislator
curl "https://benthic.io/ngopen/usp_cl/legislators?bioguide_id=eq.P000197&select=official_full,birthday,gender,govtrack_id"

# Search by name
curl "https://benthic.io/ngopen/usp_cl/legislators?official_full=ilike.*schumer*&select=bioguide_id,official_full,is_current"

# Count current members by gender
curl "https://benthic.io/ngopen/usp_cl/legislators?select=gender,count&is_current=is.true&groupby=gender"

legislator_terms

Service terms for members of Congress. One row per term. Links to legislators via bioguide_id.

ColumnTypeDescription
term_idintegerPrimary key
bioguide_idvarchar(10)FK to legislators
congress_startvarchar(3)Starting Congress number
congress_endvarchar(3)Ending Congress number
term_startdateTerm start date
term_enddateTerm end date
term_typevarchar(10)rep, sen, or prez
statechar(2)State abbreviation
districtintegerCongressional district number
classintegerSenate class (1, 2, or 3)
state_rankvarchar(10)Senate rank (junior/senior)
partyvarchar(50)Political party
urlvarchar(500)Official website URL
addresstextOffice address
phonevarchar(50)Office phone
faxvarchar(50)Office fax
contact_formvarchar(500)Contact form URL
officevarchar(255)Office location
rss_urlvarchar(500)RSS feed URL
howvarchar(50)How the term ended (appointment, election, etc.)
end_typevarchar(50)End type
created_attimestampRecord creation time

Example queries

# Get all terms for a legislator
curl "https://benthic.io/ngopen/usp_cl/legislator_terms?bioguide_id=eq.P000197&order=term_start"

# Get all current Senate terms
curl "https://benthic.io/ngopen/usp_cl/legislator_terms?term_type=eq.sen&term_end=gte.2026-01-01&select=bioguide_id,state,state_rank,party&order=state"

# Get representatives for a state
curl "https://benthic.io/ngopen/usp_cl/legislator_terms?state=eq.CA&term_type=eq.rep&term_end=gte.2026-01-01&select=bioguide_id,district,party&order=district"

# Get all terms in a specific Congress (118th = 2023-2025)
curl "https://benthic.io/ngopen/usp_cl/legislator_terms?congress_start=eq.118&select=bioguide_id,term_type,state,district,party&limit=600"

# Count members by party for current terms
curl "https://benthic.io/ngopen/usp_cl/legislator_terms?select=party,count&term_end=gte.2026-01-01&groupby=party"

legislator_social_media

Social media accounts for legislators. One row per legislator. Links to legislators via bioguide_id.

ColumnTypeDescription
social_idintegerPrimary key
bioguide_idvarchar(10)FK to legislators
twittervarchar(100)Twitter/X handle
twitter_idvarchar(50)Twitter/X numeric ID
facebookvarchar(100)Facebook page
facebook_idbigintFacebook numeric ID
youtubevarchar(100)YouTube channel
youtube_idvarchar(100)YouTube channel ID
instagramvarchar(100)Instagram handle
instagram_idbigintInstagram numeric ID
created_attimestampRecord creation time

Example queries

# Get social media for a legislator
curl "https://benthic.io/ngopen/usp_cl/legislator_social_media?bioguide_id=eq.P000197&select=twitter,facebook,youtube,instagram"

# Find legislators with Instagram
curl "https://benthic.io/ngopen/usp_cl/legislator_social_media?instagram=not.is.null&select=bioguide_id,twitter,instagram&limit=100"

legislator_other_names

Alternate and former names for legislators. One row per name variant. Links to legislators via bioguide_id.

ColumnTypeDescription
name_idintegerPrimary key
bioguide_idvarchar(10)FK to legislators
first_namevarchar(100)Alternate first name
middle_namevarchar(100)Alternate middle name
last_namevarchar(100)Alternate last name
suffixvarchar(20)Name suffix
start_datedateName usage start date
end_datedateName usage end date
created_attimestampRecord creation time

district_offices

Geocoded district office locations for members of Congress. One row per office. Links to legislators via bioguide_id.

ColumnTypeDescription
office_idintegerPrimary key
bioguide_idvarchar(10)FK to legislators
office_keyvarchar(100)Unique office key
addresstextStreet address
suitevarchar(255)Suite number
buildingvarchar(255)Building name
cityvarchar(100)City
statechar(2)State
zipvarchar(20)ZIP code
latitudedouble precisionGeocoded latitude
longitudedouble precisionGeocoded longitude
geom_pointgeometry(Point, 4326)PostGIS point geometry (auto-populated from lat/lon)
phonevarchar(50)Office phone
faxvarchar(50)Office fax
hourstextOffice hours
created_attimestampRecord creation time

Example queries

# Get district offices for a legislator
curl "https://benthic.io/ngopen/usp_cl/district_offices?bioguide_id=eq.P000197&select=address,city,state,zip,phone,latitude,longitude"

# Get all geocoded offices in a state
curl "https://benthic.io/ngopen/usp_cl/district_offices?state=eq.TX&latitude=not.is.null&select=bioguide_id,city,latitude,longitude&limit=50"

# Find offices near a coordinate
curl "https://benthic.io/ngopen/usp_cl/district_offices?latitude=gte.38.0&latitude=lte.39.0&longitude=gte.-77.0&longitude=lte.-76.0&latitude=not.is.null"

executives

Presidents and executive branch officials. One row per person. Links to executive_terms via bioguide_id.

ColumnTypeDescription
bioguide_idvarchar(10)Primary key
govtrack_idintegerGovTrack ID
icpsr_prez_idintegerICPSR president ID
first_namevarchar(100)First name
middle_namevarchar(100)Middle name
last_namevarchar(100)Last name
suffixvarchar(20)Name suffix
birthdaydateDate of birth
genderchar(1)Gender
created_attimestampRecord creation time

Example queries

# List all presidents
curl "https://benthic.io/ngopen/usp_cl/executives?select=bioguide_id,last_name,first_name,birthday&order=last_name"

executive_terms

Terms of office for presidents. Links to executives via bioguide_id.

ColumnTypeDescription
term_idintegerPrimary key
bioguide_idvarchar(10)FK to executives
term_typevarchar(20)Term type (e.g. prez)
start_datedateTerm start date
end_datedateTerm end date
partyvarchar(50)Political party
howvarchar(50)How obtained (election, succession)
created_attimestampRecord creation time

Example queries

# Get presidential terms
curl "https://benthic.io/ngopen/usp_cl/executive_terms?select=bioguide_id,term_type,start_date,end_date,party&order=start_date.desc"

committees

Congressional committees (standing, select, joint). One row per committee.

ColumnTypeDescription
committee_idintegerPrimary key
thomas_idvarchar(20)THOMAS committee ID
house_committee_idvarchar(10)House committee ID
senate_committee_idvarchar(10)Senate committee ID
committee_typevarchar(20)Committee type (house, senate, joint)
namevarchar(255)Committee name
urlvarchar(500)Committee website
minority_urlvarchar(500)Minority party website
addresstextCommittee address
phonevarchar(50)Committee phone
jurisdictiontextCommittee jurisdiction description
rss_urlvarchar(500)RSS feed URL
youtube_idvarchar(50)YouTube channel ID
congressesinteger[]Congress numbers when active (array)
is_currentbooleanTRUE if currently active
created_attimestampRecord creation time

Example queries

# Get all current committees
curl "https://benthic.io/ngopen/usp_cl/committees?is_current=is.true&select=committee_id,name,committee_type&order=committee_type,name"

# Get Senate committees
curl "https://benthic.io/ngopen/usp_cl/committees?committee_type=eq.senate&is_current=is.true&select=name,url,phone"

# Search committees by name
curl "https://benthic.io/ngopen/usp_cl/committees?name=ilike.*appropriations*&select=committee_id,name,committee_type"

subcommittees

Subcommittees under congressional committees. Links to committees via committee_id.

ColumnTypeDescription
subcommittee_idintegerPrimary key
committee_idintegerFK to committees
thomas_idvarchar(10)THOMAS subcommittee ID
namevarchar(255)Subcommittee name
addresstextSubcommittee address
phonevarchar(50)Subcommittee phone
congressesinteger[]Congress numbers when active (array)
created_attimestampRecord creation time

Example queries

# Get subcommittees for a committee
curl "https://benthic.io/ngopen/usp_cl/subcommittees?committee_id=eq.26&select=subcommittee_id,name"

committee_membership

Legislator assignments to committees and subcommittees. One row per assignment.

ColumnTypeDescription
membership_idintegerPrimary key
committee_thomas_idvarchar(20)THOMAS committee/subcommittee ID
bioguide_idvarchar(10)Legislator bioguide ID
legislator_namevarchar(255)Legislator name
partyvarchar(20)Political party
rankintegerSeniority rank
titlevarchar(100)Title (Chair, Ranking Member, etc.)
created_attimestampRecord creation time

Example queries

# Get committee members for a committee
curl "https://benthic.io/ngopen/usp_cl/committee_membership?committee_thomas_id=eq.SFIN&select=legislator_name,party,rank,title&order=rank"

# Get all committee assignments for a legislator
curl "https://benthic.io/ngopen/usp_cl/committee_membership?bioguide_id=eq.P000197&select=committee_thomas_id,party,rank,title"

# Get chairs of committees
curl "https://benthic.io/ngopen/usp_cl/committee_membership?title=ilike.*chair*&select=legislator_name,committee_thomas_id,title&limit=50"

Joining tables (embedding)

PostgREST supports resource embedding via foreign key relationships:

# Get a legislator with all their terms
curl "https://benthic.io/ngopen/usp_cl/legislators?select=official_full,legislator_terms(term_type,state,district,party)&bioguide_id=eq.P000197"

# Get a legislator with social media
curl "https://benthic.io/ngopen/usp_cl/legislators?select=official_full,legislator_social_media(twitter,facebook,instagram)&bioguide_id=eq.P000197"

# Get a legislator with district offices
curl "https://benthic.io/ngopen/usp_cl/legislators?select=official_full,district_offices(city,state,phone,latitude,longitude)&bioguide_id=eq.P000197"

# Get a committee with its subcommittees
curl "https://benthic.io/ngopen/usp_cl/committees?select=name,subcommittees(name)&committee_id=eq.26"

# Get current senators with their terms embedded
curl "https://benthic.io/ngopen/usp_cl/legislators?select=official_full,legislator_terms!inner(state,state_rank,party)&legislator_terms.term_type=eq.sen&legislator_terms.term_end=gte.2026-01-01&is_current=is.true&order=official_full"

PostgREST query reference

Filtering

OperatorSyntaxExample
Equals?col=value?state=eq.CA
Not equal?col=neq.value?party=neq.Democrat
Greater than?col=gt.value?term_end=gt.2025-01-01
Less than?col=lt.value?birthday=lt.1960-01-01
Greater/eq?col=gte.value?term_end=gte.2026-01-01
Less/eq?col=lte.value?term_end=lte.2025-12-31
ILIKE?col=ilike.PATTERN?official_full=ilike.%25john%25
IS null?col=is.null?end_type=is.null
IS NOT null?col=not.is.null?twitter=not.is.null
IN?col=in.(val1,val2)?state=in.(CA,NY,TX)

Selecting columns

?select=bioguide_id,official_full,state,party

Ordering

?order=last_name.asc
?order=term_start.desc

Pagination

?limit=100&offset=200

Counting

Prefer: count=exact

Grouping / aggregation

?select=party,count&groupby=party

Key relationships

All tables link via bioguide_id or committee_id/thomas_id:

  • legislators.bioguide_id = primary person identifier
  • legislator_terms.bioguide_id -> legislators.bioguide_id
  • legislator_social_media.bioguide_id -> legislators.bioguide_id
  • legislator_other_names.bioguide_id -> legislators.bioguide_id
  • district_offices.bioguide_id -> legislators.bioguide_id
  • executive_terms.bioguide_id -> executives.bioguide_id
  • subcommittees.committee_id -> committees.committee_id
  • committee_membership.bioguide_id -> legislators.bioguide_id (logical, no FK constraint)
  • committee_membership.committee_thomas_id -> committees.thomas_id (logical, no FK constraint)

Cross-dataset: legislator_terms.state + district matches up_cdmaps.congressional_districts for spatial district boundaries. Note that congressional_districts geometry is stored in EPSG:3857 (Web Mercator) while geocoded points across datasets are EPSG:4326 — apply a reprojection (e.g. ST_Transform) when joining geometries directly.

Views

mv_current_lawmakers

Pre-joined profile of all currently serving legislators with their active term, social media accounts, office count, and committee count.

ColumnTypeDescription
bioguide_idvarchar(10)Primary key
official_fullvarchar(255)Full name
first_namevarchar(100)First name
last_namevarchar(100)Last name
genderchar(1)Gender
birthdaydateDate of birth
statechar(2)State
districtintegerCongressional district (null for senators)
term_typevarchar(10)rep or sen
partyvarchar(50)Political party
term_startdateTerm start date
term_enddateTerm end date
senate_classintegerSenate class (1, 2, or 3)
state_rankvarchar(10)junior or senior
office_phonevarchar(50)Office phone
contact_formvarchar(500)Contact form URL
twittervarchar(100)Twitter/X handle
facebookvarchar(100)Facebook page
instagramvarchar(100)Instagram handle
youtubevarchar(100)YouTube channel
office_countbigintNumber of district offices
committee_countbigintNumber of committee assignments

Example queries

# All current senators
curl "https://benthic.io/ngopen/usp_cl/mv_current_lawmakers?term_type=eq.sen&select=official_full,state,party,senate_class&order=state"

# Representatives by party
curl "https://benthic.io/ngopen/usp_cl/mv_current_lawmakers?term_type=eq.rep&party=eq.Republican&select=official_full,state,district&order=state,district&limit=50"

# Legislators with most committee assignments
curl "https://benthic.io/ngopen/usp_cl/mv_current_lawmakers?select=official_full,committee_count,office_count&order=committee_count.desc&limit=25"

mv_committee_power

Committee membership with legislator district information. Shows who sits on which committees, their role, and which district they represent.

ColumnTypeDescription
committee_idintegerCommittee ID
thomas_idvarchar(20)THOMAS committee ID
committee_namevarchar(255)Committee name
committee_typevarchar(20)house, senate, or joint
is_currentbooleanCurrently active
bioguide_idvarchar(10)Legislator bioguide ID
legislator_namevarchar(255)Legislator name
partyvarchar(20)Political party
rankintegerSeniority rank
titlevarchar(100)Title (Chair, Ranking Member, etc.)
statechar(2)Legislator’s state
districtintegerLegislator’s district
term_enddateTerm end date

Example queries

# All Appropriations Committee members
curl "https://benthic.io/ngopen/usp_cl/mv_committee_power?thomas_id=eq.SAPP&select=legislator_name,party,rank,title,state,district&order=rank"

# Committee chairs
curl "https://benthic.io/ngopen/usp_cl/mv_committee_power?title=ilike.*chair*&select=legislator_name,committee_name,state,district&limit=50"

# Members from a state on a specific committee
curl "https://benthic.io/ngopen/usp_cl/mv_committee_power?thomas_id=eq.SFIN&state=eq.CA&select=legislator_name,title"

Data sources

SourceDescriptionUpdate frequency
unitedstates/congress-legislatorsEight YAML documents: legislators, terms, social media, other names, district offices, committees, subcommittees, committee membership, and executive officialsContinuous (git)
PhotonGeocoding for district office addressesOn rebuild

All data originates from publicly available sources. The upstream project is community-maintained and CC0-licensed; the pipeline records the exact commit each build was produced from, so a refresh is reproducible.

The source is a git checkout rather than an archive, so 00_acquire fast-forwards and pins the revision. Districts resolve to boundaries by state + district in up_cdmaps, not by geometry.