List render presets
const url = 'https://api.satellitedata.net/v1/presets';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.satellitedata.net/v1/presetsLists the named render presets, such as true-color, false-color, ndvi, ndwi, moisture and hillshade, with their bands, expression, colour ramp, default collection, accepted collections, cloud-mask settings and zoom range. Presets are the only renders anonymous callers can request.
Responses
Section titled “Responses”Presets; the example is shortened to two.
Preset list.
object
Presets.
Render preset.
object
Preset id.
Title.
What the preset shows.
Default collection.
Collections the preset accepts through ?collection=.
Bands read, by common name.
Band math, when the preset is an index.
Value range mapped to 0-255.
Named colormap for one-band presets.
Harmonization level.
Scene order.
Scene cloud cover ceiling.
Unified cloud mask settings from schema v1.
object
Mask classes to drop. Defaults to schema v1 defaultExclude for statistics and time series and to the preset value for tiles.
How Sentinel-2 SCL class 7 is treated.
Buffer in metres around cloud and cloud_shadow on sources without one.
Minimum Landsat QA_PIXEL cloud confidence counted as cloud.
Default time window as an ISO 8601 duration ending now, when ?datetime= is absent.
Lowest zoom.
Highest zoom; deeper requests fail at the edge with 400.
Tile matrix sets.
Tile formats.
Links to TileJSON and WMTS.
A STAC and OGC API link object.
object
Link target.
Relation type, such as self, root, parent, next, prev, items, queryables, tiles or license.
Media type of the target.
Human-readable title.
HTTP method for the link, GET unless stated. Paging POST /v1/search uses POST.
Request body to send with a POST link, used for the next page of POST /v1/search.
object
When true the client merges body into the previous request body.
Links.
A STAC and OGC API link object.
object
Link target.
Relation type, such as self, root, parent, next, prev, items, queryables, tiles or license.
Media type of the target.
Human-readable title.
HTTP method for the link, GET unless stated. Paging POST /v1/search uses POST.
Request body to send with a POST link, used for the next page of POST /v1/search.
object
When true the client merges body into the previous request body.
Example
{ "presets": [ { "id": "true-color", "title": "True colour", "description": "Red, green and blue reflectance stretched from 0 to 0.3, least cloudy scene first.", "collection": "sentinel-2-l2a", "collections": [ "sentinel-2-l2a", "landsat-ot-l2", "landsat-etm-l2", "landsat-tm-l2", "hls", "optical-sr" ], "bands": [ "red", "green", "blue" ], "rescale": [ 0, 0.3 ], "harmonize": "offset_removed", "mosaickingOrder": "leastCC", "maxCloudCoverage": 30, "cloudMask": { "exclude": [ "nodata" ] }, "defaultWindow": "P30D", "minzoom": 8, "maxzoom": 14, "tileMatrixSets": [ "WebMercatorQuad", "WorldCRS84Quad" ], "formats": [ "png", "jpg", "webp" ], "links": [ { "href": "https://api.satellitedata.net/v1/presets/true-color", "rel": "self", "type": "application/json" } ] }, { "id": "ndvi", "title": "NDVI", "description": "Normalized difference vegetation index from red and nir08, cloud-masked, on a red-yellow-green ramp from -0.2 to 0.9.", "collection": "optical-sr", "collections": [ "optical-sr", "sentinel-2-l2a", "landsat-ot-l2", "hls" ], "bands": [ "red", "nir08" ], "expression": "(nir08 - red) / (nir08 + red)", "rescale": [ -0.2, 0.9 ], "colormap": "rdylgn", "harmonize": "bandpass_adjusted", "mosaickingOrder": "leastCC", "maxCloudCoverage": 60, "cloudMask": { "exclude": [ "nodata", "saturated_defective", "cloud", "cloud_shadow", "cirrus", "cloud_adjacent" ], "scl7": "unclassified", "dilate_m": 150 }, "defaultWindow": "P30D", "minzoom": 8, "maxzoom": 14, "tileMatrixSets": [ "WebMercatorQuad", "WorldCRS84Quad" ], "formats": [ "png", "webp" ], "links": [ { "href": "https://api.satellitedata.net/v1/presets/ndvi", "rel": "self", "type": "application/json" }, { "href": "https://api.satellitedata.net/v1/tiles/ndvi/WebMercatorQuad/tilejson.json", "rel": "tiles", "type": "application/json", "title": "TileJSON" }, { "href": "https://api.satellitedata.net/v1/tiles/ndvi/WebMercatorQuad/WMTSCapabilities.xml", "rel": "describedby", "type": "application/xml", "title": "WMTS capabilities" } ] } ], "links": [ { "href": "https://api.satellitedata.net/v1/presets", "rel": "self", "type": "application/json" } ]}Headers
Section titled “Headers”Request id for support and logs.
Example
01JQ7Z3M8R5V2W6X9Y0A1B2C3DEntity tag; includes the render version.
Example
"r3-9f2c1a"Caching policy for CloudFront and browsers.
Example
public, max-age=3600, s-maxage=2592000, stale-if-error=604800A per-minute, concurrency, monthly or per-IP limit was hit. Retry-After says when to retry.
RFC 9457 problem details. Every 4xx and 5xx response uses this shape with media type application/problem+json. The type URL opens a documentation page that explains the cause and the fix.
object
URL of the documentation page for this problem type, stable for the life of /v1.
Short summary of the problem type. It does not change between occurrences.
HTTP status code, repeated for clients that lose the status line.
Explanation specific to this occurrence, written for a developer.
Path of the request that failed.
Machine-readable problem code; equals the last path segment of type.
Request id, also sent in X-Request-Id. Quote it in support requests.
Field-level validation failures, present on 400 and 422.
One field-level failure.
object
JSON Pointer (RFC 6901) into the request body, or the query parameter name.
What is wrong with that member.
Seconds until the request can succeed; equals the Retry-After header.
The limit that was hit and the value requested, for example maxWidth and requestedWidth.
object
Units the request would have cost, computed before execution.
OAuth 2.0 error code (RFC 6749 section 5.2). Present only on /oauth/token responses.
OAuth 2.0 error description. Present only on /oauth/token responses.
Copy of detail for openEO clients, which read message. Present only on /v1/openeo routes.
Example
{ "type": "https://docs.satellitedata.net/problems/rate-limited", "title": "Rate limit exceeded", "status": 429, "detail": "This key spent 300 of its 300 units in the current minute.", "instance": "/v1/process", "code": "rate-limited", "requestId": "01JQ7Z3M8R5V2W6X9Y0A1B2C3D", "retryAfter": 17, "limits": { "unitsPerMinute": 300, "unitsSpentThisMinute": 300 }}Headers
Section titled “Headers”Request id for support and logs.
Example
01JQ7Z3M8R5V2W6X9Y0A1B2C3DSeconds to wait before retrying.
Example
17Remaining units and seconds to reset in the current window (IETF RateLimit header draft).
Example
"units";r=287;t=41Quota policy of the caller (IETF RateLimit header draft).
Example
"units";q=300;w=60An unexpected server error. No units are charged.
RFC 9457 problem details. Every 4xx and 5xx response uses this shape with media type application/problem+json. The type URL opens a documentation page that explains the cause and the fix.
object
URL of the documentation page for this problem type, stable for the life of /v1.
Short summary of the problem type. It does not change between occurrences.
HTTP status code, repeated for clients that lose the status line.
Explanation specific to this occurrence, written for a developer.
Path of the request that failed.
Machine-readable problem code; equals the last path segment of type.
Request id, also sent in X-Request-Id. Quote it in support requests.
Field-level validation failures, present on 400 and 422.
One field-level failure.
object
JSON Pointer (RFC 6901) into the request body, or the query parameter name.
What is wrong with that member.
Seconds until the request can succeed; equals the Retry-After header.
The limit that was hit and the value requested, for example maxWidth and requestedWidth.
object
Units the request would have cost, computed before execution.
OAuth 2.0 error code (RFC 6749 section 5.2). Present only on /oauth/token responses.
OAuth 2.0 error description. Present only on /oauth/token responses.
Copy of detail for openEO clients, which read message. Present only on /v1/openeo routes.
Example
{ "type": "https://docs.satellitedata.net/problems/internal", "title": "Internal error", "status": 500, "detail": "The request failed on our side and was logged. No units were charged.", "instance": "/v1/process", "code": "internal", "requestId": "01JQ7Z3M8R5V2W6X9Y0A1B2C3D"}Headers
Section titled “Headers”Request id for support and logs.
Example
01JQ7Z3M8R5V2W6X9Y0A1B2C3D