跳至内容
The Consortium

Risks Index APIOperational

grx_series_values

Values of one series

Request

试一试

Planned: it answers with a typed refusal · MCP tool grx.series_values · No credits

https://api.risksindex.com

GET/v1/series/{code}/values

curl -s "https://api.risksindex.com/v1/series/<code>/values"
const res = await fetch("https://api.risksindex.com/v1/series/<code>/values");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/series/<code>/values")
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 501 NOT_YET_PUBLISHED until an edition is released. Varies by industry, jurisdiction and risk when released. Availability: Planned (answers a typed problem response until built). Deprecated parameter: risk, region (alias of jurisdiction), regime (alias of jurisdiction).

Parameters

Parameters

  • coderequired

    path · string

    Series code of the Series register, e.g. GS-01 or SR-03

  • industryoptional

    query · string

    ISIC Rev.5 code (section letter A to V, or 2 to 4 digits). Validated by pattern; coverage says what it could narrow

  • jurisdictionoptional

    query · 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.

  • hazardoptional

    query · string

    NHS-1 domain, family or hazard id, for example water.flood

  • indicatoroptional

    query · string

    NIS-1 indicator id, for example nis:IND.HAZ.loss.deaths_missing_rate

  • sinceoptional

    query · string

    ISO date YYYY-MM-DD: only records changed on or after it (all records of one snapshot share its snapshotAt)

  • riskoptional

    query · 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 hazard code. Codes: 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 a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.