Geokuup STAC API documentation

SpatioTemporal Asset Catalog API for geospatial data discovery and access

STAC 1.0.0 OpenAPI 3.0.3 v0.1.0 https://metadata.geokuup.ee

Getting started

The API follows the STAC API 1.0.0 specification on top of OGC API – Features. Start at the landing page, follow its links, and page through collections and items. All responses are JSON; item responses are GeoJSON.

3. Access

assets[*].href → COG / FlatGeobuf on S3 (https or s3://)
curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/search?collections=estonia-sentinel2-ndvi&datetime=2020-04-01T00:00:00Z/2020-10-31T23:59:59Z&limit=5"

Works directly with pystac-client, stac-client (R), QGIS STAC plugins and GDAL's STAC drivers via the API root URL.

Authentication

Reading public data needs no credentials. An API key sent in the X-API-Key header unlocks private catalogs:

Public

No key needed.

Optional key

Works without a key; add X-API-Key to also see private catalogs.

Private catalogs, their collections and items answer 404 to unauthenticated requests, not 403, so their existence is not disclosed. The web browser has its own unlock form and keeps the state in the session cookie.

Conformance classes

Declared at /stac/api/v1/conformance.

STAC API v1 (read)

OGC API – Features / STAC 1.0.0 conformant read endpoints. Public without a key; an optional X-API-Key additionally exposes private catalogs.

Base path /stac/api/v1

GET /stac/api/v1/ Optional key Try it ↗

Landing page

Root STAC Catalog with the conformance classes and links to collections, search, the OpenAPI document and every top-level catalog visible to the caller.

Responses

  • 200 Root catalog application/json · Catalog

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/"
GET /stac/api/v1/conformance Public Try it ↗

Conformance classes

Lists the STAC API and OGC API – Features conformance classes this server implements.

Responses

  • 200 Conformance declaration application/json · Conformance

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/conformance"
GET /stac/api/v1/catalog/{catalog_id} Optional key Try it ↗

Sub-catalog

A nested catalog with child links to its sub-catalogs and collections. Private catalogs answer 404 unless a valid key is supplied.

Parameters

Name In Type Description
catalog_id* path string Catalog identifier e.g. estonia

Responses

  • 200 Catalog application/json · Catalog
  • 404 Catalog not found or private application/json · Error

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/catalog/estonia"
GET /stac/api/v1/collections Optional key Try it ↗

List collections

All collections visible to the caller, each with its extent, license, providers and links.

Responses

  • 200 Collection list application/json · CollectionList

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/collections"
GET /stac/api/v1/collections/{collection_id} Optional key Try it ↗

Get collection

A single STAC Collection.

Parameters

Name In Type Description
collection_id* path string Collection identifier e.g. estonia-soil

Responses

  • 200 Collection application/json · Collection
  • 404 Collection not found application/json · Error

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/collections/estonia-soil"
GET /stac/api/v1/collections/{collection_id}/items Optional key Try it ↗

List items of a collection

OGC API – Features items endpoint. Returns a GeoJSON FeatureCollection ordered by datetime, with self / next / prev pagination links and a context block.

Parameters

Name In Type Description
collection_id* path string Collection identifier e.g. estonia-soil
bbox query string Bounding box west,south,east,north in WGS 84 (4 numbers; a 6-value box with elevation is rejected with 400). west may be greater than east for a box crossing the antimeridian. e.g. 21.6,57.4,28.3,59.9
datetime query string RFC 3339 instant or interval start/end. Either end may be open with '..'. Items whose datetime, or start/end range, overlaps the interval match. e.g. 2020-01-01T00:00:00Z/2021-12-31T23:59:59Z
fields query string Comma-separated field paths. Use -path to exclude a path; without fields the full Item is returned, and fields= returns the default STAC Item fields. Exclude-only requests return the full Item except for the excluded paths. e.g. id,collection,properties.datetime
limit query integer Page size. Default 10, values above 10000 are capped. e.g. 5
offset query integer Number of results to skip (default 0). e.g. 0

Responses

  • 200 Item collection application/geo+json · ItemCollection
  • 400 Invalid datetime, bbox, or fields parameter application/json · Error
  • 404 Collection not found application/json · Error

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/collections/estonia-soil/items?datetime=2020-01-01T00:00:00Z/2021-12-31T23:59:59Z&limit=2"
GET /stac/api/v1/collections/{collection_id}/items/{item_id} Optional key Try it ↗

Get item

A single STAC Item (GeoJSON Feature) with its assets and links.

Parameters

Name In Type Description
collection_id* path string Collection identifier e.g. estonia-topo-10m
item_id* path string Item identifier e.g. dem_10m_clipped

Responses

  • 200 Item application/geo+json · Item
  • 404 Item not found application/json · Error

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/collections/estonia-topo-10m/items/dem_10m_clipped"
GET /stac/api/v1/search Optional key Try it ↗

Search items (GET)

STAC Item Search across all visible collections. Filters combine with AND. The response context reports returned / matched / limit.

Parameters

Name In Type Description
collections query string Comma-separated collection ids to search in. e.g. estonia-soil
ids query string Comma-separated item ids. e.g. dem_10m_clipped
bbox query string Bounding box west,south,east,north in WGS 84 (4 numbers; a 6-value box with elevation is rejected with 400). west may be greater than east for a box crossing the antimeridian. e.g. 21.6,57.4,28.3,59.9
datetime query string RFC 3339 instant (2020-01-01T00:00:00Z) or interval start/end. Either end may be open with '..'. Items whose datetime, or start/end range, overlaps the interval match. Unparseable values return 400. e.g. 2020-01-01T00:00:00Z/2021-12-31T23:59:59Z
fields query string Comma-separated field paths. Use -path to exclude a path; without fields the full Item is returned, and fields= returns the default STAC Item fields. Exclude-only requests return the full Item except for the excluded paths. e.g. id,collection,properties.datetime
intersects query string URL-encoded GeoJSON geometry; only items whose footprint intersects it are returned.
limit query integer Page size. Default 10, values above 100 are capped. e.g. 5
offset query integer Number of results to skip (default 0). e.g. 0

Responses

  • 200 Matching items application/geo+json · ItemCollection
  • 400 Invalid datetime, bbox, fields, or limit parameter application/json · Error

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/search?collections=estonia-sentinel2-ndvi&datetime=2020-04-01T00:00:00Z/2020-10-31T23:59:59Z&limit=5"
POST /stac/api/v1/search Optional key

Search items (POST)

Same as the GET search with the filters in a JSON body. Use this form for GeoJSON intersects geometries and long id lists. The self / next / prev links are POST links: same href, "method": "POST", and the full request body with the new offset as "body" (no merge, so post the body as it is).

Request body · SearchBody · application/json

Same filters as the GET form, as a JSON object. Arrays replace comma-separated strings and intersects is a GeoJSON geometry object.

{
  "bbox": [
    21.6,
    57.4,
    28.3,
    59.9
  ],
  "collections": [
    "estonia-sentinel2-ndvi"
  ],
  "datetime": "2020-04-01T00:00:00Z/2020-10-31T23:59:59Z",
  "limit": 5
}

Responses

  • 200 Matching items application/geo+json · ItemCollection
  • 400 Invalid datetime, bbox, fields, or limit parameter application/json · Error

Example

curl -s \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"bbox":[21.6,57.4,28.3,59.9],"collections":["estonia-sentinel2-ndvi"],"datetime":"2020-04-01T00:00:00Z/2020-10-31T23:59:59Z","limit":5}' \
  "https://metadata.geokuup.ee/stac/api/v1/search"
