मजकुराकडे जा
The Consortium

Risks Index APIOperational

grx_country_contributions

Published contributions about the country

Request

वापरून पाहा

Available · MCP tool grx.country_contributions · No credits

https://api.risksindex.com

GET/v1/countries/{iso3}/contributions

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

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

200 OKapplication/json

{
  "data": [],
  "meta": {
    "authority": "The Global Risks Index (NXS-GRX), GCRI Canada",
    "state": "D",
    "coverage": {
      "status": "none",
      "records": 0
    },
    "intake": {
      "state": "D",
      "declaredFeatures": "contracts/intake/index/main.json",
      "sha256": "e056c66c9d85b93924ecea63f2c018ec76e95221ad52f04b59c85e2b5ac50781",
      "note": "Designed, not built. No contribution reaches this file yet: the Index site's forms (GRX-MAIN value-correction, data-offer, government-reply) have no live runtime or review route in this repository, an…"
    },
    "note": "Published contributions are accepted, de-identified records that carry a review record, the licence the contributor granted and the provenance { source: \"intake\", feature, reviewRole, decisionId }. Se…",
    "provenance": {
      "repository": "nexus-wp (services/index-api)",
      "commit": "n/a: the file is pinned with the service build and identified by its sha256",
      "path": "services/index-api/data/intake/published.json",
      "sha256": "e056c66c9d85b93924ecea63f2c018ec76e95221ad52f04b59c85e2b5ac50781",
      "licence": "per contribution: each record carries the licence its contributor granted",
      "snapshotAt": "2026-11-22T01:34:55.802Z",
      "source": "intake"
    },
    "subsite": {
      "kind": "country",
      "iso3": "KEN",
      "name": "Kenya",
      "route": "/v1/countries/KEN/contributions"
    },
    "page": {
      "limit": 50,
      "offset": 0,
      "total": 0,
      "next": null,
      "prev": null
    },
    "service": "nxs-index-api",
    "version": "0.9.0"
  }
}

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

The published contributions that name this place. The route is built; coverage is none until one is published. Availability: Available.

Parameters

Parameters

  • iso3required

    path · string

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

  • qoptional

    query · string

    Search terms in the contribution text

  • typeoptional

    query · string

    data-correction, source-suggestion, right-of-reply or local-observation

  • featureoptional

    query · string

    The declared site feature

  • 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_PAGE, BAD_THEME, SCOPE_CONFLICT

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

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