Skip to main content
POST
/
api
/
opensecrets
/
members
/opensecrets/members
curl --request POST \
  --url https://api.anysite.io/api/opensecrets/members \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "mpid": "<string>",
  "timeout": 300,
  "cycle": "2024"
}
'
[
  {
    "mpid": "<string>",
    "@type": "@opensecrets_member",
    "cid": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "image": "<string>",
    "chamber": "<string>",
    "state": "<string>",
    "district": "<string>",
    "party": "<string>",
    "profile_url": "<string>",
    "cycle": "<string>",
    "total_raised": 123,
    "total_spent": 123,
    "cash_on_hand": 123,
    "fundraising": {
      "@type": "@opensecrets_member_fundraising",
      "cycle": "<string>",
      "raised": 123,
      "spent": 123,
      "cash_on_hand": 123,
      "debts": 123
    },
    "contributor_summary": {
      "@type": "@opensecrets_member_contributor_summary",
      "total_pac_money": 123,
      "unique_pac_contributor_count": 123,
      "total_from_individuals": 123,
      "top_state": "<string>",
      "top_state_total": 123
    },
    "top_organizations": [],
    "top_industries": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
mpid
string
required

Member master profile id

Example:

"1071712"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
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

Response

Successful Response

mpid
string
required
@type
string
default:@opensecrets_member
cid
string | null
name
string | null
alias
string | null
image
string | null
chamber
string | null
state
string | null
district
string | null
party
string | null
profile_url
string | null
cycle
string | null
total_raised
integer | null
total_spent
integer | null
cash_on_hand
integer | null
fundraising
OpensecretsMemberFundraising · object
contributor_summary
OpensecretsMemberContributorSummary · object
top_organizations
OpensecretsMemberAffiliation · object[]
top_industries
OpensecretsMemberAffiliation · object[]