Discovery
Geography lookup
GET
/v1/geographiesAdmin1/Admin2 names and H3 cells of the published data, exact names only; ambiguous names return every candidate.
- Authentication
- Workspace API key:
Authorization: Bearer YOUR_API_KEY - Price
- FreeFree (fair use). Needs a Bearer API key; counts toward the workspace rate limit.
Parameters
| Parameter | Type and limits | Description |
|---|---|---|
levelrequired | stringOne of admin0, admin1, admin2, h3 | Area level. |
countryoptional | string | ISO2 country; required below admin0. |
stateoptional | string | Admin1 parent; only with level=admin2. |
qoptional | string | Name filter (H3: hexadecimal prefix). |
limitoptional | integer1–1000, default 100 | Items, 1–1000. |
cursoroptional | string | Opaque next_cursor from the previous page, with the same other parameters. Every page is a separate request, billed on its own. |
Response
JSON. The example on the right shows the shape with illustrative values.
X-Request-Id: Server-generated ID of this request; quote it to support.X-Credits-Charged: Credits actually debited for this request (0when nothing was charged).Retry-After: 429 only: seconds until the rate window ends.
Errors
| Status | Meaning |
|---|---|
401 | Missing, invalid or revoked API key (WWW-Authenticate: Bearer). Not charged. |
404 | Country dataset or place not found. Not charged. |
422 | Invalid parameter or combination, or an invalid cursor. Not charged. |
429 | Workspace rate limit exceeded; retry after Retry-After seconds. Not charged. |
Errors are JSON, {"detail": "..."}. See Errors and rate limits.