Skip to main content
POST
/
api
/
opensecrets
/
organizations
/
search
/opensecrets/organizations/search
curl --request POST \
  --url https://api.anysite.io/api/opensecrets/organizations/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "",
  "sort_by": "contributors",
  "cycle": "2024"
}
'
[
  {
    "@type": "@opensecrets_org_search_result",
    "id": "<string>",
    "name": "<string>",
    "alias": "<string>",
    "rank": 123,
    "total": 123,
    "profile_url": "<string>"
  }
]

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
keyword
string
default:""

Search organizations by name

Minimum string length: 1
sort_by
enum<string>
default:contributors

Ranked list when no keyword is given

Available options:
contributors,
outside_spending,
lobbying
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

@type
string
default:@opensecrets_org_search_result
id
string | null
name
string | null
alias
string | null
rank
integer | null
total
integer | null
profile_url
string | null