Request
جرّبه
Available · MCP tool grx.classify · No credits
GET/v1/classify
curl -s "https://api.risksindex.com/v1/classify?q=river%20flood%20damage%20to%20a%20power%20substation&scheme=hazard"const res = await fetch("https://api.risksindex.com/v1/classify?q=river%20flood%20damage%20to%20a%20power%20substation&scheme=hazard");
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.risksindex.com/v1/classify?q=river%20flood%20damage%20to%20a%20power%20substation&scheme=hazard")
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
{
"data": {
"input": {
"kind": "text",
"characters": 40
},
"matches": [
{
"scheme": "hazard",
"id": "water.flood.fluvial",
"label": "River flood",
"confidence": {
"value": 0.95,
"basis": "label-phrase: the full label occurs in the text",
"method": "rule-v1",
"calibrated": false,
"note": "A rule score from 0 to 1 over the words of the text; not a probability and not reviewed."
},
"curie": "index:hazard/water.flood.fluvial",
"href": "/v1/taxonomy/hazards/water.flood.fluvial",
"links": [
{}
]
}
],
"method": {
"id": "rule-v1",
"deterministic": true,
"modelCalls": "none",
"threshold": 0.3,
"text": "Words are lower-cased, accents removed, plural endings stripped and stop words dropped. A whole label found in the text …",
"code": "An exact NHS-1 or NIS-1 id scores 1. An external code follows the NIS-1 crosswalk rows to indicators and carries each ro…"
},
"replication": {
"inputDigest": "f876de0e9d4954c3c3715212ab729778d4edaeed74272de2ee33dc2770ce8fe5",
"resultDigest": "384bcee7f64a367bd1795591aa05289bc44ddc542d38aed36fbeab3b0a8af5e3",
"methodVersion": "rule-v1",
"sources": [
{
"key": "nhs-1",
"commit": "2fcbde115623f8b75a12a91177893f80feb7ee1c",
"sha256": "cf483570ce455cb47a20260a23af594d334a8bed4107a677922093029f3c96c6"
}
],
"deterministic": true
},
"note": "A suggestion to review, never an assignment, a rating or advice. Confidence is a rule score or a draft crosswalk label, …"
},
"meta": {
"authority": "Nexus Standards (authority for NHS-1 and NIS-1); served as an indexing product by The Global Risks Index API, GCRI Canad…",
"state": "E",
"provenance": [
{
"repository": "nexus-estate/nexus-standards-full",
"commit": "2fcbde115623f8b75a12a91177893f80feb7ee1c",
"path": "registry/native/nhs-1.json",
"sha256": "cf483570ce455cb47a20260a23af594d334a8bed4107a677922093029f3c96c6",
"licence": "CC-BY-4.0",
"snapshotAt": "2026-11-22T01:34:55.802Z",
"carriedVia": {
"repository": "nexus-estate/nexus-wp",
"commit": "4a7662f4cc254b5c8ef373764ca8b953775c114e",
"path": "services/risk-graph/data/snapshot/hazards.json",
"sha256": "de76b0add311002f6c3f3ff64a59a55ecd85e0aaf3deb2befca60d99fa5c3128"
}
}
],
"coverage": {
"status": "full",
"records": 1,
"dimensions": {}
},
"standards": [
"NHS-1"
],
"method": {
"id": "rule-v1",
"card": "/v1/methods/rule-v1",
"version": "rule-v1"
},
"review": {
"state": "unreviewed"
},
"service": "nxs-index-api",
"version": "0.9.0"
}
} An answer this API gave, shortened. Values change with the data.
Deterministic, no model call. Give q (text) or code with system (nhs-1, nis-1, hips-2025, emdat, sendai, sdg, inform). Returns NHS-1 hazards and NIS-1 indicators with a confidence and its basis; a rule score or a draft crosswalk label, never a probability. A suggestion to review, not an assignment. Availability: Available. Deprecated parameter: risk, limit (alias of top), region (alias of jurisdiction), regime (alias of jurisdiction).
Parameters
Parameters
qoptionalquery · string
Text to classify, 3 to 2000 characters
codeoptionalquery · string
A code of the code system named by system, e.g. an NHS-1 or NIS-1 id
systemoptionalquery · string
nhs-1, nis-1, hips-2025, emdat, sendai, sdg or inform
schemeoptionalquery · string
hazard, indicator or both (default both)
topoptionalquery · integer
Most matches to return, 1 to 50 (default 10): a ranked shortlist, not a page
industryoptionalquery · string
ISIC Rev.5 code (section letter A to V, or 2 to 4 digits). Validated by pattern; coverage says what it could narrow
jurisdictionoptionalquery · string
ISO 3166-1 alpha-3 code (for example KEN), a 3 digit UN M49 code (for example 014) or a regime id (for example eu). A place identifier of the Index is also accepted: index:country/KEN is the same as KEN; a sub-national unit such as index:jurisdiction/KEN/nairobi is answered with the records of its country, marked inherited in meta.place.
hazardoptionalquery · string
NHS-1 domain, family or hazard id, for example water.flood
indicatoroptionalquery · string
NIS-1 indicator id, for example nis:IND.HAZ.loss.deaths_missing_rate
sinceoptionalquery · string
ISO date YYYY-MM-DD: only records changed on or after it (all records of one snapshot share its snapshotAt)
riskoptionalquery · string · deprecated
Deprecated alias of hazard (Deprecation and Sunset headers are sent when it is used)
Answers
Responses
- 200
Records with provenance, coverage and links
- 304
Not modified: If-None-Match matched the snapshot digest
- 400Problem, RFC 9457
Bad code. Codes: BAD_CODE, BAD_HAZARD, BAD_INDICATOR, BAD_INDUSTRY, BAD_INPUT, BAD_JURISDICTION, BAD_REGIME, BAD_REGION, BAD_RISK, BAD_SCHEME, BAD_SINCE, BAD_SYSTEM, BAD_TEXT, PLACE_ID_INVALID, PLACE…
- 401
- 404Problem, RFC 9457
Not found. Codes: NOT_FOUND, PLACE_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
ابدأ
Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.