Media API#
Served by: GeoNeMo Toolkit API, GeoNeMo sentinel part API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
Download record media |
|
|
Get georeferenced window |
|
|
Get media histogram |
|
|
Inspect record media |
|
|
Get L1B ortho window |
|
|
Get L1B ortho grid |
|
|
Preview L1B ortho window |
|
|
Get media pixel |
|
|
Preview record media |
|
|
Get product manifest |
|
|
Get record media tile |
GET /v1/media/records/{collection}/{record_id}/download#
Download record media
Returns a record’s source media file. A Range header returns partial content (206).
Operation:
downloadCatalogMediaAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/download" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
string or null |
||
|
header |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Bounded catalog-owned media bytes. |
string (binary); string (binary); string (binary); string (binary); string (binary); string (binary) |
|
Bounded catalog-owned media bytes. |
string (binary); string (binary); string (binary); string (binary); string (binary); string (binary) |
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/georeferenced-window#
Get georeferenced window
Returns a GeoTIFF of an image window (x, y, width, height, each up to 4096) resampled to the requested output size. Returns 422 when the media cannot be georeferenced.
Operation:
getCatalogMediaGeoreferencedWindowAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/georeferenced-window" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
string or null |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Bounded catalog-owned media bytes. |
string (binary) |
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/histogram#
Get media histogram
Returns a histogram of native pixel values with bins buckets (2 to 256, default 64) for the selected bands.
Operation:
getCatalogMediaHistogramAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/histogram" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
integer |
||
|
query |
string or null |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/inspect#
Inspect record media
Describes a catalog record’s image: dimensions, bands and georeferencing support. asset selects one asset of the record.
Operation:
inspectCatalogMediaAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/inspect" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/l1b-ortho#
Get L1B ortho window
Orthorectify and correct one window of the granule, as a float32 GeoTIFF.
Without a window, the whole prepared grid. reduce averages the valid pixels of each reduce x reduce block, for a coarser grid. Values are surface reflectance * 10000; zero marks pixels without a valid source contributor. Nothing is stored.
Operation:
getL1bOrthoWindowAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/l1b-ortho" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
string or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Surface reflectance computed on request from the granule. |
string (binary) |
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/l1b-ortho/grid#
Get L1B ortho grid
Describe the 10 m grid and bands an L1B record’s ortho product is computed on.
Operation:
getL1bOrthoGridAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/l1b-ortho/grid" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/l1b-ortho/preview#
Preview L1B ortho window
A true-color (B04, B03, B02) or chosen up-to-three-band JPEG of a window.
Operation:
getL1bOrthoPreviewAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/l1b-ortho/preview" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
string or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer or null |
||
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
A stretched preview computed on request from the granule. |
string (binary) |
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/pixel#
Get media pixel
Returns the pixel value at image coordinates x and y. Returns 422 when the record needs georeferencing that is unsupported.
Operation:
getCatalogMediaPixelAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/pixel" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
integer |
yes |
|
|
query |
integer |
yes |
|
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/preview#
Preview record media
Renders a JPEG preview of a record’s image, scaled within max_width and max_height (32 to 2048), with optional bands and stretch.
Operation:
previewCatalogMediaAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/preview" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
integer |
||
|
query |
integer |
||
|
query |
string or null |
||
|
query |
string |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Bounded catalog-owned media bytes. |
string (binary) |
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/product-manifest#
Get product manifest
Return one deterministic page of checksum-bound SAFE product members.
Operation:
getCatalogProductManifestAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/product-manifest" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
query |
integer |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/media/records/{collection}/{record_id}/tiles/{z}/{x}/{y}#
Get record media tile
Renders one PNG map tile at zoom z, column x and row y. Returns 404 when the zoom is beyond the image’s levels.
Operation:
tileCatalogMediaAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/media/records/<collection>/<record_id>/tiles/<z>/<x>/<y>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
path |
integer |
yes |
The tile zoom level. |
|
path |
integer |
yes |
The tile column. |
|
path |
integer |
yes |
The tile row. |
|
query |
string or null |
||
|
query |
string |
||
|
query |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Bounded catalog-owned media bytes. |
string (binary) |
|
Validation Error |