Skip to content

FEC API

3 endpointsGovernment & Open DataUSsocial:read1 real examples

Returns US Federal Election Commission data on federal candidates and registered political committees.

View as Markdown
GET/fec/candidatesCandidates for federal office (President, Senate, House) whose name contains the text.
GET/fec/candidateOne candidate for federal office by FEC id: party, office, state, district and when the FEC first and last received filings.
GET/fec/committeesPolitical committees registered with the FEC (campaign, party, PAC) whose name contains the text.

candidates

GET/v1/fec/candidates

Candidates for federal office (President, Senate, House) whose name contains the text.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
Text in the candidate's name, such as obama. Empty lists every candidate.
e.g. obama
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
activeThroughinteger (int64)
districtstring
idstring
namestring
officestring
partystring
statestring
curl "https://api.hoshime.com/v1/fec/candidates?query=obama" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "activeThrough": 0,
      "district": "…",
      "id": "abc123",
      "name": "…",
      "office": "…",
      "party": "…",
      "state": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "candidates",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "fec",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

candidate

GET/v1/fec/candidate

One candidate for federal office by FEC id: party, office, state, district and when the FEC first and last received filings.

scope social:read1 unitcached 6 h

Parameters

id
string
required
FEC candidate id, such as P80000722 (Joseph R. Biden).
e.g. P80000722
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
activeThroughinteger (int64)
districtstring
firstFileDatestring
idstring
incumbentChallengestring
lastFileDatestring
namestring
officestring
partystring
statestring
statusstring
curl "https://api.hoshime.com/v1/fec/candidate?id=P80000722" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "activeThrough": 2024,
    "district": "00",
    "firstFileDate": "1987-04-03",
    "id": "P80000722",
    "incumbentChallenge": "Incumbent",
    "lastFileDate": "2023-09-05",
    "name": "BIDEN, JOSEPH R JR",
    "office": "President",
    "party": "DEMOCRATIC PARTY",
    "state": "US",
    "status": "P"
  },
  "meta": {
    "cached": false,
    "endpoint": "candidate",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "fec",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

committees

GET/v1/fec/committees

Political committees registered with the FEC (campaign, party, PAC) whose name contains the text.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
Text in the committee's name, such as obama. Empty lists every committee.
e.g. obama
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
designationstring
idstring
namestring
partystring
statestring
typestring
curl "https://api.hoshime.com/v1/fec/committees?query=obama" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "designation": "…",
      "id": "abc123",
      "name": "…",
      "party": "…",
      "state": "…",
      "type": "…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "committees",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "fec",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open