رفتن به محتوا
The Consortium

Risks Index APIOperational

GET_v1_profiles_editions_edition_bulk_iso3_kind_

Download one file of an edition

Request

امتحان کنید

Available · 0.1 credits per 100 records

https://api.risksindex.com

GET/v1/profiles/editions/{edition}/bulk/{iso3}/{kind}

curl -s "https://api.risksindex.com/v1/profiles/editions/current/bulk/KEN/profile"
const res = await fetch("https://api.risksindex.com/v1/profiles/editions/current/bulk/KEN/profile");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/profiles/editions/current/bulk/KEN/profile")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "adm": null,
  "boundary": {
    "credit": "geoBoundaries (William & Mary geoLab), g…",
    "gate": {
      "approval": "the network's legal texts#LA-…",
      "reason": "\"Public Domain\" is on the C2 allowlist",
      "verdict": "permissive"
    },
    "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"
  },
  "children": {
    "count": 47,
    "level": 1,
    "units": [
      {}
    ]
  },
  "composite": {
    "edition": null,
    "note": "No Index edition is released: the compos…",
    "released": false,
    "value": null
  },
  "coverage": {
    "expected": 65,
    "held": 61,
    "share": 0.938,
    "sources": [
      "the network's own records…"
    ]
  },
  "id": "index:jurisdiction/KEN",
  "iso3": "KEN",
  "name": "Kenya",
  "schema": "nexus.index.jurisdiction-profile/v1",
  "sections": {
    "capacity": {
      "coverage": "partial",
      "expected": 12,
      "gaps": [],
      "held": 11,
      "items": [],
      "values": []
    },
    "context": {
      "coverage": "partial",
      "expected": 22,
      "gaps": [],
      "held": 20,
      "items": [],
      "values": []
    },
    "exposure": {
      "coverage": "complete",
      "expected": 8,
      "gaps": [],
      "held": 8,
      "items": [],
      "values": []
    },
    "finance": {
      "coverage": "none",
      "expected": 0,
      "gaps": [],
      "held": 0,
      "items": [],
      "values": []
    },
    "governance": {
      "coverage": "partial",
      "expected": 0,
      "gaps": [],
      "held": 1,
      "items": [],
      "values": []
    },
    "hazards": {
      "coverage": "complete",
      "expected": 4,
      "gaps": [],
      "held": 4,
      "items": [],
      "values": []
    },
    "impact": {
      "coverage": "complete",
      "expected": 1,
      "gaps": [],
      "held": 1,
      "items": [],
      "values": []
    },
    "observations": {
      "coverage": "none",
      "expected": 0,
      "gaps": [],
      "held": 0,
      "items": [],
      "values": []
    },
    "platform": {
      "coverage": "partial",
      "expected": 0,
      "gaps": [],
      "held": 9,
      "items": [],
      "values": []
    },
    "research": {
      "coverage": "none",
      "expected": 0,
      "gaps": [],
      "held": 0,
      "items": [],
      "values": []
    }
  }
}

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

The file itself (Parquet or JSON), named by its SHA-256 (ETag and Digest), metered as bulk export per 100 records above the free quota; a repeat with If-None-Match answers 304 and costs nothing. Kinds: values, units, h3, map, profile, unit-index. Availability: Available.

Parameters

Parameters

  • editionrequired

    path · string

    An edition id of the profiles register (idx- and 20 hex) or current

  • iso3required

    path · string

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

  • kindrequired

    path · string

    values, units, h3, map, profile or unit-index

Answers

Responses

  • 200

    The file of the edition itself, named by its SHA-256 (ETag and Digest). Where the licence and source of each figure travel depends on the kind

  • 304

    Not modified: If-None-Match matched the snapshot digest

  • 400Problem, RFC 9457

    Bad jurisdiction code. Codes: BAD_JURISDICTION

  • 401

  • 402

  • 404Problem, RFC 9457

    Edition not held. Codes: EDITION_NOT_HELD, NOT_FOUND, UNIT_NOT_FOUND

  • 414

  • 429Problem, RFC 9457

    Rate limited. Codes: RATE_LIMITED

  • 500Problem, RFC 9457

    Internal error. Codes: INTERNAL

  • 503Problem, RFC 9457

    Profiles unavailable. Codes: PROFILES_UNAVAILABLE

شروع کنید

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