Skip to main content
POST
/
api
/
opensecrets
/
organizations
/opensecrets/organizations
curl --request POST \
  --url https://api.anysite.io/api/opensecrets/organizations \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "id": "<string>",
  "timeout": 300,
  "cycle": "2024"
}
'
[
  {
    "id": "<string>",
    "@type": "@opensecrets_organization",
    "name": "<string>",
    "alias": "<string>",
    "cycle": "<string>",
    "profile_url": "<string>",
    "total_contributions": 123,
    "contributions_rank": 123,
    "total_lobbying": 123,
    "lobbying_rank": 123,
    "total_outside_spending": 123,
    "top_recipients": [],
    "sources_of_funds": [],
    "recipients_of_funds": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
id
string
required

Organization id

Example:

"D000029147"

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

id
string
required
@type
string
default:@opensecrets_organization
name
string | null
alias
string | null
cycle
string | null
profile_url
string | null
total_contributions
integer | null
contributions_rank
integer | null
total_lobbying
integer | null
lobbying_rank
integer | null
total_outside_spending
integer | null
top_recipients
OpensecretsOrgRecipient · object[]
sources_of_funds
OpensecretsFundBreakdown · object[]
recipients_of_funds
OpensecretsFundBreakdown · object[]