Request
Ausprobieren
Available · No credits
GET/v1/countries/{iso3}/adm2/{code}
curl -s "https://api.risksindex.com/v1/countries/KEN/adm2/baringo/baringo-central"const res = await fetch("https://api.risksindex.com/v1/countries/KEN/adm2/baringo/baringo-central");
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.risksindex.com/v1/countries/KEN/adm2/baringo/baringo-central")
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
{
"data": {
"adm": {
"code": null,
"level": 2,
"name": "Baringo Central",
"parent": "index:jurisdiction/KEN/baringo",
"path": "baringo/baringo-central",
"slug": "baringo-central"
},
"centre": [
35.75
],
"children": {
"count": 5,
"level": 3,
"units": []
},
"coverage": {
"expected": 9,
"held": 4,
"share": 0.444,
"sources": []
},
"id": "index:jurisdiction/KEN/baringo/baringo-c…",
"iso3": "KEN",
"name": "Baringo Central",
"withheld": [],
"schema": "nexus.index.jurisdiction-profile/v1",
"boundary": {
"credit": "geoBoundaries (William & Mary geoLab), g…",
"gate": {},
"kind": "geoBoundaries gbOpen",
"level": 2,
"licence": "Creative Commons Attribution 3.0 Intergo…",
"shareAlike": false,
"source": "IEBC, OCHA ROSEA",
"url": "https://www.geoboundaries.org/countryDow…",
"year": "2020"
}
},
"science": {
"contract": "risk-answer/v1",
"question": {
"text": "What is known about risk in Baringo Cent…",
"scope": {}
},
"components": {
"exposure": {}
},
"knowledge": {
"state": "ignorance",
"unknowns": [],
"basis": "Measures held per component, each cited;…"
},
"provenance": {
"sources": [],
"method": {},
"steward": "The Global Risks Index (jurisdiction sco…",
"generatedAt": "2026-12-03T00:00:00Z",
"service": "index-api"
},
"coverage": {
"state": "partial",
"records": 4,
"note": "4 of 9 measures the edition's sources de…",
"gaps": []
},
"quality": {
"flags": []
},
"summary": {
"text": "Baringo Central, Baringo Central has 4 o…",
"lang": "en"
}
},
"meta": {
"authority": "The Global Risks Index (NXS-GRX), GCRI C…",
"state": "E",
"edition": "idx-949f583329bfb9c1c6c2",
"publishedAt": "repository",
"provenance": {
"repository": "nexus-estate/global-risk-index",
"commit": "df23cbe6e7bbc2b28f1c7eafed95e96389738321",
"path": "objects/sha256/97/97c3d3386fe7833488edf9…",
"sha256": "97c3d3386fe7833488edf933b2354d44d74115b4…",
"licence": "Per value: each value carries the licenc…",
"snapshotAt": "repository",
"edition": "idx-949f583329bfb9c1c6c2",
"builder": {}
},
"composite": {
"released": false,
"note": "No Index edition is released: no composi…"
},
"service": "nxs-index-api",
"version": "0.9.0",
"page": {
"limit": 500,
"offset": 0,
"total": 4,
"next": null,
"sections": []
},
"coverage": {
"status": "partial",
"records": 4,
"expected": 9,
"held": 4,
"share": 0.444
}
}
} An answer this API gave, shortened. Values change with the data.
The profile of a second-level unit by its path / (the slash may be sent as %2F); the same answer as /v1/jurisdictions/{iso3}/adm/{code}. Availability: Available.
Parameters
Parameters
iso3requiredpath · string
Country code, ISO 3166-1 alpha-3, e.g. KEN
coderequiredpath · string
ADM2 unit path ( / ) in the GRIx ADM register
sectionoptionalquery · string
Comma-separated sections to keep (default all)
limitoptionalquery · integer
Values per page, 1 to 500 (default 500)
offsetoptionalquery · integer
Values to skip (default 0)
Answers
Responses
- 200
Records with provenance, coverage and links
- 304
Not modified: If-None-Match matched the snapshot digest
- 400Problem, RFC 9457
Bad cursor. Codes: BAD_CURSOR, BAD_PAGE, PLACE_ID_INVALID, PLACE_ID_TOO_MANY
- 401
- 404Problem, RFC 9457
Not found. Codes: NOT_FOUND, PLACE_NOT_FOUND
- 410Problem, RFC 9457
Place withdrawn. Codes: PLACE_WITHDRAWN
- 414
- 429Problem, RFC 9457
Rate limited. Codes: RATE_LIMITED
- 500Problem, RFC 9457
Internal error. Codes: INTERNAL
Loslegen
Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.