Revision history for API2Objects
Additions:
[[API2]]
Deletions:
Additions:
**Objects moved into git repos named pvsapi. Objects are in ref/objects/**
Deletions:
Additions:
**Objects moved into git repose named pvsapi. Objects are in ref/objects/**
Deletions:
An individual in our database.
**Abbreviated**:
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg"
}
%%
**Full**:
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg",
"pronunciation": "oh-bah-mah",
"birthDate": "1900-01-01",
"birthPlace": "Somewhere, HI",
"homeCity": "Chigaco",
"homeState": "IL",
"gender": "Male",
"family": "Michelle, Sasha, Malia",
"education": "Somewhere, something\nAnother degree, etc",
"professionalExperience": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco",
"politicalExperience": "odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam",
"congressionalMembership": "enouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences",
"organizationalMembership": "",
"religion": "Baptist",
"specialMessage": "",
"additionalBio": {
"Favorite Food": "Pizza",
"Dog": "Spot"
},
"elections": [
{
"electionId": 1234,
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"name": "National"
},
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"special": false,
"year": 2012,
"electionStages": [
{
"electionCandidateStatusId": 6,
"electionCandidateStatus": "Running",
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"name": "National"
},
"date": "2012-11-06"
},
{
"candidateStatusId": 1,
"candidateStatus": "Won",
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"state": {
"stateId": "MT",
"name": "Montana"
},
"date": "2012-07-06"
}
]
}
],
"offices": [
{
"officeCandidateStatusId": 1,
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"officeLevel": {
"officeLevelId": "N",
"name": "National"
},
"branch": {
"branchId": "E",
"name": "Executive"
}
}
]
}
%%
=====additionalBio=====
Extra 'fun fact' type of bio information.
%%(json)
"additionalBio": {
"Favorite Food": "Pizza",
"Dog": "Spot"
}
%%
=====office=====
An office that we track that can be held by a candidate.
%%(json)
{
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"officeLevel": {
"officeLevelId": "N",
"name": "National"
},
"branch": {
"branchId": "E",
"name": "Executive"
}
}
%%
=====officeType=====
A grouping of offices into a known type.
%%(json)
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
}
%%
=====officeLevel=====
Levels of government.
%%(json)
"officeLevel": {
"officeLevelId": "N",
"name": "National"
}
%%
=====branch=====
A branch of government
%%(json)
"branch": {
"branchId": "E",
"name": "Executive"
}
%%
=====election=====
An overall election object.
%%(json)
{
"electionId": 1234,
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"name": "National"
},
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"special": false,
"year": 2012,
"electionStages": [
{
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"name": "National"
},
"date": "2012-11-06"
},
{
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"state": {
"stateId": "MT",
"name": "Montana"
},
"date": "2012-07-06"
}
]
}
%%
=====electionstage=====
A stage of an election.
%%(json)
{
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"name": "National"
},
"date": "2012-11-06"
}
%%
=====sig=====
A special interest group
- sigId
- name
- _state
- description
- address
- _address
- _webaddress
- _parent
=====scorecard=====
A SIG scorecard with candidate ratings.
- scorecardId
- timespan
- name
- format
- _candidatesRating
=====candidateRating=====
An individual rating of a candidate by a sig.
- canddiateRatingId
- rating
- _sig
- _candidate
=====district=====
A unique district.
- districtId
- name
- _office
- _state
=====address=====
A standard set of contact information.
- addressId
- _addressType
- street
- city
- state
- zip
- phone1
- phone2
- fax1
- fax2
- tollFree
- ttyd
=====webAddress=====
A set of Web contact information.
- webAddressId
- _webAddressType
- address
=====measure=====
Ballot measures.
- measureid
- code
- title
- electionDate
- _electionType
- source
- url
- summary
- summaryUrl
- measureText
- textUrl
- proUrl
- conurl
- yesCount
- noCount
- outcome
=====committee=====
A legislative committee.
- committeeId
- name
- _parent
- _state
- _committeeType
- jurisdiction
- _address
- _webAddress
- contactName
- _candidates
=====position=====
A legislative leadership position.
- positionId
- _office
- name
- _candidates
=====locality=====
A tracked locality.
- localityId
- _localType
- name
- _webAddress
=====state=====
A state.
- stateId
- name
- type
- nickName
- capital
- area
- population
- statehood
- motto
- flower
- tree
- bird
- highPoint
- lowPoint
- bicameral
- upperLegis
- lowerLegis
- ltGov
- senators
- reps
- termLimit
- termLength
- billUrl
- voteUrl
- voterReg
- primaryDate
- generalDate
- absenteeWho
- absenteeHow
- absenteeWhen
- largestCity
- rollUpper
- rollLower
- usCircuit
=====bill=====
A piece of legislation.
- billId
- billNumber
- _parent
- title
- officialTitle
- dateIntroduced
- billType
- _categories
- billTextUrl
- _sponsors
- _committeeSponsors
- _billStages
- _billAmendments
=====billStage=====
A bill stage as it moves through government bodies.
- billStageId
- _stageType
- _categories
- _state
- _level
- outcome
- rollNumber
- yea
- nay
- voiceVote
- title
- officialTitle
- highlight
- synopsis
- officialSynopsis
- note
=====pct=====
Additions:
"electionId": 1234,
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"special": false,
"year": 2012,
"electionStages": [
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"date": "2012-11-06"
},
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"stateId": "MT",
"name": "Montana"
"date": "2012-07-06"
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"date": "2012-11-06"
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"special": false,
"year": 2012,
"electionStages": [
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"date": "2012-11-06"
},
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"stateId": "MT",
"name": "Montana"
"date": "2012-07-06"
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"date": "2012-11-06"
Deletions:
- _officeType
- special
- year
- _electionStages
- electionstageId
- date
- filingDeadline
- pctMailed
Additions:
"additionalBio": {
"Favorite Food": "Pizza",
"Dog": "Spot"
%%
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
"officeLevel": {
"officeLevelId": "N",
"name": "National"
"branch": {
"branchId": "E",
"name": "Executive"
}
%%
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
%%
"officeLevel": {
"officeLevelId": "N",
"name": "National"
%%
"branch": {
"branchId": "E",
"name": "Executive"
%%
"Favorite Food": "Pizza",
"Dog": "Spot"
%%
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
"officeLevel": {
"officeLevelId": "N",
"name": "National"
"branch": {
"branchId": "E",
"name": "Executive"
}
%%
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
%%
"officeLevel": {
"officeLevelId": "N",
"name": "National"
%%
"branch": {
"branchId": "E",
"name": "Executive"
%%
Deletions:
- officeId
- shortTitle
- _officeLevel
- _branch
- officeTypeId
- officeLevelId
- branchId
Additions:
**Abbreviated**:
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg"
}
%%
**Full**:
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg",
"pronunciation": "oh-bah-mah",
"birthDate": "1900-01-01",
"birthPlace": "Somewhere, HI",
"homeCity": "Chigaco",
"homeState": "IL",
"gender": "Male",
"family": "Michelle, Sasha, Malia",
"education": "Somewhere, something\nAnother degree, etc",
"professionalExperience": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco",
"politicalExperience": "odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam",
"congressionalMembership": "enouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences",
"organizationalMembership": "",
"religion": "Baptist",
"specialMessage": "",
"additionalBio": {
"Favorite Food": "Pizza",
"Dog": "Spot"
},
"elections": [
{
"electionId": 1234,
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"name": "National"
},
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"special": false,
"year": 2012,
"electionStages": [
{
"electionCandidateStatusId": 6,
"electionCandidateStatus": "Running",
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"name": "National"
},
"date": "2012-11-06"
},
{
"candidateStatusId": 1,
"candidateStatus": "Won",
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"state": {
"stateId": "MT",
"name": "Montana"
},
"date": "2012-07-06"
}
]
}
],
"offices": [
{
"officeCandidateStatusId": 1,
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"officeLevel": {
"officeLevelId": "N",
"name": "National"
},
"branch": {
"branchId": "E",
"name": "Executive"
}
}
]
}
%%
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg"
}
%%
**Full**:
%%(json)
{
"candidateId": 9490,
"firstName": "Barack",
"nickName": "",
"middleName": "Hussein",
"lastName": "Obama",
"suffix": "Jr",
"fullName": "Barack Hussein Obama, Jr.",
"photo": "http://static.votesmart.org/canphoto/9490.jpg",
"pronunciation": "oh-bah-mah",
"birthDate": "1900-01-01",
"birthPlace": "Somewhere, HI",
"homeCity": "Chigaco",
"homeState": "IL",
"gender": "Male",
"family": "Michelle, Sasha, Malia",
"education": "Somewhere, something\nAnother degree, etc",
"professionalExperience": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco",
"politicalExperience": "odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam",
"congressionalMembership": "enouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences",
"organizationalMembership": "",
"religion": "Baptist",
"specialMessage": "",
"additionalBio": {
"Favorite Food": "Pizza",
"Dog": "Spot"
},
"elections": [
{
"electionId": 1234,
"name": "2012 Presidential Election",
"state": {
"stateId": "NA",
"name": "National"
},
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"special": false,
"year": 2012,
"electionStages": [
{
"electionCandidateStatusId": 6,
"electionCandidateStatus": "Running",
"electionStageId": 1234,
"electionStageType": "G",
"name": "General",
"state": {
"stateId": "NA",
"name": "National"
},
"date": "2012-11-06"
},
{
"candidateStatusId": 1,
"candidateStatus": "Won",
"electionStageId": 1233,
"electionStageType": "P",
"name": "Primary",
"state": {
"stateId": "MT",
"name": "Montana"
},
"date": "2012-07-06"
}
]
}
],
"offices": [
{
"officeCandidateStatusId": 1,
"officeId": 1,
"name": "Presient",
"title": "President",
"shortTitle": "Pres",
"officeType": {
"officeTypeId": "P",
"name": "Presidential"
},
"officeLevel": {
"officeLevelId": "N",
"name": "National"
},
"branch": {
"branchId": "E",
"name": "Executive"
}
}
]
}
%%
Deletions:
- firstName
- middleName
- lastName
- suffix
- fullName
- pronunciation
- birthDate
- birthPlace
- homeCity
- homeState
- gender
- family
- photo
- education
- professionalExperience
- politicalExperience
- congressionalMembership
- organizationalMembership
- religion
- specialMessage
- _additionalBio
- _elections
- _offices
Additions:
A piece of legislation.
- billId
- billNumber
- officialTitle
- dateIntroduced
- billType
- _categories
- billTextUrl
- _sponsors
- _committeeSponsors
- _billStages
- _billAmendments
=====billStage=====
A bill stage as it moves through government bodies.
- billStageId
- _stageType
- _categories
- _level
- rollNumber
- yea
- nay
- voiceVote
- officialTitle
- highlight
- synopsis
- officialSynopsis
- note
- billId
- billNumber
- officialTitle
- dateIntroduced
- billType
- _categories
- billTextUrl
- _sponsors
- _committeeSponsors
- _billStages
- _billAmendments
=====billStage=====
A bill stage as it moves through government bodies.
- billStageId
- _stageType
- _categories
- _level
- rollNumber
- yea
- nay
- voiceVote
- officialTitle
- highlight
- synopsis
- officialSynopsis
- note
Deletions:
Additions:
A grouping of offices into a known type.
- officeTypeId
Levels of government.
- officeLevelId
A branch of government
- branchId
A special interest group
- sigId
- description
- address
- _address
- _webaddress
- _parent
A SIG scorecard with candidate ratings.
- scorecardId
- timespan
- format
- _candidatesRating
=====candidateRating=====
An individual rating of a candidate by a sig.
- canddiateRatingId
- rating
- _sig
- _candidate
A unique district.
- districtId
- _office
A standard set of contact information.
- addressId
- _addressType
- street
- city
- state
- zip
- phone1
- phone2
- fax1
- fax2
- tollFree
- ttyd
=====webAddress=====
A set of Web contact information.
- webAddressId
- _webAddressType
- address
Ballot measures.
- measureid
- code
- electionDate
- _electionType
- source
- url
- summary
- summaryUrl
- measureText
- textUrl
- proUrl
- conurl
- yesCount
- noCount
- outcome
A legislative committee.
- committeeId
- _parent
- _committeeType
- jurisdiction
- _address
- _webAddress
- contactName
A legislative leadership position.
- positionId
- _office
A tracked locality.
- localityId
- _localType
- _webAddress
A state.
- stateId
- type
- capital
- area
- population
- statehood
- motto
- flower
- tree
- bird
- highPoint
- lowPoint
- bicameral
- upperLegis
- lowerLegis
- ltGov
- senators
- reps
- termLimit
- termLength
- billUrl
- voteUrl
- voterReg
- primaryDate
- generalDate
- absenteeWho
- absenteeHow
- absenteeWhen
- largestCity
- rollUpper
- rollLower
- usCircuit
- officeTypeId
Levels of government.
- officeLevelId
A branch of government
- branchId
A special interest group
- sigId
- description
- address
- _address
- _webaddress
- _parent
A SIG scorecard with candidate ratings.
- scorecardId
- timespan
- format
- _candidatesRating
=====candidateRating=====
An individual rating of a candidate by a sig.
- canddiateRatingId
- rating
- _sig
- _candidate
A unique district.
- districtId
- _office
A standard set of contact information.
- addressId
- _addressType
- street
- city
- state
- zip
- phone1
- phone2
- fax1
- fax2
- tollFree
- ttyd
=====webAddress=====
A set of Web contact information.
- webAddressId
- _webAddressType
- address
Ballot measures.
- measureid
- code
- electionDate
- _electionType
- source
- url
- summary
- summaryUrl
- measureText
- textUrl
- proUrl
- conurl
- yesCount
- noCount
- outcome
A legislative committee.
- committeeId
- _parent
- _committeeType
- jurisdiction
- _address
- _webAddress
- contactName
A legislative leadership position.
- positionId
- _office
A tracked locality.
- localityId
- _localType
- _webAddress
A state.
- stateId
- type
- capital
- area
- population
- statehood
- motto
- flower
- tree
- bird
- highPoint
- lowPoint
- bicameral
- upperLegis
- lowerLegis
- ltGov
- senators
- reps
- termLimit
- termLength
- billUrl
- voteUrl
- voterReg
- primaryDate
- generalDate
- absenteeWho
- absenteeHow
- absenteeWhen
- largestCity
- rollUpper
- rollLower
- usCircuit
Deletions:
Additions:
- _additionalBio
- _elections
- _offices
=====additionalBio=====
Extra 'fun fact' type of bio information.
- name
- value
An office that we track that can be held by a candidate.
- officeId
- name
- title
- shortTitle
- _officeType
- _officeLevel
- _branch
=====officeType=====
=====officeLevel=====
=====branch=====
An overall election object.
- electionId
- name
- _state
- _officeType
- special
- year
- _electionStages
A stage of an election.
- electionstageId
- name
- _state
- date
- filingDeadline
- pctMailed
- _candidates
- _elections
- _offices
=====additionalBio=====
Extra 'fun fact' type of bio information.
- name
- value
An office that we track that can be held by a candidate.
- officeId
- name
- title
- shortTitle
- _officeType
- _officeLevel
- _branch
=====officeType=====
=====officeLevel=====
=====branch=====
An overall election object.
- electionId
- name
- _state
- _officeType
- special
- year
- _electionStages
A stage of an election.
- electionstageId
- name
- _state
- date
- filingDeadline
- pctMailed
- _candidates
Deletions:
- _office
Additions:
All fields prefixed with a '_' are object references.
An individual in our database.
- candidateId
- firstName
- nickName
- middleName
- lastName
- suffix
- fullName
- pronunciation
- birthDate
- birthPlace
- homeCity
- homeState
- gender
- family
- photo
- education
- professionalExperience
- politicalExperience
- congressionalMembership
- organizationalMembership
- religion
- specialMessage
- _election
- _office
=====pct=====
An individual in our database.
- candidateId
- firstName
- nickName
- middleName
- lastName
- suffix
- fullName
- pronunciation
- birthDate
- birthPlace
- homeCity
- homeState
- gender
- family
- photo
- education
- professionalExperience
- politicalExperience
- congressionalMembership
- organizationalMembership
- religion
- specialMessage
- _election
- _office
=====pct=====
Additions:
=====scorecard=====
=====address=====
=====webaddress=====
=====measure=====
=====committee=====
=====position=====
=====locality=====
=====state=====
=====bill=====
=====billstage=====
=====address=====
=====webaddress=====
=====measure=====
=====committee=====
=====position=====
=====locality=====
=====state=====
=====bill=====
=====billstage=====
Additions:
=====office=====