Divisions: searchStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The/divisionsendpoint allows searching for political divisions by name or OCD ID.
The search functionality utilizes thequeryparameter, supporting various search operators.
The response includes a list of matching divisions resources within theresultsproperty.
Searches for political divisions by their natural name or OCD ID.Try it now.
Request
HTTP request
GET https://www.googleapis.com/civicinfo/v2/divisions
Parameters
Parameter name
Value
Description
Optional query parameters
query
string
The search query. Queries can cover any parts of a OCD ID or a human
readable division name. All words given in the query are treated as
required patterns. In addition to that, most
query operators of the Apache Lucene library are supported. See
http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[],[]]