Discovery

Geography lookup

GET/v1/geographies

Admin1/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

ParameterType and limitsDescription
levelrequiredstringOne of admin0, admin1, admin2, h3Area level.
countryoptionalstringISO2 country; required below admin0.
stateoptionalstringAdmin1 parent; only with level=admin2.
qoptionalstringName filter (H3: hexadecimal prefix).
limitoptionalinteger1–1000, default 100Items, 1–1000.
cursoroptionalstringOpaque 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 (0 when nothing was charged).
  • Retry-After: 429 only: seconds until the rate window ends.

Errors

StatusMeaning
401Missing, invalid or revoked API key (WWW-Authenticate: Bearer). Not charged.
404Country dataset or place not found. Not charged.
422Invalid parameter or combination, or an invalid cursor. Not charged.
429Workspace rate limit exceeded; retry after Retry-After seconds. Not charged.

Errors are JSON, {"detail": "..."}. See Errors and rate limits.