# OpenFEC on Onekey > 2 endpoints for OpenFEC (0 stable, 2 beta), 5 credits each. Category: Government & public data. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/openfec Reference (Markdown): https://onekey.dev/docs/api/openfec.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped OpenFEC endpoints return each: - `entity.category` (string): 2 - `entity.id` (string): 2 - `entity.name` (string): 2 - `entity.status` (string): 2 - `entity.createdAt` (ISO 8601 date): 1 - plus 5 platform-specific fields under `ext.` ## Endpoints ### openfec.candidate_search Search FEC candidates by name. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/openfec/candidate_search?q=biden&per_page=3` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - `per_page` (string, optional, default 20): Rows (1-100) - Fields returned: `entity.id`, `entity.name`, `entity.category`, `entity.status`, `ext.office`, `ext.status`, `ext.electionYears` - Reference: https://onekey.dev/docs/api/openfec/candidate_search.md ### openfec.committees FEC registered committees. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/openfec/committees?per_page=3` with header `x-api-key: YOUR_API_KEY` - Parameters: - `per_page` (string, optional, default 20): Rows (1-100) - Fields returned: `entity.id`, `entity.name`, `entity.category`, `entity.status`, `entity.createdAt`, `ext.party`, `ext.treasurer` - Reference: https://onekey.dev/docs/api/openfec/committees.md ## Sample request ```bash curl "https://api.onekey.dev/v1/openfec/candidate_search?q=biden&per_page=3" \ -H "x-api-key: YOUR_API_KEY" ```