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

Risks Index APIOperational

grx_search

Search across the Index record types

Request

امتحان کنید

Available · MCP tool grx.search · No credits

https://api.risksindex.com

GET/v1/search

curl -s "https://api.risksindex.com/v1/search?q=flood&type=hazard&limit=5"
const res = await fetch("https://api.risksindex.com/v1/search?q=flood&type=hazard&limit=5");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/search?q=flood&type=hazard&limit=5")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": [
    {
      "id": "index:hazard/cryo.glacier.glacial-lake-outburst",
      "type": "hazard",
      "label": "Glacial lake outburst flood",
      "score": 3,
      "why": [
        {
          "term": "flood",
          "field": "label",
          "weight": 3
        }
      ],
      "route": "/v1/taxonomy/hazards/cryo.glacier.glacial-lake-outburst",
      "authority": {
        "net": "index"
      }
    },
    {
      "id": "index:hazard/cryo.glacier.subglacial-outburst",
      "type": "hazard",
      "label": "Subglacial outburst flood",
      "score": 3,
      "why": [
        {
          "term": "flood",
          "field": "label",
          "weight": 3
        }
      ],
      "route": "/v1/taxonomy/hazards/cryo.glacier.subglacial-outburst",
      "authority": {
        "net": "index"
      }
    }
  ],
  "meta": {
    "authority": "The Global Risks Index (NXS-GRX), GCRI Canada",
    "state": "E",
    "provenance": [
      {
        "repository": "nexus-estate/nexus-standards-full",
        "commit": "2fcbde115623f8b75a12a91177893f80feb7ee1c",
        "path": "registry/native/nhs-1.json",
        "sha256": "cf483570ce455cb47a20260a23af594d334a8bed4107a677922093029f3c96c6",
        "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/hazards.json",
          "sha256": "de76b0add311002f6c3f3ff64a59a55ecd85e0aaf3deb2befca60d99fa5c3128"
        }
      },
      {
        "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": 61,
      "dimensions": {}
    },
    "ranking": {
      "method": "deterministic keyword scoring, no model: 3 per query term found in the label or title, 2 in the identifier or aliases, 1 in the definition; every term must match; ties by type then id",
      "explained": "each hit lists the terms that matched, the field and the weight"
    },
    "page": {
      "limit": 5,
      "offset": 0,
      "total": 61,
      "next": "eyJvIjo1LCJkIjoiOTcwN2Y1YjUwNjAyIn0",
      "prev": null
    },
    "service": "nxs-index-api",
    "version": "0.9.0"
  }
}

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

Hazards, hazard families and domains, indicators and domains, series, countries, mapping sets and product APIs. Deterministic ranking with no model; every hit names the terms that matched, the field and the weight, and its authority. Dimensions narrow hazards and indicators; others are reported in coverage. Availability: Available. Deprecated parameter: risk, region (alias of jurisdiction), regime (alias of jurisdiction).

Parameters

Parameters

  • qoptional

    query · string

    Search terms (required, 2 to 200 characters)

  • typeoptional

    query · string

    Comma-separated record types: hazard, hazard-family, hazard-domain, indicator, indicator-domain, series, country, mapping-set, product

  • industryoptional

    query · string

    ISIC Rev.5 code (section letter A to V, or 2 to 4 digits). Validated by pattern; coverage says what it could narrow

  • jurisdictionoptional

    query · string

    ISO 3166-1 alpha-3 code (for example KEN), a 3 digit UN M49 code (for example 014) or a regime id (for example eu). 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.

  • hazardoptional

    query · string

    NHS-1 domain, family or hazard id, for example water.flood

  • indicatoroptional

    query · string

    NIS-1 indicator id, for example nis:IND.HAZ.loss.deaths_missing_rate

  • sinceoptional

    query · string

    ISO date YYYY-MM-DD: only records changed on or after it (all records of one snapshot share its snapshotAt)

  • riskoptional

    query · string · deprecated

    Deprecated alias of hazard (Deprecation and Sunset headers are sent when it is used)

  • limitoptional

    query · integer

    Records per page, 1 to 200 (default 50)

  • cursoroptional

    query · string

    Opaque cursor from meta.page.next or prev (snapshot-bound)

  • offsetoptional

    query · integer

    Records to skip (default 0); accepted because the snapshot is bounded and versioned, prefer cursor

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_HAZARD, BAD_INDICATOR, BAD_INDUSTRY, BAD_JURISDICTION, BAD_PAGE, BAD_REGIME, BAD_REGION, BAD_RISK, BAD_SINCE, 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 a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.