List subdivisions
GET /v1/boundaries/{id}/childrenFreeNo key neededRead-only
The direct subdivisions of a boundary: a country's states, a state's counties, a city's districts. Without admin_level it picks the next level that exists. Free and public. Use it to build drill-down pickers or to cover a region with its parts. While OpenStreetMap is down it may answer partial: true with retry_after: children listed from Overture divisions, some with only id and name (get_boundary fetches them).
MCP tool list_children · CLI geocode list-children · RPC POST /v1/ops/list_children
Input
| Field | Type | Description |
|---|---|---|
idpath, required | string | Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853. |
admin_levelquery | integer | Subdivision admin_level; default: the next level below the parent that exists. |
Example request
curl "https://geocodeai.dev/v1/boundaries/r165475/children"Example response
Errors
Failures are RFC 9457 problems. Common ones here: 400 invalid_input, 429 rate_limited.