Request
تاقی بکەرەوە
Planned: it answers with a typed refusal · MCP tool grx.score · No credits
GET/v1/scores/{entity}
curl -s "https://api.risksindex.com/v1/scores/<entity>"const res = await fetch("https://api.risksindex.com/v1/scores/<entity>");
const { data, meta } = await res.json();import json, urllib.request
req = urllib.request.Request("https://api.risksindex.com/v1/scores/<entity>")
with urllib.request.urlopen(req) as res:
answer = json.load(res)200 OKapplication/json
{
"data": "…",
"meta": {
"authority": "string",
"state": "string",
"provenance": "…",
"coverage": {
"status": "full",
"records": 0,
"dimensions": {}
},
"review": {}
}
} Answers NOT_YET_PUBLISHED until an edition is released; then the composite with its 90% interval, class and class probability, method version and replication digest. Availability: Planned (answers a typed problem response until built). Deprecated parameter: risk, region (alias of jurisdiction), regime (alias of jurisdiction).
Parameters
Parameters
entityrequiredpath · string
ISO 3166 alpha-3 or alpha-2 code of one of the 195 country profiles
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
- 400Problem, RFC 9457
Bad entity. Codes: BAD_ENTITY, BAD_HAZARD, BAD_INDICATOR, BAD_INDUSTRY, BAD_JURISDICTION, BAD_REGIME, BAD_REGION, BAD_RISK, BAD_SINCE, PLACE_ID_INVALID, PLACE_ID_TOO_MANY
- 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
- 501Problem, RFC 9457
Planned. Codes: NOT_YET_PUBLISHED
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.