Request
试一试
Available · MCP tool grx.country_changes · No credits
GET/v1/countries/{iso3}/changes
curl -s "https://api.risksindex.com/v1/countries/KEN/changes?limit=3"const res = await fetch("https://api.risksindex.com/v1/countries/KEN/changes?limit=3");
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.risksindex.com/v1/countries/KEN/changes?limit=3")
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
[
{
"specversion": "1.0",
"id": "9707f5b50602:index:country/KEN:updated",
"source": "urn:therisk:index-api",
"type": "index.country.updated",
"subject": "index:country/KEN",
"time": "2026-11-22T01:34:55.802Z",
"datacontenttype": "application/json",
"data": {
"id": "index:country/KEN",
"version": null,
"sha256": "43937affaa3a75b6d575cb35e1ecd81991c8be08b94f36071ebf52a00d2f9c6e",
"previousSha256": "5ff7937b39997be8f0e1dfc8463682ee644613454c7556c151f1dec5fe95339a",
"provenance": {
"repository": "nexus-estate/nexus-wp",
"commit": "4a7662f4cc254b5c8ef373764ca8b953775c114e",
"path": "the network's own records",
"sha256": "b7a7ac02f87aecb7d4158de7be0105b2df9232eb644d2e6338dcc1cdaf822c2a",
"licence": "PENDING (Index registry licence not recorded: global-risk-index the network's own records D-9; no licence is granted until recorded); regions follow UN M49",
"snapshotAt": "2026-11-22T01:34:55.802Z",
"upstreamCommit": "96a5234c"
}
}
},
{
"specversion": "1.0",
"id": "origin:index:edition/GRIX-2026-BASELINE:created",
"source": "urn:therisk:index-api",
"type": "index.edition.created",
"subject": "index:edition/GRIX-2026-BASELINE",
"time": "2026-11-22T01:34:55.802Z",
"datacontenttype": "application/json",
"data": {
"id": "index:edition/GRIX-2026-BASELINE",
"version": null,
"sha256": "edd92934826ce8e42a848629766d32efea8b702eb7c406aa4d70d0b284e0ec4b",
"origin": true,
"provenance": {
"repository": "nexus-estate/nexus-wp",
"commit": "4a7662f4cc254b5c8ef373764ca8b953775c114e",
"path": "the network's own records",
"sha256": "187d54cab617e4825f4fc45d85879ebfe9b39e6ec939a2b037426ab3141708c1",
"licence": "PENDING (Index registry licence not recorded: global-risk-index the network's own records D-9; no licence is granted until recorded)",
"snapshotAt": "2026-11-22T01:34:55.802Z",
"upstreamCommit": "96a5234c"
}
}
}
] An answer this API gave, shortened. Values change with the data.
The route /v1/changes fixed to the country: the same parameters apply and the answer names the scope it was fixed to. CloudEvents of the records this scope serves (its own slice of the feed). Availability: Available.
Parameters
Parameters
iso3requiredpath · string
Country code, ISO 3166-1 alpha-3, e.g. KEN
qoptionalquery · string
Search terms over the event type and subject
sinceoptionalquery · string
ISO date
typeoptionalquery · string
Event types
subjectoptionalquery · string
A UNI, e.g. index:indicator/: the history of one record
limitoptionalquery · integer
Records per page, 1 to 200 (default 50)
cursoroptionalquery · string
Opaque cursor from meta.page.next or prev (snapshot-bound)
offsetoptionalquery · 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 a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.