Skip to main content
POST
/
api
/
opensecrets
/
industries
/
search
/opensecrets/industries/search
curl --request POST \
  --url https://api.anysite.io/api/opensecrets/industries/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "mode": "sectors",
  "keyword": "",
  "cycle": "2024"
}
'
[
  {
    "@type": "@opensecrets_industry_list_item",
    "id": "<string>",
    "name": "<string>",
    "amount": 123,
    "total_to_candidates": 123,
    "total_to_outside_groups": 123,
    "democrat_percent": 123,
    "republican_percent": 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
mode
enum<string>
default:sectors

Sector totals or the full industry catalog

Available options:
sectors,
catalog
keyword
string
default:""

Filter catalog industries by name

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_industry_list_item
id
string | null
name
string | null
amount
integer | null
total_to_candidates
integer | null
total_to_outside_groups
integer | null
democrat_percent
number | null
republican_percent
number | null
profile_url
string | null