# FEC Candidate Search

> FEC Candidate Search is a paid API for AI agents from x402-data-bazaar.vercel.app, paid per call via x402, $0.005/call, status down (last checked 2026-09-15).

Search Federal Election Commission candidate records by name, party, office, state, district, and election cycle

## Facts

- Endpoint: GET https://x402-data-bazaar.vercel.app/api/fec/candidates
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-data-bazaar-vercel-app-108cb5e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pR1iOOlcmZegQenSHd-H-

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 x402-data-bazaar-vercel-app-108cb5e7
```

Example prompt: Can you search the FEC database for all Democratic Senate candidates in California from the 2024 election cycle — show me up to 20 results?

## When to prefer this

Use this endpoint when you need structured, official FEC candidate data including party, office, state, and election cycle. Prefer this over general web search when you need machine-readable candidate records directly from the Federal Election Commission, especially for filtering by specific office type (House/Senate/President), party, or state.

## Known failure modes

- No candidates found matching the given filters — returns empty candidates array with count 0
- Invalid office code (not H, S, or P) may return no results or an error
- Invalid state code may return empty results
- FEC API upstream unavailable — may return error or timeout
- Overly broad name query may return very large result sets if limit not specified

## How this service works

FEC candidate search -- name, party, office, state, district, incumbent status, election cycles. Query: ?name=smith&office=S&state=CA

## Output

Returns a list of FEC-registered candidates matching the query, including each candidate's full name, party affiliation, state, office sought, and election cycle. Also includes a result count and confirms the source as the Federal Election Commission API.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "name": {
   "type": "string",
   "description": "Candidate name search string"
  },
  "cycle": {
   "type": "string",
   "description": "Election cycle year"
  },
  "limit": {
   "type": "string",
   "description": "Maximum results to return"
  },
  "party": {
   "type": "string",
   "description": "Party code filter"
  },
  "state": {
   "type": "string",
   "description": "Two-letter state code"
  },
  "office": {
   "type": "string",
   "description": "Office code: H, S, or P"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "data": {
  "count": 1,
  "candidates": [
   {
    "name": "Smith, John",
    "party": "Democratic Party",
    "state": "CA",
    "office": "Senate"
   }
  ]
 },
 "source": "Federal Election Commission API",
 "success": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-data-bazaar-vercel-app-108cb5e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-bazaar.vercel.app](https://www.zero.xyz/host/x402-data-bazaar.vercel.app/llms.txt)
