Request
试一试
Available · MCP tool grx.problems · No credits
GET/v1/problems
curl -s "https://api.risksindex.com/v1/problems?q=cursor"const res = await fetch("https://api.risksindex.com/v1/problems?q=cursor");
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.risksindex.com/v1/problems?q=cursor")
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
{
"data": [
{
"code": "BAD_CURSOR",
"type": "urn:therisk:problem:index-api:bad_cursor",
"status": 400,
"title": "Bad cursor",
"meaning": "the cursor is not one this service issued for this snapshot (cursors are opaque and snapshot-bound)"
},
{
"code": "STALE_CURSOR",
"type": "urn:therisk:problem:index-api:stale_cursor",
"status": 409,
"title": "Stale cursor",
"meaning": "the records of a bulk listing changed since the cursor was issued (a new snapshot or edition): read the listing again from its first page"
}
],
"meta": {
"authority": "The Global Risks Index (NXS-GRX), GCRI Canada",
"state": "E",
"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"
},
"coverage": {
"status": "full",
"records": 79
},
"note": "The problem catalogue: every error is an RFC 9457 problem of one of these types. Each route declares its codes in the OpenAPI document (x-problem-codes).",
"page": {
"limit": 50,
"offset": 0,
"total": 2,
"next": null,
"prev": null
},
"service": "nxs-index-api",
"version": "0.9.0"
}
} An answer this API gave, shortened. Values change with the data.
Every error code, its type urn:therisk:problem:index-api:, status and meaning. Each route declares the codes it can answer (x-problem-codes). Availability: Available.
Parameters
Parameters
qoptionalquery · string
Search terms (case-insensitive; every term must match)
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
- 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.