Skip to content

GET /geo/place/{id}/children

Returns the immediate children of a place — one level down in the administrative hierarchy. Useful for building drill-down navigation (e.g. listing all states in a country, or all cities in a state).

IDs are returned by /geo/resolve and /geo/search.

Costs 1 credit per request.

GET /geo/place/{id}/children
Authorization: Bearer gaz_<api-key>
ParameterTypeDescription
idintegerNumeric place ID

An array of direct children, ordered by population descending then name. Returns an empty array [] for leaf places (cities).

[
{
"id": 3457419,
"name": "Mato Grosso",
"type": "state",
"lat": -12.5,
"lon": -55.5,
"population": 3526220
},
{
"id": 3448433,
"name": "São Paulo",
"type": "state",
"lat": -22.25,
"lon": -48.5,
"population": 44396484
}
]
FieldTypeDescription
idintegerUnique place identifier
namestringOfficial place name
typestringworld | country | state | city
latfloat | nullLatitude
lonfloat | nullLongitude
populationinteger | nullPopulation count
StatusDescription
401Missing or invalid API key
402Insufficient credits
404Place ID not found
429Rate limit exceeded

List all countries in the world:

Terminal window
curl https://api.gazetteer.dev/geo/place/1/children \
-H "Authorization: Bearer gaz_..."
[
{ "id": 1269750, "name": "India", "type": "country", "lat": 20.0, "lon": 77.0, "population": 1380004385 },
{ "id": 1814991, "name": "China", "type": "country", "lat": 35.0, "lon": 105.0, "population": 1439323776 },
{ "id": 3469034, "name": "Brazil", "type": "country", "lat": -10.0, "lon": -55.0, "population": 214300000 }
]

List all states in Brazil:

Terminal window
curl https://api.gazetteer.dev/geo/place/3469034/children \
-H "Authorization: Bearer gaz_..."
[
{ "id": 3448433, "name": "São Paulo", "type": "state", "lat": -22.25, "lon": -48.5, "population": 44396484 },
{ "id": 3453280, "name": "Minas Gerais", "type": "state", "lat": -18.5, "lon": -44.5, "population": 21292666 },
{ "id": 3457419, "name": "Mato Grosso", "type": "state", "lat": -12.5, "lon": -55.5, "population": 3526220 }
]

Call /geo/place/{id} on any child to get its full ancestor chain.