Representatives: representativeInfoByDivision

Looks up representative information for a single geographic division. Try it now.

Request

HTTP request

GET https://www.googleapis.com/civicinfo/v2/representatives/ocdId

Parameters

Parameter name Value Description
Path parameters
ocdId string The Open Civic Data division identifier of the division to look up.
Optional query parameters
levels string A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

Acceptable values are:
  • "administrativeArea1"
  • "administrativeArea2"
  • "country"
  • "international"
  • "locality"
  • "regional"
  • "special"
  • "subLocality1"
  • "subLocality2"
recursive boolean If true, information about all divisions contained in the division requested will be included as well. For example, if querying ocd-division/country:us/district:dc, this would also return all DC's wards and ANCs.
roles string A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Acceptable values are:
  • "deputyHeadOfGovernment"
  • "executiveCouncil"
  • "governmentOfficer"
  • "headOfGovernment"
  • "headOfState"
  • "highestCourtJudge"
  • "judge"
  • "legislatorLowerBody"
  • "legislatorUpperBody"
  • "schoolBoard"
  • "specialPurposeOfficer"

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a Representatives resource in the response body.

Try it!