Media API#

Served by: GeoNeMo Toolkit API, GeoNeMo sentinel part API. Schemas are on the schemas page.

Method

Path

Summary

GET

/v1/media/records/{collection}/{record_id}/download

Download record media

GET

/v1/media/records/{collection}/{record_id}/georeferenced-window

Get georeferenced window

GET

/v1/media/records/{collection}/{record_id}/histogram

Get media histogram

GET

/v1/media/records/{collection}/{record_id}/inspect

Inspect record media

GET

/v1/media/records/{collection}/{record_id}/l1b-ortho

Get L1B ortho window

GET

/v1/media/records/{collection}/{record_id}/l1b-ortho/grid

Get L1B ortho grid

GET

/v1/media/records/{collection}/{record_id}/l1b-ortho/preview

Preview L1B ortho window

GET

/v1/media/records/{collection}/{record_id}/pixel

Get media pixel

GET

/v1/media/records/{collection}/{record_id}/preview

Preview record media

GET

/v1/media/records/{collection}/{record_id}/product-manifest

Get product manifest

GET

/v1/media/records/{collection}/{record_id}/tiles/{z}/{x}/{y}

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: downloadCatalogMedia

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

asset

query

string or null

Range

header

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

Bounded catalog-owned media bytes.

string (binary); string (binary); string (binary); string (binary); string (binary); string (binary)

206

Bounded catalog-owned media bytes.

string (binary); string (binary); string (binary); string (binary); string (binary); string (binary)

422

Validation Error

HTTPValidationError

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: getCatalogMediaGeoreferencedWindow

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

x

query

integer

yes

y

query

integer

yes

width

query

integer

yes

height

query

integer

yes

output_width

query

integer

yes

output_height

query

integer

yes

bands

query

string or null

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

Bounded catalog-owned media bytes.

string (binary)

422

Validation Error

HTTPValidationError

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: getCatalogMediaHistogram

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

bins

query

integer

bands

query

string or null

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

MediaHistogram

422

Validation Error

HTTPValidationError

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: inspectCatalogMedia

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

MediaInspection

422

Validation Error

HTTPValidationError

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: getL1bOrthoWindow

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

bands

query

string or null

x

query

integer or null

y

query

integer or null

width

query

integer or null

height

query

integer or null

reduce

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

Surface reflectance computed on request from the granule.

string (binary)

422

Validation Error

HTTPValidationError

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: getL1bOrthoGrid

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

L1bOrthoGrid

422

Validation Error

HTTPValidationError

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: getL1bOrthoPreview

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

bands

query

string or null

x

query

integer or null

y

query

integer or null

width

query

integer or null

height

query

integer or null

max_width

query

integer

max_height

query

integer

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

A stretched preview computed on request from the granule.

string (binary)

422

Validation Error

HTTPValidationError

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: getCatalogMediaPixel

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

x

query

integer

yes

y

query

integer

yes

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

MediaPixel

422

Validation Error

HTTPValidationError

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: previewCatalogMedia

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

max_width

query

integer

max_height

query

integer

bands

query

string or null

stretch

query

string

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

Bounded catalog-owned media bytes.

string (binary)

422

Validation Error

HTTPValidationError

GET /v1/media/records/{collection}/{record_id}/product-manifest#

Get product manifest

Return one deterministic page of checksum-bound SAFE product members.

  • Operation: getCatalogProductManifest

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

limit

query

integer

cursor

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

ProductManifestPage

422

Validation Error

HTTPValidationError

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: tileCatalogMedia

  • Access: 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

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

z

path

integer

yes

The tile zoom level.

x

path

integer

yes

The tile column.

y

path

integer

yes

The tile row.

bands

query

string or null

stretch

query

string

asset

query

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

Bounded catalog-owned media bytes.

string (binary)

422

Validation Error

HTTPValidationError