મુખ્ય સામગ્રી પર જાઓ
The Consortium

Risks Index APIOperational

GET_v1_countries_iso3_adm1_code_

One ADM1 unit of a country

Request

અજમાવો

Available · No credits

https://api.risksindex.com

GET/v1/countries/{iso3}/adm1/{code}

curl -s "https://api.risksindex.com/v1/countries/KEN/adm1/baringo"
const res = await fetch("https://api.risksindex.com/v1/countries/KEN/adm1/baringo");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/countries/KEN/adm1/baringo")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "adm": {
      "code": "KE-01",
      "level": 1,
      "name": "Baringo",
      "parent": "index:jurisdiction/KEN",
      "path": "baringo",
      "slug": "baringo"
    },
    "children": {
      "count": 6,
      "level": 2,
      "units": []
    },
    "coverage": {
      "expected": 15,
      "held": 12,
      "share": 0.8,
      "sources": []
    },
    "id": "index:jurisdiction/KEN/baringo",
    "iso3": "KEN",
    "name": "Baringo",
    "withheld": [],
    "schema": "nexus.index.jurisdiction-profile/v1",
    "boundary": {
      "credit": "geoBoundaries (William & Mary geoLab), g…",
      "gate": {},
      "kind": "geoBoundaries gbOpen",
      "level": 1,
      "licence": "Public Domain",
      "shareAlike": false,
      "source": "RCMRD GeoPortal, Africa GeoPortal",
      "type": "ADM1",
      "url": "https://www.geoboundaries.org/countryDow…",
      "year": "2020"
    },
    "composite": {
      "edition": null,
      "note": "No Index edition is released: the compos…",
      "released": false,
      "value": null
    }
  },
  "science": {
    "contract": "risk-answer/v1",
    "question": {
      "text": "What is known about risk in Baringo, Bar…",
      "scope": {}
    },
    "components": {
      "exposure": {},
      "vulnerability": {}
    },
    "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": 12,
      "note": "12 of 15 measures the edition's sources …",
      "gaps": []
    },
    "quality": {
      "flags": []
    },
    "summary": {
      "text": "Baringo, Baringo has 12 of 15 measures h…",
      "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/19/19bd113422c28e49ddc613…",
      "sha256": "19bd113422c28e49ddc613938f404ca77175ea0a…",
      "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": 12,
      "next": null,
      "sections": []
    },
    "coverage": {
      "status": "partial",
      "records": 12,
      "expected": 15,
      "held": 12,
      "share": 0.8
    }
  }
}

An answer this API gave, shortened. Values change with the data.

The profile of a first-level unit by its slug (baringo) or ISO 3166-2 code (KE-01); the same answer as /v1/jurisdictions/{iso3}/adm/{code}. A path of two segments is ADM2 and answers UNIT_NOT_FOUND here. Availability: Available.

Parameters

Parameters

  • iso3required

    path · string

    Country code, ISO 3166-1 alpha-3, e.g. KEN

  • coderequired

    path · string

    ADM1 slug or ISO 3166-2 code

  • sectionoptional

    query · string

    Comma-separated sections to keep (default all)

  • limitoptional

    query · integer

    Values per page, 1 to 500 (default 500)

  • offsetoptional

    query · 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

Get started

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.