# ForgeMesh Candidate Fundraising API

> ForgeMesh Candidate Fundraising API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns latest-cycle and historical fundraising totals for US federal candidates from official FEC filings, including receipts, disbursements, cash on hand, party, office, and state.

## Facts

- Endpoint: POST https://x402.forgemesh.io/candidate-fundraising?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-candidate-fundraising-api-c19b2438
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WdUIf_HhvSK2Nsd3k7BrE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forgemesh-candidate-fundraising-api-c19b2438 -d '<json body>'
```

Example prompt: How much has Bernie Sanders raised in the current Senate election cycle — give me his total receipts, spending, and cash on hand from the latest FEC filings.

## When to prefer this

Use this endpoint when you need official FEC-sourced campaign finance totals for US federal candidates (President, Senate, House) and want cycle-by-cycle receipts, disbursements, cash on hand, and debt figures. Prefer this over general web search when you need structured, machine-readable financial data directly from official filings. Supports both fuzzy name lookup for exploratory queries and exact FEC candidate ID for deterministic pipelines.

## Known failure modes

- Ambiguous candidate name matching multiple FEC records — returns best match or error
- Candidate not found for given name or ID — returns empty or 404-style error
- Invalid or malformed FEC candidate ID format — returns validation error
- Candidate name too short (under 3 characters) — rejected by input validation
- No data available for the specified candidate or cycle — returns empty totals array
- Network or payment failure via x402 protocol — call does not complete

## How this service works

How much has a candidate raised: latest-cycle fundraising totals for US federal candidates from official filings, with party, office, state, and cycle-by-cycle receipts, spending, and cash position. Accepts a fuzzy name or an exact candidate id for deterministic agent pipelines.

## Output

A JSON object containing the matched candidate's name, party, state, office, district, and FEC candidate ID, plus an array of per-cycle financial totals including receipts, disbursements, cash on hand, and debts in USD. Attribution to the Federal Election Commission is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "office": {
   "enum": [
    "president",
    "senate",
    "house"
   ],
   "type": "string",
   "description": "prefer matches for this office"
  },
  "candidate": {
   "type": "string",
   "description": "candidate name, min 3 chars"
  },
  "candidate_id": {
   "type": "string",
   "description": "exact FEC candidate id, e.g. 'P80001571' (alternative to name)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "candidate": {
   "name": "PELOSI, NANCY",
   "party": "DEMOCRATIC PARTY",
   "state": "CA",
   "office": "House",
   "district": "11",
   "candidate_id": "H8CA05035"
  },
  "attribution": "Federal Election Commission (public domain)",
  "totals_by_cycle": [
   {
    "cycle": 2026,
    "debts_usd": 0,
    "receipts_usd": 8123456.78,
    "cash_on_hand_usd": 2100000.5,
    "disbursements_usd": 6543210.99
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-candidate-fundraising-api-c19b2438/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
