Skip to content

GET /geo/place/{id}

Returns structured data for a single place by its numeric ID. IDs are returned by /geo/resolve and /geo/search.

Costs 1 credit per request.

GET /geo/place/{id}
Authorization: Bearer gaz_<api-key>
ParameterTypeDescription
idintegerNumeric place ID
{
"id": 3457419,
"name": "Mato Grosso",
"type": "state",
"lat": -12.5,
"lon": -55.5,
"population": 3526220,
"parent": {
"id": 3469034,
"name": "Brazil",
"type": "country"
}
}
FieldTypeDescription
idintegerUnique place identifier
namestringOfficial place name
typestringworld | country | state | city
latfloat | nullLatitude
lonfloat | nullLongitude
populationintegerPopulation count
parentobject | nullDirect parent in the hierarchy (null for the world root)
StatusDescription
401Missing or invalid API key
402Insufficient credits
404Place ID not found
429Rate limit exceeded
Terminal window
curl https://api.gazetteer.dev/geo/place/3469034 \
-H "Authorization: Bearer gaz_..."
{
"id": 3469034,
"name": "Brazil",
"type": "country",
"lat": -10.0,
"lon": -55.0,
"population": 214300000,
"parent": {
"id": 1,
"name": "World",
"type": "world"
}
}