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

Risks Index APIOperational

grx_export

Standard exports of the taxonomies (CSVW, SDMX codelist, OGC Records)

Request

امتحان کنید

Available · MCP tool grx.export · 0.1 credits per 100 records

https://api.risksindex.com

GET/v1/export/{format}

curl -s "https://api.risksindex.com/v1/export/csvw?dataset=domains"
const res = await fetch("https://api.risksindex.com/v1/export/csvw?dataset=domains");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/export/csvw?dataset=domains")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "format": "csvw",
    "dataset": "domains",
    "mediaType": "text/csv; charset=utf-8",
    "rows": 20,
    "csv": "code,label\nMAC,Macroeconomy\nFIS,Fiscal and public debt\nFIN,Financial system\nCLI,Climate\nHAZ,Hazard and exposure\nHLT,Health\nFOO,Food systems\nWAT,Water\nENE,Energy\nINF,Infrastructure\nCYB,Cyber and digita…",
    "metadata": {
      "@context": "http://www.w3.org/ns/csvw",
      "url": "domains.csv",
      "dc:title": "NIS-1 domains",
      "dc:license": "see provenance: the standard's licence is CC-BY-4.0 (draft, expert review required)",
      "tableSchema": {
        "columns": [
          {
            "name": "code",
            "titles": "code",
            "datatype": "string"
          },
          {
            "name": "label",
            "titles": "label",
            "datatype": "string"
          }
        ],
        "primaryKey": "code"
      }
    },
    "metadataMediaType": "application/csvm+json"
  },
  "meta": {
    "authority": "The Global Risks Index (NXS-GRX), GCRI Canada",
    "state": "E",
    "provenance": {
      "repository": "nexus-estate/nexus-standards-full",
      "commit": "2fcbde115623f8b75a12a91177893f80feb7ee1c",
      "path": "registry/native/nis-1.json",
      "sha256": "78e7ecc585cd1d634539ecb8ee59af232453e503bcc5ffd2ec65df80a1bb5e6c",
      "licence": "CC-BY-4.0",
      "snapshotAt": "2026-11-22T01:34:55.802Z",
      "carriedVia": {
        "repository": "nexus-estate/nexus-wp",
        "commit": "4a7662f4cc254b5c8ef373764ca8b953775c114e",
        "path": "services/risk-graph/data/snapshot/indicators.json",
        "sha256": "4d25a2d7b4b7ad8e8165bf5c3ac7b88af66204679bcc27946a4b4587cbcd0d46"
      }
    },
    "coverage": {
      "status": "full",
      "records": 20
    },
    "note": "Definitions only: no Index value is exported before an edition is released.",
    "sha256": "81e202e9983d3d419810354055f1551d34d9e238796920d48483fbf2e427f217",
    "service": "nxs-index-api",
    "version": "0.9.0"
  }
}

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

csvw: the hazards, indicators or domains as CSV with W3C CSVW metadata. sdmx: an SDMX-ML 2.1 codelist of them (structure only, ids made SDMX-safe). ogc-records: the pointer to the OGC API - Records catalogue at /v1/ogc. stac answers EXPORT_NOT_BUILT: the Index holds no spatial assets. Definitions only: no value is exported before an edition is released. Availability: Available.

Parameters

Parameters

  • formatrequired

    path · string

    csvw, sdmx, ogc-records or stac

  • datasetoptional

    query · string

    hazards (default), indicators or domains

Answers

Responses

  • 200

    Records with provenance, coverage and links

  • 304

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

  • 400Problem, RFC 9457

    Bad dataset. Codes: BAD_DATASET

  • 401

  • 402

  • 404Problem, RFC 9457

    Not found. Codes: NOT_FOUND

  • 414

  • 429Problem, RFC 9457

    Rate limited. Codes: RATE_LIMITED

  • 500Problem, RFC 9457

    Internal error. Codes: INTERNAL

  • 501Problem, RFC 9457

    Export not built. Codes: EXPORT_NOT_BUILT

شروع کنید

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