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

Risks Index APIOperational

grx_adm_contributions

Published contributions about an ADM unit

Request

वापरून पाहा

Available · MCP tool grx.adm_contributions · No credits

https://api.risksindex.com

GET/v1/jurisdictions/{jurisdiction}/adm/{code}/contributions

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

req = urllib.request.Request("https://api.risksindex.com/v1/jurisdictions/KEN/adm/baringo/contributions?include=children")
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": "E",
    "coverage": {
      "status": "none",
      "records": 0
    },
    "place": {
      "id": "index:jurisdiction/KEN/baringo",
      "iso3": "KEN",
      "name": "Baringo",
      "level": 1,
      "adm": {
        "path": "baringo",
        "level": 1,
        "code": "KE-01"
      },
      "profile": "/v1/jurisdictions/KEN/adm/baringo"
    },
    "scope": {
      "include": "the place and the units inside it",
      "children": true
    },
    "page": {
      "limit": 50,
      "total": 0,
      "offset": 0,
      "next": null,
      "prev": null
    },
    "intake": {
      "source": "snapshot",
      "state": "D",
      "fetchedAt": null,
      "fallback": null,
      "declaredFeatures": "contracts/intake/index/main.json",
      "recordSchema": "contracts/json-schema/intake/records/contribution.v1.json"
    },
    "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"
    },
    "selfReported": true,
    "note": "A contribution is shown beside the Index. It never changes an Index value, score, rank or profile value: data reaches a value only through GRIx (SHARED_FABRIC R11).",
    "links": {
      "participate": "/v1/jurisdictions/KEN/adm/baringo/participate",
      "profile": "/v1/jurisdictions/KEN/adm/baringo",
      "units": "/v1/jurisdictions/KEN/adm?parent=baringo"
    },
    "service": "nxs-index-api",
    "version": "0.9.0"
  }
}

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

The published contributions whose place is this unit; with include=children also those about the units inside it. Every contribution is self-reported by its contributor, reviewed and de-identified, and carries its review record, the licence the contributor granted and its provenance. A contribution is shown beside the Index and never changes an Index value: data reaches a value only through GRIx. Coverage is none until a reviewed contribution is published. Availability: Available.

Parameters

Parameters

  • jurisdictionrequired

    path · string

    The country: ISO 3166-1 alpha-3 code, for example KEN. A place identifier of the Index is also accepted, with its slashes percent-encoded (index:country%2FKEN); a sub-national unit is answered with its country, marked inherited in meta.place.

  • coderequired

    path · string

    The ADM unit: its path of one to three segments (baringo, baringo/baringo-central; the slash may be sent as %2F) or its code in the boundary source (KE-01)

  • includeoptional

    query · string · children

    children: also the contributions about the units inside this place. Default: only the contributions about the place itself

  • kindoptional

    query · string

    value-correction, data-offer, government-reply or local-observation

  • qoptional

    query · string

    Search terms in the contribution text (case-insensitive; every term must match)

  • limitoptional

    query · integer

    Records per page, 1 to 200 (default 50)

  • cursoroptional

    query · string

    Opaque cursor from meta.page.next or prev, bound to the set of contributions it was issued for

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_FILTER, BAD_JURISDICTION, BAD_PAGE, PLACE_ID_INVALID, PLACE_ID_TOO_MANY

  • 401

  • 404Problem, RFC 9457

    Not found. Codes: NOT_FOUND, PLACE_NOT_FOUND, UNIT_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 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.