Navigation

API Documentation Overview

OpenCampaigns.com provides REST API access to campaign finance data for California, San Francisco, and San Diego.

Each government's data can be accessed using the same OpenCampaigns api, but with a different domain:
    CA     ca.api.opencampaigns.com/...
    SF     sf.admin.opencampaigns.com/...
 

Here is a list of the functions that are provided:


Search a city or state

search



Information about a city or state

get_top_contributors

get_top_fundraisers

get_year_range

get_election

get_propositions


           

Information about current officers and candidates

get_branches

get_branch   

get_offices

get_candidates

get_office



Information about a particular entity

get_contributors

get_contribution_recipients

get_purchasers

get_purchasees

get_politician_info

get_entity



Information about transactions

get_transaction