Catalog API Reference
API Reference (1.0.0)
Download OpenAPI specification:Download
This page contains the documentation on how to use sentinel hub services through API calls.
Note: This documentation is not complete
This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Core specification. Any service that implements this endpoint to allow discovery of spatiotemporal assets can be considered a STAC API.
Make sure to use the appropriate end-point for each of the datasets, e.g. for Landsat, Sentinel-3, etc.
landing page
Returns the root STAC Catalog or STAC Collection that is the entry point for users to browse with STAC Browser or for search engines to crawl. This can either return a single STAC Collection or more commonly a STAC catalog.
The landing page provides links to the
API definition (link relations service-desc and service-doc)
and the STAC records such as collections/catalogs (link relation child)
or items (link relation item).
Extensions may add additional links with new relation types.
Responses
Response samples
- 200
- 500
{- "type": "Catalog",
- "stac_version": "1.0.0",
- "id": "sentinel-hub",
- "title": "Sentinel Hub STAC catalog",
- "description": "STAC v1.0.0 implementation by Sentinel Hub",
- "conformsTo": {
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "data",
- "type": "application/json"
}, - "3": {
- "rel": "conformance",
- "type": "application/json",
- "title": "STAC conformance classes implemented by this server"
}, - "4": {
- "rel": "search",
- "type": "application/geo+json",
- "title": "STAC search",
- "method": "GET"
}, - "5": {
- "rel": "search",
- "type": "application/geo+json",
- "title": "STAC search",
- "method": "POST"
}, - "6": {
- "type": "application/schema+json"
}, - "7": {
- "rel": "child",
- "type": "application/json",
- "title": "Sentinel 2 L1C"
}, - "8": {
- "rel": "child",
- "type": "application/json",
- "title": "Sentinel 1 GRD"
}, - "9": {
- "rel": "child",
- "type": "application/json",
- "title": "Sentinel 2 L2A"
}, - "10": {
- "rel": "service-desc",
- "type": "application/vnd.oai.openapi;version=\"3.1\"",
- "title": "OpenAPI service description"
}, - "11": {
- "rel": "service-doc",
- "type": "text/html",
- "title": "OpenAPI service documentation"
}
}
}This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Collections specification. This is a subset of the STAC API - Features specification.
the feature collections in the dataset
A body of Feature Collections that belong or are used together with additional links. Request may not return the full set of metadata per Feature Collection.
Authorizations:
Responses
Response samples
- 200
- 403
- 500
{- "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}
}, - "collections": {
- "0": {
- "stac_version": "1.0.0",
- "stac_extensions": {
}, - "type": "Collection",
- "id": "sentinel-2-l1c",
- "title": "Sentinel 2 L1C",
- "description": "Sentinel 2 imagery processed to level 1C",
- "sci:citation": "Modified Copernicus Sentinel data [Year]/Sentinel Hub",
- "license": "proprietary",
- "providers": {
}, - "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": -180,
- "1": -56,
- "2": 180,
- "3": 83
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2015-11-01T00:00:00Z",
- "1": null
}
}
}
}, - "summaries": {
- "platform": {
- "0": "sentinel-2a",
- "1": "sentinel-2b"
}, - "instrument": {
- "0": "msi"
}, - "constellation": {
- "0": "sentinel-2"
}, - "gsd": {
- "0": 10
}, - "eo:cloud_cover": {
- "minimum": 0,
- "maximum": 100
}, - "eo:bands": {
- "0": {
- "name": "B01",
- "common_name": "coastal",
- "center_wavelength": 0.4427,
- "full_width_half_max": 0.021
}, - "1": {
- "name": "B02",
- "common_name": "blue",
- "center_wavelength": 0.4924,
- "full_width_half_max": 0.066
}, - "2": {
- "name": "B03",
- "common_name": "green",
- "center_wavelength": 0.5598,
- "full_width_half_max": 0.036
}, - "3": {
- "name": "B04",
- "common_name": "red",
- "center_wavelength": 0.6646,
- "full_width_half_max": 0.031
}, - "4": {
- "name": "B05",
- "center_wavelength": 0.7041,
- "full_width_half_max": 0.015
}, - "5": {
- "name": "B06",
- "center_wavelength": 0.7405,
- "full_width_half_max": 0.015
}, - "6": {
- "name": "B07",
- "center_wavelength": 0.7828,
- "full_width_half_max": 0.02
}, - "7": {
- "name": "B08",
- "common_name": "nir",
- "center_wavelength": 0.8328,
- "full_width_half_max": 0.106
}, - "8": {
- "name": "B8A",
- "common_name": "nir08",
- "center_wavelength": 0.8647,
- "full_width_half_max": 0.021
}, - "9": {
- "name": "B09",
- "common_name": "nir09",
- "center_wavelength": 0.9451,
- "full_width_half_max": 0.02
}, - "10": {
- "name": "B10",
- "common_name": "cirrus",
- "center_wavelength": 1.3735,
- "full_width_half_max": 0.031
}, - "11": {
- "name": "B11",
- "common_name": "swir16",
- "center_wavelength": 1.6137,
- "full_width_half_max": 0.091
}, - "12": {
- "name": "B12",
- "common_name": "swir22",
- "center_wavelength": 2.2024,
- "full_width_half_max": 0.175
}
}
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "type": "application/schema+json"
}, - "4": {
- "rel": "items",
- "type": "application/geo+json"
}
}
}, - "1": {
- "stac_version": "1.0.0",
- "type": "Collection",
- "id": "sentinel-1-grd",
- "title": "Sentinel 1 GRD",
- "description": "Sentinel 1 Ground Range Detected Imagery",
- "sci:citation": "Modified Copernicus Sentinel data [Year]/Sentinel Hub",
- "license": "proprietary",
- "providers": {
}, - "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": -180,
- "1": -85,
- "2": 180,
- "3": 85
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2014-10-03T00:00:00Z",
- "1": null
}
}
}
}, - "summaries": {
- "platform": {
- "0": "sentinel-1a",
- "1": "sentinel-1b"
}, - "instrument": {
- "0": "c-sar"
}, - "constellation": {
- "0": "sentinel-1"
}, - "sat:orbit_state": {
- "0": "ascending",
- "1": "descending"
}, - "sar:instrument_mode": {
- "0": "SM",
- "1": "IW",
- "2": "EW",
- "3": "WV",
- "4": "EN",
- "5": "AN",
- "6": "IM"
}, - "sar:frequency_band": {
- "0": "C"
}, - "sar:center_frequency": {
- "0": 5.405
}, - "sar:product_type": {
- "0": "GRD"
}, - "sar:polarizations": {
- "0": "HH",
- "1": "HV",
- "2": "VH",
- "3": "VV"
}, - "sar:resolution_range": {
- "0": 9,
- "1": 20,
- "2": 23,
- "3": 50,
- "4": 52,
- "5": 84,
- "6": 88,
- "7": 93
}, - "sar:resolution_azimuth": {
- "0": 9,
- "1": 22,
- "2": 23,
- "3": 50,
- "4": 51,
- "5": 84,
- "6": 87
}, - "sar:pixel_spacing_range": {
- "0": 3.5,
- "1": 10,
- "2": 25,
- "3": 40
}, - "sar:pixel_spacing_azimuth": {
- "0": 3.5,
- "1": 10,
- "2": 25,
- "3": 40
}, - "s1:timeliness": {
- "0": "NRT10m",
- "1": "NRT1h",
- "2": "NRT3h",
- "3": "Fast24h",
- "4": "Offline",
- "5": "Reprocessing",
- "6": "ArchNormal"
}, - "s1:resolution": {
- "0": "HIGH",
- "1": "MEDIUM",
- "2": "FULL"
}, - "s1:polarization": {
- "0": "SH",
- "1": "SV",
- "2": "DH",
- "3": "DV",
- "4": "HH",
- "5": "HV",
- "6": "VV",
- "7": "VH"
}
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "type": "application/schema+json"
}, - "4": {
- "rel": "items",
- "type": "application/geo+json"
}
}
}, - "2": {
- "stac_version": "1.0.0",
- "stac_extensions": {
}, - "type": "Collection",
- "id": "sentinel-2-l2a",
- "title": "Sentinel 2 L2A",
- "description": "Sentinel 2 imagery processed to level 2A",
- "sci:citation": "Modified Copernicus Sentinel data [Year]/Sentinel Hub",
- "license": "proprietary",
- "providers": {
}, - "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": -180,
- "1": -56,
- "2": 180,
- "3": 83
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2016-11-01T00:00:00Z",
- "1": null
}
}
}
}, - "summaries": {
- "platform": {
- "0": "sentinel-2a",
- "1": "sentinel-2b"
}, - "instrument": {
- "0": "msi"
}, - "constellation": {
- "0": "sentinel-2"
}, - "gsd": {
- "0": 10
}, - "eo:cloud_cover": {
- "minimum": 0,
- "maximum": 100
}, - "eo:bands": {
- "0": {
- "name": "B01",
- "common_name": "coastal",
- "center_wavelength": 0.4427,
- "full_width_half_max": 0.021
}, - "1": {
- "name": "B02",
- "common_name": "blue",
- "center_wavelength": 0.4924,
- "full_width_half_max": 0.066
}, - "2": {
- "name": "B03",
- "common_name": "green",
- "center_wavelength": 0.5598,
- "full_width_half_max": 0.036
}, - "3": {
- "name": "B04",
- "common_name": "red",
- "center_wavelength": 0.6646,
- "full_width_half_max": 0.031
}, - "4": {
- "name": "B05",
- "center_wavelength": 0.7041,
- "full_width_half_max": 0.015
}, - "5": {
- "name": "B06",
- "center_wavelength": 0.7405,
- "full_width_half_max": 0.015
}, - "6": {
- "name": "B07",
- "center_wavelength": 0.7828,
- "full_width_half_max": 0.02
}, - "7": {
- "name": "B08",
- "common_name": "nir",
- "center_wavelength": 0.8328,
- "full_width_half_max": 0.106
}, - "8": {
- "name": "B8A",
- "common_name": "nir08",
- "center_wavelength": 0.8647,
- "full_width_half_max": 0.021
}, - "9": {
- "name": "B09",
- "common_name": "nir09",
- "center_wavelength": 0.9451,
- "full_width_half_max": 0.02
}, - "10": {
- "name": "B11",
- "common_name": "swir16",
- "center_wavelength": 1.6137,
- "full_width_half_max": 0.091
}, - "11": {
- "name": "B12",
- "common_name": "swir22",
- "center_wavelength": 2.2024,
- "full_width_half_max": 0.175
}
}
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "type": "application/schema+json"
}, - "4": {
- "rel": "items",
- "type": "application/geo+json"
}
}
}
}
}describe the feature collection with id `collectionId`
A single Feature Collection for the given if collectionId.
Request this endpoint to get a full list of metadata for the Feature Collection.
Authorizations:
path Parameters
| collectionId required | string local identifier of a collection |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "stac_version": "1.0.0",
- "stac_extensions": {
}, - "type": "Collection",
- "id": "sentinel-2-l2a",
- "title": "Sentinel 2 L2A",
- "description": "Sentinel 2 imagery processed to level 2A",
- "sci:citation": "Modified Copernicus Sentinel data [Year]/Sentinel Hub",
- "license": "proprietary",
- "providers": {
}, - "extent": {
- "spatial": {
- "bbox": {
- "0": {
- "0": -180,
- "1": -56,
- "2": 180,
- "3": 83
}
}
}, - "temporal": {
- "interval": {
- "0": {
- "0": "2016-11-01T00:00:00Z",
- "1": null
}
}
}
}, - "summaries": {
- "platform": {
- "0": "sentinel-2a",
- "1": "sentinel-2b"
}, - "instrument": {
- "0": "msi"
}, - "constellation": {
- "0": "sentinel-2"
}, - "gsd": {
- "0": 10
}, - "eo:cloud_cover": {
- "minimum": 0,
- "maximum": 100
}, - "eo:bands": {
- "0": {
- "name": "B01",
- "common_name": "coastal",
- "center_wavelength": 0.4427,
- "full_width_half_max": 0.021
}, - "1": {
- "name": "B02",
- "common_name": "blue",
- "center_wavelength": 0.4924,
- "full_width_half_max": 0.066
}, - "2": {
- "name": "B03",
- "common_name": "green",
- "center_wavelength": 0.5598,
- "full_width_half_max": 0.036
}, - "3": {
- "name": "B04",
- "common_name": "red",
- "center_wavelength": 0.6646,
- "full_width_half_max": 0.031
}, - "4": {
- "name": "B05",
- "center_wavelength": 0.7041,
- "full_width_half_max": 0.015
}, - "5": {
- "name": "B06",
- "center_wavelength": 0.7405,
- "full_width_half_max": 0.015
}, - "6": {
- "name": "B07",
- "center_wavelength": 0.7828,
- "full_width_half_max": 0.02
}, - "7": {
- "name": "B08",
- "common_name": "nir",
- "center_wavelength": 0.8328,
- "full_width_half_max": 0.106
}, - "8": {
- "name": "B8A",
- "common_name": "nir08",
- "center_wavelength": 0.8647,
- "full_width_half_max": 0.021
}, - "9": {
- "name": "B09",
- "common_name": "nir09",
- "center_wavelength": 0.9451,
- "full_width_half_max": 0.02
}, - "10": {
- "name": "B11",
- "common_name": "swir16",
- "center_wavelength": 1.6137,
- "full_width_half_max": 0.091
}, - "11": {
- "name": "B12",
- "common_name": "swir22",
- "center_wavelength": 2.2024,
- "full_width_half_max": 0.175
}
}
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "type": "application/schema+json"
}, - "4": {
- "rel": "items",
- "type": "application/geo+json"
}
}
}Get the JSON Schema defining the list of variable terms that can be used in CQL2 expressions.
This endpoint returns a list of variable terms that can be used in CQL2 expressions. The precise definition of this can be found in the OGC API - Features - Part 3: Filtering and the Common Query Language (CQL) specification.
Authorizations:
path Parameters
| collectionId required | string ID of Collection |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "type": "object",
- "title": "Queryables for Catalog STAC API",
- "description": "Queryable names for the Catalog STAC API Item Search filter.",
- "properties": {
- "eo:cloud_cover": {
- "description": "Cloud Cover",
- "type": "number",
- "minimum": 0,
- "maximum": 100
}
}, - "additionalProperties": false
}This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Features specification. This extends OGC API - Features - Part 1: Core.
fetch features
Fetch features of the feature collection with id collectionId.
Every feature in a dataset belongs to a collection. A dataset may consist of multiple feature collections. A feature collection is often a collection of features of a similar type, based on a common schema.
Authorizations:
path Parameters
| collectionId required | string local identifier of a collection |
query Parameters
| limit | integer [ 1 .. 100 ] Default: 10 The optional limit parameter recommends the number of items that should be present in the response document. If the limit parameter value is greater than advertised limit maximum, the server must return the maximum possible number of items, rather than responding with an error. Only items are counted that are on the first level of the collection in the response document. Nested objects contained within the explicitly requested items must not be counted. Minimum = 1. Maximum = 100. Default = 10. |
Array of numbers or Array of numbers Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):
The coordinate reference system of the values is WGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84). For WGS 84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If the vertical axis is included, the third and the sixth number are the bottom and the top of the 3-dimensional bounding box. If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. | |
| datetime | string Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only features that have a temporal property that intersects the value of
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties. |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "type": "FeatureCollection",
- "features": {
- "0": {
- "stac_version": "1.0.0",
- "stac_extensions": {
}, - "id": "S2B_MSIL2A_20201229T101329_N0214_R022_T33TUK_20201229T115442",
- "type": "Feature",
- "geometry": {
- "type": "MultiPolygon",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:OGC::CRS84"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 12.456873618680804,
- "1": 45.12550485074961
}, - "1": {
- "0": 12.499663722139168,
- "1": 44.138006014975964
}, - "2": {
- "0": 13.153277241744092,
- "1": 44.15044712021016
}, - "3": {
- "0": 13.558241653952589,
- "1": 45.144727105915536
}, - "4": {
- "0": 12.456873618680804,
- "1": 45.12550485074961
}
}
}
}
}, - "bbox": {
- "0": 12.456873618680804,
- "1": 44.138006014975964,
- "2": 13.558241653952589,
- "3": 45.144727105915536
}, - "properties": {
- "datetime": "2020-12-29T10:18:19Z",
- "platform": "sentinel-2b",
- "instruments": {
- "0": "msi"
}, - "constellation": "sentinel-2",
- "gsd": 10,
- "eo:cloud_cover": 93.93,
- "proj:epsg": 32633,
- "proj:bbox": {
- "0": 300000,
- "1": 4890240,
- "2": 409800,
- "3": 5000040
}, - "proj:geometry": {
- "type": "MultiPolygon",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:EPSG::32633"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}, - "1": {
- "0": 300000.99989785976,
- "1": 4890241.000124758
}, - "2": {
- "0": 352314.4884079728,
- "1": 4890241.000125499
}, - "3": {
- "0": 386653.8629171661,
- "1": 5000039.000149397
}, - "4": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}
}
}
}
}
}, - "assets": {
- "data": {
- "href": "s3://sentinel-s2-l2a/tiles/33/T/UK/2020/12/29/0/",
- "title": "s3",
- "type": "inode/directory"
}
}, - "collection": "sentinel-2-l2a",
- "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/geo+json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "rel": "collection",
- "type": "application/json"
}, - "4": {
- "rel": "derived_from",
- "title": "scihub download"
}
}
}
}, - "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/geo+json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "rel": "next",
- "type": "application/geo+json",
- "title": "Next set of results"
}
}, - "timeStamp": "2023-05-19T12:54:40.429059Z",
- "numberReturned": 1
}fetch a single feature
Fetch the feature with id featureId in the feature collection
with id collectionId.
Authorizations:
path Parameters
| collectionId required | string local identifier of a collection |
| featureId required | string local identifier of a feature |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "stac_version": "1.0.0",
- "stac_extensions": {
}, - "id": "S2B_MSIL2A_20201229T101329_N0214_R022_T33TUK_20201229T115442",
- "type": "Feature",
- "geometry": {
- "type": "MultiPolygon",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:OGC::CRS84"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 12.456873618680804,
- "1": 45.12550485074961
}, - "1": {
- "0": 12.499663722139168,
- "1": 44.138006014975964
}, - "2": {
- "0": 13.153277241744092,
- "1": 44.15044712021016
}, - "3": {
- "0": 13.558241653952589,
- "1": 45.144727105915536
}, - "4": {
- "0": 12.456873618680804,
- "1": 45.12550485074961
}
}
}
}
}, - "bbox": {
- "0": 12.456873618680804,
- "1": 44.138006014975964,
- "2": 13.558241653952589,
- "3": 45.144727105915536
}, - "properties": {
- "datetime": "2020-12-29T10:18:19Z",
- "platform": "sentinel-2b",
- "instruments": {
- "0": "msi"
}, - "constellation": "sentinel-2",
- "gsd": 10,
- "eo:cloud_cover": 93.93,
- "proj:epsg": 32633,
- "proj:bbox": {
- "0": 300000,
- "1": 4890240,
- "2": 409800,
- "3": 5000040
}, - "proj:geometry": {
- "type": "MultiPolygon",
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:EPSG::32633"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}, - "1": {
- "0": 300000.99989785976,
- "1": 4890241.000124758
}, - "2": {
- "0": 352314.4884079728,
- "1": 4890241.000125499
}, - "3": {
- "0": 386653.8629171661,
- "1": 5000039.000149397
}, - "4": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}
}
}
}
}
}, - "assets": {
- "data": {
- "href": "s3://sentinel-s2-l2a/tiles/33/T/UK/2020/12/29/0/",
- "title": "s3",
- "type": "inode/directory"
}
}, - "collection": "sentinel-2-l2a",
- "links": {
- "0": {
- "rel": "root",
- "type": "application/json"
}, - "1": {
- "rel": "self",
- "type": "application/geo+json"
}, - "2": {
- "rel": "parent",
- "type": "application/json"
}, - "3": {
- "rel": "collection",
- "type": "application/json"
}, - "4": {
- "rel": "derived_from",
- "title": "scihub download"
}
}
}This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Item Search specification.
Search STAC items with simple filtering.
Retrieve Items matching filters. Intended as a shorthand API for simple queries.
This method is required to implement.
If this endpoint is implemented on a server, it is required to add a
link referring to this endpoint with rel set to search to the
links array in GET /. As GET is the default method, the method
may not be set explicitly in the link.
Authorizations:
query Parameters
Array of numbers or Array of numbers Example: bbox=13,45,14,46 Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (height or depth):
The coordinate reference system of the values is WGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84). For WGS 84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If the vertical axis is included, the third and the sixth number are the bottom and the top of the 3-dimensional bounding box. If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. Example: The bounding box of the New Zealand Exclusive Economic Zone in
WGS 84 (from 160.6°E to 170°W and from 55.95°S to 25.89°S) would be
represented in JSON as | |
pointGeoJSON (object) or multipointGeoJSON (object) or linestringGeoJSON (object) or multilinestringGeoJSON (object) or polygonGeoJSON (object) or multipolygonGeoJSON (object) or geometrycollectionGeoJSON (object) (geometryGeoJSON) The optional intersects parameter filters the result Items in the same was as bbox, only with a GeoJSON Geometry rather than a bbox. | |
| datetime required | string Example: datetime=2020-12-10T00:00:00Z/2020-12-30T00:00:00Z Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only features that have a temporal property that intersects the value of
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties. |
| limit | integer [ 1 .. 100 ] Default: 10 Example: limit=1 The optional limit parameter recommends the number of items that should be present in the response document. Only items are counted that are on the first level of the collection in the response document. Nested objects contained within the explicitly requested items must not be counted. Minimum = 1. Maximum = 100. Default = 10. |
| ids | Array of strings (ids) Array of Item ids to return. |
| collections required | Array of strings (collectionsArray) = 1 items Example: collections=sentinel-2-l2a Array of Collection IDs to include in the search for items. Only Item objects in one of the provided collections will be searched |
| fields | string Example: fields=id,type,-geometry,bbox,properties,-links,-assets Extension: Fields Determines the shape of the features in the response |
| filter | string (filter-cql2-text) Example: filter=eo:cloud_cover>90 Extension: Filter A CQL2 filter expression for filtering items. |
| distinct | string Extension: Distinct Return distinct values of specified property. |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "type": "FeatureCollection",
- "features": {
- "0": {
- "bbox": {
- "0": 12.456873618680804,
- "1": 44.138006014975964,
- "2": 13.558241653952589,
- "3": 45.144727105915536
}, - "id": "S2B_MSIL2A_20201229T101329_N0214_R022_T33TUK_20201229T115442",
- "type": "Feature",
- "properties": {
- "proj:epsg": 32633,
- "datetime": "2020-12-29T10:18:19Z",
- "instruments": {
- "0": "msi"
}, - "constellation": "sentinel-2",
- "proj:geometry": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:EPSG::32633"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}, - "1": {
- "0": 300000.99989785976,
- "1": 4890241.000124758
}, - "2": {
- "0": 352314.4884079728,
- "1": 4890241.000125499
}, - "3": {
- "0": 386653.8629171661,
- "1": 5000039.000149397
}, - "4": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}
}
}
}, - "type": "MultiPolygon"
}, - "eo:cloud_cover": 93.93,
- "gsd": 10,
- "proj:bbox": {
- "0": 300000,
- "1": 4890240,
- "2": 409800,
- "3": 5000040
}, - "platform": "sentinel-2b"
}
}
}, - "links": {
- "0": {
- "rel": "self",
- "type": "application/geo+json"
}, - "1": {
- "rel": "next",
- "type": "application/geo+json",
- "title": "Next set of results"
}
}, - "context": {
- "next": 1,
- "limit": 1,
- "returned": 1
}
}Search STAC items with full-featured filtering.
Retrieve items matching filters. Intended as the standard, full-featured query API.
This method is optional to implement, but recommended.
If this endpoint is implemented on a server, it is required to add a
link referring to this endpoint with rel set to search and method
set to POST to the links array in GET /.
Authorizations:
Request Body schema: application/json
| bbox | Array of numbers (CatalogBbox) [ 4 .. 6 ] items Only features that have a geometry that intersects the bounding box are selected. The bounding box is provided as four or six numbers, depending on whether the coordinate reference system includes a vertical axis (elevation or depth):
The coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84). For WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge). If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. Example: The bounding box of the New Zealand Exclusive Economic Zone in
WGS 84 (from 160.6°E to 170°W and from 55.95°S to 25.89°S) would be
represented in JSON as |
| datetime required | string (CatalogItemSearchDatetimeInterval) Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:
Only features that have a temporal property that intersects the value of
If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties. |
geometryGeoJSON (object) or geometryGeoJSON (object) or geometryGeoJSON (object) or geometryGeoJSON (object) or geometryGeoJSON (object) or geometryGeoJSON (object) or geometryGeoJSON (object) (CatalogGeometryGeoJSON) | |
| collections required | Array of strings (CatalogItemSearchCollectionsArray) = 1 items Array of Collection IDs to include in the search for items. Only Item objects in one of the provided collections will be searched. |
| ids | Array of strings (CatalogItemSearchIds) Array of Item ids to return. |
| limit | integer (CatalogItemSearchLimit) [ 1 .. 100 ] The optional limit parameter limits the number of items that are presented in the response document. If the limit parameter value is greater than advertised limit maximum, the server must return the maximum possible number of items, rather than responding with an error. Only items are counted that are on the first level of the collection in the response document. Nested objects contained within the explicitly requested items must not be counted. Minimum = 1. Maximum = 100. Default = 10. |
object (CatalogItemSearchFieldsFields) The include and exclude members specify an array of property names that are either included or excluded from the result, respectively. If both include and exclude are specified, include takes precedence. Values should include the full JSON path of the property. | |
andExpression (object) or cql2NotExpression (object) or (comparisonPredicate (binaryComparisonPredicate (object) or isBetweenPredicate (object))) (CatalogItemSearchFilterFilterCql2Json) | |
| filter-lang | string (CatalogItemSearchFilterFilterLang) Enum: "cql2-text" "cql2-json" The CQL2 filter encoding that the 'filter' value uses. |
| filter-crs | string <uri> (CatalogItemSearchFilterFilterCrs) The coordinate reference system (CRS) used by spatial literals in the 'filter' value. The only value that STAC APIs must accept is 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'. |
| distinct | string (CatalogItemSearchDistinctDistinct) Return distinct values of specified property. |
Responses
Request samples
- Payload
{- "collections": {
- "0": "sentinel-2-l2a"
}, - "bbox": {
- "0": 13,
- "1": 45,
- "2": 14,
- "3": 46
}, - "datetime": "2020-12-10T00:00:00Z/2020-12-30T00:00:00Z",
- "fields": {
- "include": {
- "0": "id",
- "1": "type",
- "2": "bbox",
- "3": "properties"
}, - "exclude": {
- "0": "geometry",
- "1": "links",
- "2": "assets"
}
}, - "filter": {
- "op": ">",
- "args": {
- "0": {
- "property": "eo:cloud_cover"
}, - "1": 90
}
}, - "filter-lang": "cql2-json",
- "limit": 1
}Response samples
- 200
- 400
- 403
- 500
{- "type": "FeatureCollection",
- "features": {
- "0": {
- "bbox": {
- "0": 12.456873618680804,
- "1": 44.138006014975964,
- "2": 13.558241653952589,
- "3": 45.144727105915536
}, - "id": "S2B_MSIL2A_20201229T101329_N0214_R022_T33TUK_20201229T115442",
- "type": "Feature",
- "properties": {
- "proj:epsg": 32633,
- "datetime": "2020-12-29T10:18:19Z",
- "instruments": {
- "0": "msi"
}, - "constellation": "sentinel-2",
- "proj:geometry": {
- "crs": {
- "type": "name",
- "properties": {
- "name": "urn:ogc:def:crs:EPSG::32633"
}
}, - "coordinates": {
- "0": {
- "0": {
- "0": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}, - "1": {
- "0": 300000.99989785976,
- "1": 4890241.000124758
}, - "2": {
- "0": 352314.4884079728,
- "1": 4890241.000125499
}, - "3": {
- "0": 386653.8629171661,
- "1": 5000039.000149397
}, - "4": {
- "0": 300000.99988415383,
- "1": 5000039.000148304
}
}
}
}, - "type": "MultiPolygon"
}, - "eo:cloud_cover": 93.93,
- "gsd": 10,
- "proj:bbox": {
- "0": 300000,
- "1": 4890240,
- "2": 409800,
- "3": 5000040
}, - "platform": "sentinel-2b"
}
}
}, - "links": {
- "0": {
- "rel": "self",
- "type": "application/geo+json"
}, - "1": {
- "rel": "next",
- "type": "application/geo+json",
- "title": "Next set of results",
- "method": "POST",
- "body": {
- "next": 1
}, - "merge": true
}
}, - "context": {
- "next": 1,
- "limit": 1,
- "returned": 1
}
}