入门
在 Duaer 里查美国竞选候选人资金
在 Duaer 里:OpenFEC:美国联邦候选人的募款、支出与现金结余,可按姓名、年份、职位或州查询。一次成功查询用 1 额度。
能拿到什么
Duaer 数据市场里的「美国竞选候选人资金」:OpenFEC:美国联邦候选人的募款、支出与现金结余,可按姓名、年份、职位或州查询。查到结果时用 1 额度,结果交给数字组织的下一个节点。
从节点创建器选 Duaer 数据 → 美国竞选候选人资金,或打开 数据市场。相关:美国国会议员、美国 GovInfo 文献。
适合做什么
- 按募款额排列某州 2024 年参议院候选人。
- 查某位候选人的现金结余。
在画布里检索
- 打开节点创建器,选 Duaer 数据 → US election candidates money。
- 至少填一项:Name(如 smith)、Election Year(如 2024)、Office(如 senate)、State(如 CA)。
- Limit 默认 10,最大 20。执行。
查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。
用 API 调用
- GET https://api.duaer.com/v1/data/fec-candidates?electionYear=2024&office=senate&state=PA
- Authorization: Bearer <Duaer key>
下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。
调用技能(英文)
与数据市场「复制技能」一致。
---
name: duaer-fec-candidates
description: >-
Duaer US election candidates money. OpenFEC: money raised, spent, and on hand by US federal candidates, by name, year, office, or state.
One successful search uses 1 Duaer credit.
---
# Duaer US election candidates money
Duaer US election candidates money returns OpenFEC totals for US House, Senate, and presidential candidates, most money raised first. Duaer holds the upstream API key; you only send your Duaer key.
## When to use
- Rank 2024 Senate candidates in a state by money raised.
- Look up a candidate cash on hand.
## When not to use
- Bills and laws. Use https://skills.duaer.com/congress-bills.md.
- Members of Congress. Use https://skills.duaer.com/congress-members.md.
## Call
`GET https://api.duaer.com/v1/data/fec-candidates?electionYear=2024&office=senate&state=PA`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide at least one of `name`, `electionYear`, `office`, or `state`.
- `name` — Optional. Candidate name words such as smith.
- `electionYear` — Optional. Even election year such as 2024.
- `office` — Optional. `house`, `senate`, or `president`.
- `state` — Optional. Two-letter state code such as CA.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/fec-candidates?electionYear=2024&office=senate&state=PA` — 2024 Pennsylvania Senate candidates.
- `GET https://api.duaer.com/v1/data/fec-candidates?name=smith&office=house` — House candidates named Smith.
## Result
The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:
- `candidateId`, `name`, `party`, `office`, `state`, `district`, `incumbency` — candidate.
- `electionYear`, `cycle`, `coverageEndDate` — election and reporting period.
- `receiptsUsd`, `disbursementsUsd`, `cashOnHandUsd` — money raised, spent, and on hand.
Fields without a value are left out.
## Credits
A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/congress-members.md — Duaer US Congress members
- https://skills.duaer.com/govinfo.md — Duaer US GovInfo documents
常见问题
Duaer 的美国竞选候选人资金检索扣多少额度?
查到结果时扣 1 额度;没有结果或出错不扣。
Duaer 美国竞选候选人资金的数据截至什么时候?
每行的 coverageEndDate 是该候选人最近一次申报覆盖到的日期。
同组