OpenFEC

Description

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 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.

Getting started with the openFEC API

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 and Acceptable Use policy.

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 APIinfo@fec.gov. You can also ask questions and discuss the data in a community led group.

The model definitions and schema are available at /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.

Inspect our source code. We welcome issues and pull requests!


Sign up for an API key

Loading signup form...

Use this page to mock OpenFEC in your testing and development.

Run our mock API sample using the open source WireMock library, or in the free edition of WireMock Cloud. You'll have a working API server simulating the behavior of OpenFEC, which will allow you to keep building and testing even if the actual API you isn't currently available.

Related mocks

Directorate of Economics and Statistics Cum Chief Registrar, Rajasthan, Rajasthan

Birth, Still-Birth, Death and Marriage

Written Questions Service API

Data around written questions and

AIIMS, Patna

All India Institute of Medical Sciences

AIIMS Rishikesh

Degree certificates issued by AIIMS

Goa State Board of Secondary and Higher Secondary Education, Goa

APIs provided by Goa State Board of

Board of Vocational Higher Secondary Examinations, Kerala

Board of Vocational Higher Secondary

Ready to accelerate your development flow

Shorter release cycles, more predictable schedules and fewer defects in production.
Start Mocking for Free *Free forever. No credit card needed