oslew docs
Console
Menu

PlacesplatformoperationId admin

GET/v1/admin

The administrative chain at a point: every division containing it, outermost first.

Send Authorization: Bearer sk_live_…. The key's plan must include theplatform product; which plans do.

Explained in Administrative areas and Enriching a coordinate.

Example

Every division containing a point.

curl
curl -G "https://api.oslew.com/v1/admin" \
  -H "Authorization: Bearer $GEO_API_KEY" \
  --data-urlencode 'at=19.4326,-99.1332'
Python
from oslew import Client

# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")

answer = client.admin("19.4326,-99.1332")
TypeScript
import { Client } from "@oslew/client";

// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });

const answer = await client.admin("19.4326,-99.1332");
Response
HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 299
ratelimit-reset: 1

{
  "at": [
    19.4326,
    -99.1332
  ],
  "admin": [
    {
      "doc": 2174,
      "id": "7f1f3634-1218-43e7-9538-ac3d1f43fc1c",
      "name": "México",
      "subtype": "country",
      "country": "MX",
      "region": null,
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 61,
      "id": "0831989a-c65b-47db-802e-f930af64b9e4",
      "name": "México",
      "subtype": "country",
      "country": "MX",
      "region": null,
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions-maritime",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1560,
      "id": "bc8dbc34-544b-47c4-bdb1-d3f5ecfc6af7",
      "name": "Ciudad de México",
      "subtype": "region",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": 1,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1380,
      "id": "b468c7e5-eb6f-44c8-bfeb-c60bce169f25",
      "name": "Cuauhtémoc",
      "subtype": "county",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": 2,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1522,
      "id": "2b1d49e2-98ef-4665-b9f6-1ce96c9f015b",
      "name": "Ciudad de México",
      "subtype": "locality",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1423,
      "id": "96d18adf-e0bb-473c-affc-758969b272e1",
      "name": "Centro",
      "subtype": "neighborhood",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 1417,
      "id": "7fc4847d-082f-4b20-9b65-930f09f6eac3",
      "name": "Plaza de la Constitución",
      "subtype": "microhood",
      "country": "MX",
      "region": "MX-CMX",
      "admin_level": null,
      "via": "boundary",
      "provenance": {
        "name": "overture-divisions",
        "release": "2026-08-19.0",
        "license": "ODbL-1.0"
      }
    },
    {
      "doc": 147,
      "id": "America/Mexico_City",
      "name": "America/Mexico_City",
      "subtype": "timezone",
      "country": null,
      "region": null,
      "admin_level": null,
      "via": "interior",
      "provenance": {
        "name": "timezone-boundary-builder",
        "release": "2026d",
        "license": "ODbL-1.0"
      }
    }
  ],
  "layers": 3,
  "took_us": 55
}

A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.

Query

NameTypeDescription
at
queryrequired
string
lat,lon.

Responses

200 — Outermost first.

  • adminDivision[]required
    • admin_levelinteger | nullrequired
    • countrystring | nullrequired
      ISO 3166-1 alpha-2.
    • docintegerrequired
    • idstringrequired
      Overture division id.
    • namestringrequired
    • provenanceSourcerequired
      • licensestringrequired
      • namestringrequired
      • releasestringrequired
    • regionstring | nullrequired
      ISO 3166-2.
    • subtypestringrequired
      country | dependency | region | county | localadmin | locality | macrohood | neighborhood | microhood | timezone
    • viastringrequired
      interior: the point's cell is provably inside, no geometry read; boundary: the polygon decided.
      interior | boundary
  • atnumber[]required
  • layersintegerrequired
  • took_usintegerrequired

With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.

Refusals

Every refusal is a JSON object with an error string, except where noted.

400Bad request.
401No key, or one that is unknown, revoked or suspended.
403The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does.
429This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After.
503The pod cannot reach the control plane and its entitlements are too old to trust. Retry.

A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.

Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.