सामग्री पर जाएँ
The Consortium

Risks Index APIOperational

grx_profiles_bulk

The downloadable files of an edition

Request

आज़माएँ

Available · MCP tool grx.profiles_bulk · No credits

https://api.risksindex.com

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

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

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

200 OKapplication/json

{
  "data": [
    {
      "iso3": "KEN",
      "kind": "values",
      "type": "application/vnd.apache.parquet",
      "bytes": 158136,
      "records": 6218,
      "sha256": "10ce5d28fd9b54f6988e72aef94acf450dcfc4b5985e4ffdad042c994b22fee1",
      "href": "/v1/profiles/editions/idx-949f583329bfb9c1c6c2/bulk/KEN/values",
      "credits": {
        "class": "bulk",
        "units": 63,
        "per": "100 records"
      }
    },
    {
      "iso3": "KEN",
      "kind": "units",
      "type": "application/vnd.apache.parquet",
      "bytes": 90795,
      "records": 1790,
      "sha256": "b07174737a10d22a5fe5c318137bdff11b62d11d054f272c74e477571f1b1fe1",
      "href": "/v1/profiles/editions/idx-949f583329bfb9c1c6c2/bulk/KEN/units",
      "credits": {
        "class": "bulk",
        "units": 18,
        "per": "100 records"
      }
    }
  ],
  "meta": {
    "authority": "The Global Risks Index (NXS-GRX), GCRI Canada",
    "state": "E",
    "edition": "idx-949f583329bfb9c1c6c2",
    "publishedAt": "repository",
    "provenance": {
      "repository": "nexus-estate/global-risk-index",
      "commit": "df23cbe6e7bbc2b28f1c7eafed95e96389738321",
      "path": "editions/idx-949f583329bfb9c1c6c2/SHA256SUMS",
      "sha256": "idx-949f583329bfb9c1c6c2",
      "licence": "Per value: each value carries the licence of its source (data.sections.*.values[].licence).",
      "snapshotAt": "repository",
      "edition": "idx-949f583329bfb9c1c6c2",
      "builder": {
        "digest": "d5df5d9155a82f760883f0a9bb7e85046f036bca26c1682e926b0f8a2f3bd882",
        "name": "index-api profiles",
        "version": "1.0.0"
      }
    },
    "composite": {
      "released": false,
      "note": "No Index edition is released: no composite value, score, rank or class."
    },
    "service": "nxs-index-api",
    "version": "0.9.0",
    "page": {
      "limit": 200,
      "offset": 0,
      "total": 6,
      "next": null
    },
    "note": "Parquet partitions are per country; GeoParquet 1.1 for units. Downloads are metered as bulk export per 100 records above the free quota (rate card); a repeat with If-None-Match costs nothing."
  }
}

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

Per country: the values Parquet, the GeoParquet units, the H3 cells, the map attributes, the profile and the unit index, each with bytes, records, SHA-256 and the bulk credits it would cost (per 100 records, above the free quota). Availability: Available. Deprecated parameter: country (alias of jurisdiction).

Parameters

Parameters

  • editionrequired

    path · string

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

  • jurisdictionoptional

    query · string

    ISO 3166-1 alpha-3: that country's files only. A place identifier of the Index is also accepted: index:country/KEN is the same as KEN; a sub-national unit such as index:jurisdiction/KEN/nairobi is answered with the records of its country, marked inherited in meta.place.

  • qoptional

    query · string

    Text filter: files whose jurisdiction, kind, media type or SHA-256 contains the terms (case-insensitive; all terms must match)

  • limitoptional

    query · integer

    Rows per page, 1 to 2000 (default 200)

  • offsetoptional

    query · integer

    Rows 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_JURISDICTION, BAD_PAGE, PLACE_ID_INVALID, PLACE_ID_TOO_MANY

  • 401

  • 404Problem, RFC 9457

    Edition not held. Codes: EDITION_NOT_HELD, 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

  • 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.