# OpenFEC API

> This application programming interface (API) allows you to explore the way candidates and committees fund their campaigns. The Federal Election Commission (FEC) API is a RESTful web service supporting full-text and field-specific searches on FEC data. [Bulk downloads](https://www.fec.gov/data/advanced/?tab=bulk-data) are available on the current site. Information is tied to the underlying forms by file ID and image ID. Data is updated nightly. There are a lot of data, and a good place to start is to use search to find interesting candidates and committees. Then, you can use their IDs to find report or line item details with the other endpoints. If you are interested in individual donors, check out contributor information in the `/schedule_a/` endpoints. <b class="body" id="getting_started_head">Getting started with the openFEC API</b><br> If you would like to use the FEC's API programmatically, you can sign up for your own API key using our form. Alternatively, you can still try out our API without an API key by using the web interface and using DEMO_KEY. Note that when you use the openFEC API you are subject to the [Terms of Service](https://github.com/fecgov/FEC/blob/master/TERMS-OF-SERVICE.md) and [Acceptable Use policy](https://github.com/fecgov/FEC/blob/master/ACCEPTABLE-USE-POLICY.md). Signing up for an API key will enable you to place up to 1,000 calls an hour. Each call is limited to 100 results per page. You can email questions, comments or a request to get a key for 7,200 calls an hour (120 calls per minute) to <a href="mailto:APIinfo@fec.gov">APIinfo@fec.gov</a>. You can also ask questions and discuss the data in a community led [group](https://groups.google.com/forum/#!forum/fec-data). The model definitions and schema are available at [/swagger](/swagger/). This is useful for making wrappers and exploring the data. A few restrictions limit the way you can use FEC data. For example, you can’t use contributor lists for commercial purposes or to solicit donations. [Learn more here](https://www.fec.gov/updates/sale-or-use-contributor-information/). [Inspect our source code](https://github.com/fecgov/openFEC). We welcome issues and pull requests! <p><br></p> <h2 class="title" id="signup_head">Sign up for an API key</h2> <div id="apidatagov_signup">Loading signup form...</div>.

OpenFEC is an open data API from fec.gov. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 91 endpoints.

## At a glance

- Category: [Open Data](https://www.openparable.com/apis/category/open-data)
- Provider: fec.gov
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Documentation: https://fec.gov/
- OpenAPI description: https://api.apis.guru/v2/specs/fec.gov/1.0/openapi.json
- Version: 1.0
- Specification updated: 2023-03-06

## Endpoints

- `GET /audit-case/`
- `GET /audit-category/`
- `GET /audit-primary-category/`
- `GET /calendar-dates/`
- `GET /calendar-dates/export/`
- `GET /candidate/{candidate_id}/`
- `GET /candidate/{candidate_id}/committees/`
- `GET /candidate/{candidate_id}/committees/history/`
- `GET /candidate/{candidate_id}/committees/history/{cycle}/`
- `GET /candidate/{candidate_id}/filings/`
- `GET /candidate/{candidate_id}/history/`
- `GET /candidate/{candidate_id}/history/{cycle}/`
- `GET /candidate/{candidate_id}/totals/`
- `GET /candidates/`
- `GET /candidates/search/`
- `GET /candidates/totals/`
- `GET /candidates/totals/aggregates/` — Candidate total receipts and disbursements aggregated by `aggregate_by`.
- `GET /candidates/totals/by_office/` — Aggregated candidate receipts and disbursements grouped by office by cycle.
- `GET /candidates/totals/by_office/by_party/` — Aggregated candidate receipts and disbursements grouped by office by party by cycle.
- `GET /committee/{committee_id}/`
- `GET /committee/{committee_id}/candidates/`
- `GET /committee/{committee_id}/candidates/history/`
- `GET /committee/{committee_id}/candidates/history/{cycle}/`
- `GET /committee/{committee_id}/filings/`
- `GET /committee/{committee_id}/history/`
- `GET /committee/{committee_id}/history/{cycle}/`
- `GET /committee/{committee_id}/reports/`
- `GET /committee/{committee_id}/totals/`
- `GET /committees/`
- `GET /communication_costs/`
- `GET /communication_costs/aggregates/` — Communication cost aggregated by candidate ID and committee ID.
- `GET /communication_costs/by_candidate/` — Communication cost aggregated by candidate ID and committee ID.
- `GET /communication_costs/totals/by_candidate/`
- `GET /efile/filings/` — Basic information about electronic files coming into the FEC, posted as they are received.
- `GET /efile/reports/house-senate/`
- `GET /efile/reports/pac-party/`
- `GET /efile/reports/presidential/`
- `GET /election-dates/`
- `GET /electioneering/`
- `GET /electioneering/aggregates/` — Electioneering communications costs aggregates
- `GET /electioneering/by_candidate/` — Electioneering costs aggregated by candidate
- `GET /electioneering/totals/by_candidate/`
- `GET /elections/`
- `GET /elections/search/`
- `GET /elections/summary/`
- `GET /filings/`
- `GET /legal/search/`
- `GET /names/audit_candidates/`
- `GET /names/audit_committees/`
- `GET /names/candidates/`
- `GET /names/committees/`
- `GET /operations-log/`
- `GET /presidential/contributions/by_candidate/`
- `GET /presidential/contributions/by_size/`
- `GET /presidential/contributions/by_state/`
- `GET /presidential/coverage_end_date/`
- `GET /presidential/financial_summary/`
- `GET /rad-analyst/`
- `GET /reporting-dates/`
- `GET /reports/{entity_type}/`
- `GET /schedules/schedule_a/`
- `GET /schedules/schedule_a/by_employer/`
- `GET /schedules/schedule_a/by_occupation/`
- `GET /schedules/schedule_a/by_size/`
- `GET /schedules/schedule_a/by_size/by_candidate/`
- `GET /schedules/schedule_a/by_state/`
- `GET /schedules/schedule_a/by_state/by_candidate/`
- `GET /schedules/schedule_a/by_state/by_candidate/totals/`
- `GET /schedules/schedule_a/by_state/totals/`
- `GET /schedules/schedule_a/by_zip/`
- `GET /schedules/schedule_a/efile/`
- `GET /schedules/schedule_a/{sub_id}/`
- `GET /schedules/schedule_b/`
- `GET /schedules/schedule_b/by_purpose/`
- `GET /schedules/schedule_b/by_recipient/`
- `GET /schedules/schedule_b/by_recipient_id/`
- `GET /schedules/schedule_b/efile/`
- `GET /schedules/schedule_b/{sub_id}/`
- `GET /schedules/schedule_c/`
- `GET /schedules/schedule_c/{sub_id}/`
- `GET /schedules/schedule_d/`
- `GET /schedules/schedule_d/{sub_id}/`
- `GET /schedules/schedule_e/`
- `GET /schedules/schedule_e/by_candidate/`
- `GET /schedules/schedule_e/efile/`
- `GET /schedules/schedule_e/totals/by_candidate/`
- `GET /schedules/schedule_f/`
- `GET /schedules/schedule_f/{sub_id}/`
- `GET /state-election-office/`
- `GET /totals/by_entity/`
- `GET /totals/{entity_type}/`

## Questions

### Does the OpenFEC API need an API key?

Yes. The OpenFEC API uses API key authentication; the documentation explains how to get credentials.

### Does the OpenFEC API support HTTPS?

Yes, the OpenFEC API is served over HTTPS.

### How many endpoints does the OpenFEC API have?

Its OpenAPI description lists 91 endpoints in version 1.0. All of them are shown on this page.

### What are alternatives to the OpenFEC API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

## Similar open data APIs

- [Search Services](https://www.openparable.com/apis/search-services): API for Internet Archive's Search-related services
- [Wayback API](https://www.openparable.com/apis/wayback): API for Internet Archive's Wayback Machine
- [Wikipedia](https://www.openparable.com/apis/wikipedia): Mediawiki Encyclopedia
- [Nasdaq Data Link](https://www.openparable.com/apis/nasdaq-data-link): The source for financial, economic, and alternative datasets, serving investment professionals.
- [University of Oslo](https://www.openparable.com/apis/university-of-oslo): Courses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
- [Data API](https://www.openparable.com/apis/data): Serves the Clever Data API
- [Kaggle](https://www.openparable.com/apis/kaggle): Create and interact with Datasets, Notebooks, and connect with Kaggle
- [CollegeScoreCard.ed.gov](https://www.openparable.com/apis/collegescorecard-ed-gov): Data on higher education institutions in the United States
- [U.S. EPA Enforcement and Compliance History Online (ECHO) - All Data](https://www.openparable.com/apis/u-s-epa-enforcement-and-compliance-history-online-echo-all-data): Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide. ECHO Rest Services provide multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated as Clean Air Act (CAA) stationary sources, Clean Water Act (CWA) dischargers, Resource Conservation and Recovery Act (RCRA) hazardous waste generators/handlers, and Safe Drinking Water Act (SDWA) public water systems. Data of interest from other EPA sources, such as the Toxics Release Inventory, is also supplied for context. \ The get_facilities, get_map, get_qid, and get_download end points are meant to be used together, while the enhanced get_facility_info end point is self contained. The get_facility_info end point returns either an array of state, county or zip clusters with summary statistics per cluster or an array of facilities. \ The recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is: \ <b>1)</b> Use get_facilities to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes. <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of facility results. <b>3)</b> Use get_map, with the returned QID, to zoom in/out and pan on the clustered and individual facility coordinates that meet the QID query criteria. <b>4)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria. \ \ Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output. \ Additional ECHO Resources: <a href="https://echo.epa.gov/tools/web-services">Web Services</a>, <a href="https://echo.epa.gov/resources/echo-data/about-the-data">About ECHO's Data</a>, <a href="https://echo.epa.gov/tools/data-downloads">Data Downloads</a>
- [Authorized Partner API Specification](https://www.openparable.com/apis/authorized-partner-specification): To access files in user’s DigiLocker account from your application, you must first obtain user’s authorization.
- [GENESIS](https://www.openparable.com/apis/genesis): Federal Statistical Office Germany
- [Scoop.it](https://www.openparable.com/apis/scoop-it): Content Curation Service

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/openfec (OpenParable). Cite the canonical URL above.