GET /stac/api/v1/openapi.json Public Try it ↗

OpenAPI document

This API described as OpenAPI 3.0 (service-desc link on the landing page).

Responses

  • 200 OpenAPI 3.0.3 document application/vnd.oai.openapi+json;version=3.0

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/openapi.json"
GET /stac/api/v1/docs Public Try it ↗

API documentation

This page (service-doc link on the landing page).

Responses

  • 200 HTML documentation text/html

Example

curl -s \
  "https://metadata.geokuup.ee/stac/api/v1/docs"

Web interface

Human-facing HTML pages. Private catalogs can be unlocked in the browser with an API key (session cookie), independent of the X-API-Key header.

Base path /stac/web

GET /stac/web/ Public Try it ↗

Web landing page

Overview page with links to the browser, search and API.

Responses

  • 200 HTML page text/html

Example

curl -s \
  "https://metadata.geokuup.ee/stac/web/"
GET /stac/web/browse Public Try it ↗

Data browser

Browse catalogs, collections and items. Deeper paths follow /browse/catalog/{id}, /browse/collection/{id} and /browse/collection/{id}/item/{item_id}.

Responses

  • 200 HTML page text/html

Example

curl -s \
  "https://metadata.geokuup.ee/stac/web/browse"
GET /stac/web/search/api Public Try it ↗

Search (session-authenticated JSON)

Same filters and response as the STAC search, but private content is decided by the browser session instead of the X-API-Key header. Used by the search form's JSON button.

Parameters

Name In Type Description
collections query string Comma-separated collection ids to search in. e.g. estonia-soil
ids query string Comma-separated item ids. e.g. dem_10m_clipped
bbox query string Bounding box west,south,east,north in WGS 84 (4 numbers; a 6-value box with elevation is rejected with 400). west may be greater than east for a box crossing the antimeridian. e.g. 21.6,57.4,28.3,59.9
datetime query string RFC 3339 instant (2020-01-01T00:00:00Z) or interval start/end. Either end may be open with '..'. Items whose datetime, or start/end range, overlaps the interval match. Unparseable values return 400. e.g. 2020-01-01T00:00:00Z/2021-12-31T23:59:59Z
fields query string Comma-separated field paths. Use -path to exclude a path; without fields the full Item is returned, and fields= returns the default STAC Item fields. Exclude-only requests return the full Item except for the excluded paths. e.g. id,collection,properties.datetime
intersects query string URL-encoded GeoJSON geometry; only items whose footprint intersects it are returned.
limit query integer Page size. Default 10, values above 100 are capped. e.g. 5
offset query integer Number of results to skip (default 0). e.g. 0

Responses

  • 200 Matching items application/geo+json · ItemCollection

Example

curl -s \
  "https://metadata.geokuup.ee/stac/web/search/api?collections=estonia-soil&limit=2"
Schemas referenced above are defined in the OpenAPI document under components.schemas. Load that URL in Swagger UI, Redoc or Postman for an interactive client.