Yeqela kokuqukethwe
The Consortium

Risks Index APIOperational

GET_v1_ogc_collections_collection_items

Records of an OGC collection

Request

Try it

Available · No credits

https://api.risksindex.com

GET/v1/ogc/collections/{collection}/items

curl -s "https://api.risksindex.com/v1/ogc/collections/hazards/items?limit=1"
const res = await fetch("https://api.risksindex.com/v1/ogc/collections/hazards/items?limit=1");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/ogc/collections/hazards/items?limit=1")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

"/v1/ogc/collections/hazards/items?limit=1"

An answer this API gave, shortened. Values change with the data.

GeoJSON Feature records with geometry null (metadata only): q, limit (1 to 100) and offset, with next and prev links. Availability: Available.

Parameters

Parameters

  • collectionrequired

    path · string

    Collection id

  • qoptional

    query · string

    Search terms in the title and description

  • limitoptional

    query · string

    1 to 100 (default 10)

  • offsetoptional

    query · string

    Records to skip (default 0)

Answers

Responses

  • 200

    An OGC API document (raw OGC shape, not the envelope)

  • 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 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.