This Choreo retrieves finance details for a Presidential or Congressional candidate. The Choreo makes an HTTP request to the NYTimes Campaign Finance Service, which is described at http://developer.nytimes.com/docs/campaign_finance_api#h3-candidate-details.
Here's an example of acceptable inputs:
APIKey: {YOUR API KEY}
CampaignCycle: 2012
FECID: P80003353
The following is a sample of the JSON information returned by this Choreo:
{
"results": [
{
"mailing_state": "MA",
"begin_cash": 4421.95,
"mailing_address": "585 COMMERCIAL ST.",
"name": "ROMNEY, MITT",
"mailing_city": "BOSTON",
"total_from_individuals": 8.6776096E7,
"date_coverage_to": "2012-03-31",
"total_disbursements": 7.8387504E7,
"total_refunds": 1160620,
"total_receipts": 8.84428E7,
"end_cash": 1.00597E7,
"district": null,
"mailing_zip": "02109",
"date_coverage_from": "2011-01-01",
"id": "P80003353",
"committee": "/committees/C00431171.json",
"other_cycles": [
{
"relative_uri": "/candidates/P80003353.json",
"cycle": {
"city": "BOSTON",
"name": "ROMNEY, MITT",
"created_at": "2010-11-17T12:19:47-05:00",
"zip": null,
"address_two": null,
"district": null,
"updated_at": "2012-04-18T16:20:21-04:00",
"fec_committee_id": "C00431171",
"party3": " ",
"id": "P80003353",
"office_state": "MA",
"seat": " ",
"address_one": "585 COMMERCIAL STREET",
"cycle": 2008,
"party": "REP",
"status": "C",
"state": "MA"
}
},
{
"relative_uri": "/candidates/P80003353.json",
"cycle": {
"city": "BOSTON",
"name": "ROMNEY, MITT",
"created_at": "2010-11-17T12:19:43-05:00",
"zip": null,
"address_two": null,
"district": null,
"updated_at": "2012-04-18T16:20:21-04:00",
"fec_committee_id": "C00431171",
"party3": " ",
"id": "P80003353",
"office_state": "MA",
"seat": " ",
"address_one": "585 COMMERCIAL STREET",
"cycle": 2010,
"party": "REP",
"status": "C",
"state": "MA"
}
}
],
"debts_owed": null,
"party": "REP",
"candidate_loans": null,
"total_from_pacs": 623453,
"status": "C",
"state": null,
"fec_uri": "http://query.nictusa.com/cgi-bin/fecimg/?P80003353",
"total_contributions": 8.73996E7
}
],
"base_uri": "http://api.nytimes.com/svc/elections/us/v3/finances/2012/",
"copyright": "Copyright (c) 2012 The New York Times Company. All Rights Reserved.",
"cycle": 2012,
"status": "OK"
}