Zum Inhalt springen
The Consortium

Risks Index APIOperational

GET_v1_countries_iso3_adm4_code_

One ADM4 unit of a country (designed)

Request

Ausprobieren

Planned: it answers with a typed refusal · No credits

https://api.risksindex.com

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

curl -s "https://api.risksindex.com/v1/countries/<iso3>/adm4/<code>"
const res = await fetch("https://api.risksindex.com/v1/countries/<iso3>/adm4/<code>");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/countries/<iso3>/adm4/<code>")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "type": "string",
    "title": "string",
    "status": 0,
    "code": "string",
    "detail": "string"
  },
  "meta": {
    "authority": "string",
    "state": "string",
    "provenance": "…",
    "coverage": {
      "status": "full",
      "records": 0,
      "dimensions": {}
    },
    "review": {}
  }
}

As the ADM4 scope: designed, answers UNIT_NOT_FOUND until an edition holds ADM4 profiles. Availability: Planned (answers a typed problem response until built).

Parameters

Parameters

  • iso3required

    path · string

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

  • coderequired

    path · string

    ADM4 unit path in the GRIx ADM register

Answers

Responses

  • 200

    Records with provenance, coverage and links

  • 400Problem, RFC 9457

    Not a place identifier. Codes: 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.