Hi Eric,
Please post what you have tried.
This is what I tried moments ago and it seems to work well.
GET OFFICES and NAMES (you can replace new york with any area)
returns (shows only a part of the response)
...
{
"name": "Charles E. Schumer",
"address": [
{
"line1": "322 Hart Senate Office Building",
"city": "Washington",
"state": "DC",
"zip": "20510"
}
],
"party": "Democratic Party",
"phones": [
"
(202) 224-6542"
],
"urls": [
"
https://www.schumer.senate.gov/",
"
https://en.wikipedia.org/wiki/Chuck_Schumer"
],
"photoUrl": "
http://bioguide.congress.gov/bioguide/photo/S/S000148.jpg",
...
IF you don't know all the offices you can search by ID
GET THE REQUIRED IDs
returns:
{
"results": [
{
"ocdId": "ocd-division/country:us/state:ny",
"name": "New York"
},
{
"ocdId": "ocd-division/country:us/state:ny/sldl:1",
"name": "New York Assembly district 1"
},
Then get the persons by id
...
Also there is an elections API:
and returns:
{
"elections": [
{
"id": "8120",
"name": "Louisiana Presidential Preference Primary Election",
"electionDay": "2024-03-23",
"ocdDivisionId": "ocd-division/country:us/state:la"
},
{
...