Skip to main content
POST
/
api
/
opensecrets
/
members
/
search
/opensecrets/members/search
curl --request POST \
  --url https://api.anysite.io/api/opensecrets/members/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "view": "members_119",
  "cycle": "2024",
  "keyword": "",
  "state": ""
}
'
[
  {
    "@type": "@opensecrets_member_summary",
    "mpid": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "state": "<string>",
    "chamber": "<string>",
    "party": "<string>",
    "profile_url": "<string>",
    "raised": 123,
    "spent": 123,
    "cash_on_hand": 123,
    "debts": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max number of results

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
view
enum<string>
default:members_119

Member directory view

Available options:
members_119,
leadership,
new_members
cycle
enum<string>
default:2024

Election cycle

Available options:
a,
2026,
2024,
2022,
2020,
2018,
2016,
2014,
2012,
2010,
2008,
2006,
2004,
2002,
2000,
1998,
1996,
1994,
1992,
1990
keyword
string
default:""

Filter members by name

Minimum string length: 1
state
string
default:""

Filter by two-letter state code

chamber
enum<string> | null

Filter by chamber

Available options:
H,
S
party
enum<string> | null

Filter by party

Available options:
D,
R,
I,
L

Response

Successful Response

@type
string
default:@opensecrets_member_summary
mpid
string | null
name
string | null
alias
string | null
state
string | null
chamber
string | null
party
string | null
profile_url
string | null
raised
integer | null
spent
integer | null
cash_on_hand
integer | null
debts
integer | null