This collection includes information about political geography, as well as elected officials.
For a list of methods for this resource, see the end of this page.
Resource representations
A resource in this collection has three sections, described in detail below. The divisions
section lists political geographic divisions, like a country, state, county, or legislative district. (Which divisions will be listed depends on the specific API request made.) The offices
section lists political positions that are elected to represent the divisions in the first section. The officials
section lists people presently serving in the offices listed.
{ "divisions": { (key): { "name": string, "alsoKnownAs": [ string ], "officeIndices": [ unsigned integer ] } }, "offices": [ { "name": string, "divisionId": string, "levels": [ string ], "roles": [ string ], "sources": [ { "name": string, "official": boolean } ], "officialIndices": [ unsigned integer ] } ], "officials": [ { "name": string, "address": [ { "locationName": string, "line1": string, "line2": string, "line3": string, "city": string, "state": string, "zip": string } ], "party": string, "phones": [ string ], "urls": [ string ], "photoUrl": string, "emails": [ string ], "channels": [ { "type": string, "id": string } ] } ] }
Political Geography
Property name | Value | Description | Notes |
---|---|---|---|
divisions |
object |
Political geographic divisions that contain the requested address. | |
divisions.(key) |
nested object |
The unique Open Civic Data identifier for this division. | |
divisions.(key).alsoKnownAs[] |
list |
Any other valid OCD IDs that refer to the same division. Because OCD IDs are meant to be human-readable and at least somewhat predictable, there are occasionally several identifiers for a single division. These identifiers are defined to be equivalent to one another, and one is always indicated as the primary identifier. The primary identifier will be returned in ocd_id above, and any other equivalent valid identifiers will be returned in this list. For example, if this division's OCD ID is ocd-division/country:us/district:dc, this will contain ocd-division/country:us/state:dc. |
|
divisions.(key).name |
string |
The name of the division. | |
divisions.(key).officeIndices[] |
list |
List of indices in the offices array, one for each office elected from this division. Will only be present if includeOffices was true (or absent) in the request. |
Elected Offices
Property name | Value | Description | Notes |
---|---|---|---|
offices[] |
list |
Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request. | |
offices[].divisionId |
string |
The OCD ID of the division with which this office is associated. | |
offices[].levels[] |
list |
The levels of government of which this office is part. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both administrativeArea2 and administrativeArea1 .Valid values include:
|
|
offices[].name |
string |
The human-readable name of the office. | |
offices[].officialIndices[] |
list |
List of indices in the officials array of people who presently hold this office. | |
offices[].roles[] |
list |
The roles which this office fulfills. Roles are not meant to be exhaustive, or to exactly specify the entire set of responsibilities of a given office, but are meant to be rough categories that are useful for general selection from or sorting of a list of offices. Valid values include:
|
|
offices[].sources[] |
list |
A list of sources for this office. If multiple sources are listed, the data has been aggregated from those sources. | |
offices[].sources[].name |
string |
The name of the data source. | |
offices[].sources[].official |
boolean |
Whether this data comes from an official government source. |
Elected Officials
Property name | Value | Description | Notes |
---|---|---|---|
officials[] |
list |
Officials holding the offices listed above. Will only be present if includeOffices was true in the request. | |
officials[].address[] |
list |
Addresses at which to contact the official. | |
officials[].address[].city |
string |
The city or town for the address. | |
officials[].address[].line1 |
string |
The street name and number of this address. | |
officials[].address[].line2 |
string |
The second line the address, if needed. | |
officials[].address[].line3 |
string |
The third line of the address, if needed. | |
officials[].address[].locationName |
string |
The name of the location. | |
officials[].address[].state |
string |
The US two letter state abbreviation of the address. | |
officials[].address[].zip |
string |
The US Postal Zip Code of the address. | |
officials[].channels[] |
list |
A list of known (social) media channels for this official. | |
officials[].channels[].id |
string |
The unique public identifier for the candidate's channel. | |
officials[].channels[].type |
string |
The type of channel. The following is a list of types of channels, but is not exhaustive. More channel types may be added at a later time. One of: YouTube, Facebook, Twitter | |
officials[].emails[] |
list |
The direct email addresses for the official. | |
officials[].name |
string |
The official's name. | |
officials[].party |
string |
The full name of the party the official belongs to. | |
officials[].phones[] |
list |
The official's public contact phone numbers. | |
officials[].photoUrl |
string |
A URL for a photo of the official. | |
officials[].urls[] |
list |
The official's public website URLs. |
Methods
- representativeInfoByAddress
- Looks up political geography and representative information for a single address.
- representativeInfoByDivision
- Looks up representative information for a single geographic division.