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

Risks Index APIOperational

grx_federation

Federation descriptor for the Risk Graph

Request

आज़माएँ

Available · MCP tool grx.federation · No credits

https://api.risksindex.com

GET/v1/federation

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

req = urllib.request.Request("https://api.risksindex.com/v1/federation")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "schema": "nexus.federation-descriptor/v1",
    "schemaNote": "The schema file contracts/graph/federation-descriptor.v1.jso…",
    "uniTypeAliases": {
      "step": "A",
      "note": "The new type name resolves now and answers with aliasOf; the…",
      "types": [
        {}
      ]
    },
    "network": "index",
    "service": "index-api",
    "host": "api.risksindex.com",
    "version": "0.9.0",
    "state": "E",
    "serviceState": "off until T2 and the owner's approval",
    "authorityTypes": [
      {
        "type": "country",
        "count": 195,
        "curiePattern": "^index:country/[^@\\s]+(@[0-9A-Za-z.+-]+)?$",
        "authoredBy": "GCRI Canada (the Index registry)",
        "versioned": false,
        "withdrawn": "410 WITHDRAWN, never reused"
      }
    ],
    "idPattern": "^index:(hazard|hazard-family|hazard-domain|indicator|indicat…",
    "records": {
      "route": "/v1/federation/records",
      "operationId": "GET_v1_federation_records",
      "projection": "urn:therisk:graph:record-projection:v1",
      "parameters": [
        "type"
      ],
      "placeChanges": "/v1/places/changes",
      "levels": {
        "1": 3162,
        "2": 48427,
        "3": 89183
      },
      "maxPageSize": 1000,
      "defaultPageSize": 500,
      "version": "32b25286724c0dd8f500eab4a738435e",
      "records": 142850,
      "types": [
        "index:country"
      ],
      "paging": "cursor (opaque, bound to version) and Link rel=\"next\"; 409 S…",
      "etag": "strong, derived from version and the query; If-None-Match an…",
      "provenance": "meta.provenanceByType[<record type>]"
    },
    "iri": {
      "pattern": "https://graph.therisk.global/v1/resolve/index:<type>/<local-…",
      "note": "The CURIE is canonical; its web form is the Risk Graph resol…"
    },
    "resolve": {
      "method": "GET",
      "template": "/v1/resolve/{curie}",
      "tool": "grx.resolve",
      "pins": "@<version>; an unheld pin answers 404 VERSION_NOT_IN_SNAPSHO…",
      "withdrawn": "410 WITHDRAWN with successor",
      "otherNetwork": "404 NOT_THIS_AUTHORITY naming the authority"
    }
  },
  "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": "cf483570ce455cb47a20260a23af594d334a8bed4107a677922093029f3c…",
        "licence": "CC-BY-4.0",
        "snapshotAt": "2026-11-22T01:34:55.802Z",
        "carriedVia": {}
      }
    ],
    "coverage": {
      "status": "full",
      "records": 5240
    },
    "service": "nxs-index-api",
    "version": "0.9.0"
  }
}

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

The machine-readable descriptor the Risk Graph reads: authority record types, id pattern, resolve template, search route, neighbours source (the typed links), changes route, MCP catalogue, snapshot digest and snapshotAt, with link counts by rel. Availability: Available.

Parameters

Parameters

None.

Answers

Responses

  • 200

    Records with provenance, coverage and links

  • 304

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

  • 401

  • 404Problem, RFC 9457

    Not found. Codes: NOT_FOUND

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