/v1/legislator
One legislator by id
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/congress-api/v1/legislator" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/congress-api/v1/legislator", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/congress-api/v1/legislator");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/congress-api/v1/legislator",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"legislator": {
"last": "Cantwell",
"name": "Maria Cantwell",
"first": "Maria",
"party": "Democrat",
"state": "WA",
"terms": [
{
"end": "1995-01-03",
"type": "rep",
"party": "Democrat",
"start": "1993-01-05",
"state": "WA",
"district": 1
},
{
"end": "2007-01-03",
"type": "sen",
"party": "Democrat",
"start": "2001-01-03",
"state": "WA"
},
{
"end": "2013-01-03",
"type": "sen",
"party": "Democrat",
"start": "2007-01-04",
"state": "WA"
},
{
"end": "2019-01-03",
"type": "sen",
"party": "Democrat",
"start": "2013-01-03",
"state": "WA"
},
{
"end": "2025-01-03",
"type": "sen",
"party": "Democrat",
"start": "2019-01-03",
"state": "WA"
},
{
"end": "2031-01-03",
"type": "sen",
"party": "Democrat",
"start": "2025-01-03",
"state": "WA"
}
],
"gender": "F",
"chamber": "senate",
"current": true,
"parties": [
"Democrat"
],
"bioguide": "C000127",
"birthday": "1958-10-13",
"district": null,
"govtrack": 300018,
"wikidata": "Q22250",
"served_to": "2031-01-03",
"wikipedia": "Maria Cantwell",
"term_count": 6,
"served_from": "1993-01-05"
}
},
"meta": {
"timestamp": "2026-05-31T07:41:40.139Z",
"request_id": "b3d7a9c3-95f1-45bf-b730-5c84bcdd9e19"
},
"status": "ok",
"message": "Legislator retrieved",
"success": true
}