Skip to content

Instantly share code, notes, and snippets.

@LindsayYoung
Created October 22, 2014 18:07
Show Gist options
  • Save LindsayYoung/dc41adb2be0c3aa71321 to your computer and use it in GitHub Desktop.
Save LindsayYoung/dc41adb2be0c3aa71321 to your computer and use it in GitHub Desktop.
Fomatted obama api endpoint
[
{
"api_version": 0.1
},
{
"pagination": {
"count": "placeholder",
"page": 1,
"per_page": "placeholder"
}
},
{
"results": [
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "H0IL01087",
"elections": {
"2000": {
"district": "01",
"election_year": 2000,
"office_sought": "House",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK H"
},
"primary_committees": [
"C00347583"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "233 NORTH MICHIGAN AVE STE 1720",
"street_2": null,
"zip": "60601"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
}
],
"affiliated_committees": [
"C00431023",
"C00431130",
"C00431486",
"C00434712",
"C00448027",
"C00448480",
"C00450833",
"C00451773",
"C00452979",
"C00455113",
"C00434357",
"C00443929",
"C00446179",
"C00446435",
"C00454587",
"C00455402",
"C00455527",
"C00455949",
"C00452391",
"C00455030",
"C00450809",
"C00434357",
"C00446435",
"C00450809",
"C00455949",
"C00462176",
"C00496992",
"C00519694",
"C00528364",
"C00529842"
],
"candate_id": "P80003338",
"elections": {
"2008": {
"candidate_inactive": null,
"candidate_status": "prior_candidate",
"district": null,
"election_year": 2008,
"incumbent_challenge": "open_seat",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
},
"2012": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2012,
"incumbent_challenge": "incumbent",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00431445",
"C00462176",
"C00431445"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": null,
"street_2": null,
"zip": null
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "S4IL00180",
"elections": {
"2004": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2004,
"incumbent_challenger": null,
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
},
"2010": {
"candidate_inactive": "Y",
"candidate_status": "candidate",
"district": null,
"election_year": 2010,
"incumbent_challenge": "incumbent",
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00381442",
"C00381442",
"C00402958",
"C00405753",
"C00402958",
"C00405753",
"C00381442",
"C00411934"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "H0IL01087",
"elections": {
"2000": {
"district": "01",
"election_year": 2000,
"office_sought": "House",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK H"
},
"primary_committees": [
"C00347583"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "233 NORTH MICHIGAN AVE STE 1720",
"street_2": null,
"zip": "60601"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
}
],
"affiliated_committees": [
"C00431023",
"C00431130",
"C00431486",
"C00434712",
"C00448027",
"C00448480",
"C00450833",
"C00451773",
"C00452979",
"C00455113",
"C00434357",
"C00443929",
"C00446179",
"C00446435",
"C00454587",
"C00455402",
"C00455527",
"C00455949",
"C00452391",
"C00455030",
"C00450809",
"C00434357",
"C00446435",
"C00450809",
"C00455949",
"C00462176",
"C00496992",
"C00519694",
"C00528364",
"C00529842"
],
"candate_id": "P80003338",
"elections": {
"2008": {
"candidate_inactive": null,
"candidate_status": "prior_candidate",
"district": null,
"election_year": 2008,
"incumbent_challenge": "open_seat",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
},
"2012": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2012,
"incumbent_challenge": "incumbent",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00431445",
"C00462176",
"C00431445"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": null,
"street_2": null,
"zip": null
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "S4IL00180",
"elections": {
"2004": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2004,
"incumbent_challenger": null,
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
},
"2010": {
"candidate_inactive": "Y",
"candidate_status": "candidate",
"district": null,
"election_year": 2010,
"incumbent_challenge": "incumbent",
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00381442",
"C00381442",
"C00402958",
"C00405753",
"C00402958",
"C00405753",
"C00381442",
"C00411934"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "H0IL01087",
"elections": {
"2000": {
"district": "01",
"election_year": 2000,
"office_sought": "House",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK H"
},
"primary_committees": [
"C00347583"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "233 NORTH MICHIGAN AVE STE 1720",
"street_2": null,
"zip": "60601"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "PO BOX 8102",
"street_2": null,
"zip": "60680"
}
],
"affiliated_committees": [
"C00431023",
"C00431130",
"C00431486",
"C00434712",
"C00448027",
"C00448480",
"C00450833",
"C00451773",
"C00452979",
"C00455113",
"C00434357",
"C00443929",
"C00446179",
"C00446435",
"C00454587",
"C00455402",
"C00455527",
"C00455949",
"C00452391",
"C00455030",
"C00450809",
"C00434357",
"C00446435",
"C00450809",
"C00455949",
"C00462176",
"C00496992",
"C00519694",
"C00528364",
"C00529842"
],
"candate_id": "P80003338",
"elections": {
"2008": {
"candidate_inactive": null,
"candidate_status": "prior_candidate",
"district": null,
"election_year": 2008,
"incumbent_challenge": "open_seat",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
},
"2012": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2012,
"incumbent_challenge": "incumbent",
"office_sought": "President",
"party_affiliation": "Democratic Party",
"state": "US"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00431445",
"C00462176",
"C00431445"
]
},
{
"addresses": [
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450-1 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": null,
"street_2": null,
"zip": null
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 S EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": "2014-09-18 00:00:00",
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
},
{
"city": "CHICAGO",
"expire_date": null,
"state": "IL",
"street_1": "5450 SOUTH EAST VIEW PARK",
"street_2": null,
"zip": "60615"
}
],
"affiliated_committees": [],
"candate_id": "S4IL00180",
"elections": {
"2004": {
"candidate_inactive": null,
"candidate_status": "candidate",
"district": null,
"election_year": 2004,
"incumbent_challenger": null,
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
},
"2010": {
"candidate_inactive": "Y",
"candidate_status": "candidate",
"district": null,
"election_year": 2010,
"incumbent_challenge": "incumbent",
"office_sought": "Senate",
"party_affiliation": "Democratic Party",
"state": "IL"
}
},
"name": {
"full_name": "OBAMA, BARACK"
},
"primary_committees": [
"C00381442",
"C00381442",
"C00402958",
"C00405753",
"C00402958",
"C00405753",
"C00381442",
"C00411934"
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment