ISO 3166 code to UnGovr jurisdiction
resolve_jurisdictionMaps an ISO 3166 code to the UnGovr jurisdictions whose law reaches the place, from the published crosswalk (https://data.ungovr.org/v1/crosswalk/iso-3166/index.json, CC BY 4.0). Accepts a country (FR, PR, EU, XK), a first-level subdivision (US-CA, GB-ENG), or the country and region an edge emits as two arguments (country US, region CA). Returns the canonical URN, the stack of governing layers (the place, its sovereign, a union or treaty area that reaches it), OCD-ID, Wikidata QID, precision, a reason when a code cannot be placed, and the crosswalk version. It maps what an edge already knows: it never resolves an IP address (those are refused and not echoed), a city or a postal code, and Cloudflare's XX and T1 answer with a reason, not a guess. Free, rate-limited per IP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | An ISO 3166 code ("US-CA", "FR"), or the country when region is given ("US"). Never an IP address. | |
| region | No | Optional. The region an edge sent beside the country: "CA" or "US-CA". An empty string means the edge sent none and the answer is at country precision. |