Data management API

Access data in storage using the API.

Overview

Storage allows you to work with the data delivered as a result of a completed order or processing job.

This API supports the STAC specification.

STAC objects

STAC objectDescriptionAPI object in UP42’s storage
STAC catalogThe starting point for navigating STAC, a top-level landing page that provides a linking structure for grouping other STAC objects. No mapped object inline-icon-large
STAC collectionA STAC object associated with an order that groups related STAC items and aggregates their summary metadata.A group of data items from the same delivery
STAC itemAn individual scene in a STAC collection that has a unique spatiotemporal extent. Different spatiotemporal extents produce different STAC items.Data item
STAC assetA geospatial feature of a STAC item, its mask, preview, or metadata file.Asset
STAC extensionA JSON schema with additional parameters available for a specific STAC object. Extensions differ based on data availability, sensor, and constellation. No mapped object inline-icon-large

STAC landing page

To get information about the version of the API and its extensions, call the Get the data management landing page endpoint.

You’ll get a list of links outlining the specifications the API adheres to, in the conformsTo parameter:

JSON
{
"conformsTo": [
"https://api.stacspec.org/v1.0.0-rc.1/item-search#context",
"http://www.opengis.net/spec/cql2/1.0/conf/cql2-text",
"http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30",
"https://api.stacspec.org/v1.0.0-rc.1/ogcapi-features",
<...>
],
"links": [ <...> ],
"stac_extensions": [],
"title": "UP42 Data Management",
"description": "UP42 Data Management STAC API",
"stac_version": "1.0.0",
"id": "up42-storage",
"type": "Catalog"
}

STAC collections

A STAC collection is a delivery you receive after a completed order or processing job.

A STAC collection contains different storage characteristics, for example, a geospatial collection name, a provider name, and a corresponding UP42 asset ID. An order can produce multiple STAC collections.

  • To get a list of all STAC collections in your storage, call the Get STAC collections endpoint.
  • To get a specific STAC collection, call the Get a STAC collection endpoint with the STAC collection ID as the path parameter.

A STAC collection object contains an assets object, but it’s not a transformed STAC asset. It’s the original delivery that hasn’t been CNAM-transformed:

JSON
{
"assets": {
"68567134-27ad-7bd7-4b65-d61adb11fc78": {
"href": "https://api.sa.up42.com/v2/assets/68567134-27ad-7bd7-4b65-d61adb11fc78",
"title": "Original Delivery",
"description": null,
"type": "application/zip",
"roles": ["data", "original"]
}
},
<...>
}

To delete an existing STAC collection, call the Delete a STAC collection endpoint with the STAC collection ID as the path parameter.

STAC items

A STAC item is an individual scene that represents inseparable data and metadata. A STAC item has a unique spatiotemporal extent, that is, has one AOI and acquisition time in its characteristics.

For example, an order with a stereo acquisition mode will produce a STAC collection with two STAC items — one for each image of a slightly different AOI and acquisition time. Every STAC item is attributed to a STAC collection.

Different spatial extents

Tiled images

Different temporal extents

Images with different acquisition times

Different spatial and temporal extents

Stereo pairs or tri-stereo triples with different angles and acquisition times

To update the title or tags of a STAC item, call the Update a STAC item endpoint with the STAC collection ID and the STAC item ID as path parameters, and the new values in the request body, for example:

JSON
{
"up42-user:title": "SPOT 6/7 NY Central Park",
"up42-user:tags:": ["optical", "berlin"]
}
  • To get a list of all STAC items from a STAC collection, call the Get STAC items endpoint with the STAC collection ID as the path parameter.
  • To get information about a specific STAC item, call the Get a STAC item endpoint with the STAC collection ID and the STAC item ID as path parameters.

To search for STAC items with specific parameters across your storage, create a CQL2 filter and call the Get specific STAC items endpoint with your search parameters in the request body as follows:

  1. Find available parameters by calling the Get data management search parameters endpoint.
  2. In filter.args, use a queryable filter parameter in the nested property field and follow it with a value.
  3. In filter.op, add an operator.

An example of a filter that searches for STAC items with cloud coverage less than 20%:

JSON
{
"filter": {
"op": "<",
"args": [
{
"property": "eo:cloud_cover"
},
20.0
]
}
}

STAC assets

A STAC asset is a geospatial feature of a STAC item. For example, a band in an optical image, a thumbnail, or a metadata file.

The CNAM format transforms an UP42 asset from an order into individual geospatial features available for immediate download. Regardless of provider or delivery format, all order assets that fall within the criteria are transformed into a standard model.

The contents of the assets parameter are different, depending on the type of object:

  • Inside a STAC item object, CNAM-transformed elements are presented as individual STAC assets.
  • Inside a STAC collection object, the order’s original delivery is the only asset. This isn’t a transformed STAC asset.

STAC assets are returned as part of a STAC item response body. You can get STAC assets in one of the following ways:

An example of a STAC asset:

JSON
{
<...>,
"assets": {
"mgag5ui3_img_phr1a_ms_202208080011285_sen_6452562101-2.tiff": {
"href": "https://api.sa.up42.com/v2/assets/e4a15000-890b-445c-82bb-e4364baac40b",
"title": "Multispectral data",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": ["data", "multispectral"],
"gsd": 0.7283,
"eo:bands": [
{
"name": "blue", // The name of the band.
"common_name": "blue", // The name commonly used to refer to the band to make it easier to search for bands.
"center_wavelength": 0.47, // The center wavelength of the band, in micrometers.
"full_width_half_max": 0.07 // The width of the band, as measured at half the maximum transmission, in micrometers.
},
{
"name": "green",
"common_name": "green",
"center_wavelength": 0.47,
"full_width_half_max": 0.07
},
{
"name": "red",
"common_name": "red",
"center_wavelength": 0.665,
"full_width_half_max": 0.038
}
]
}
},
<...>
}

STAC asset roles are used to describe the purpose or function of each asset within a STAC item.

Asset download

Assets are data from completed tasking and catalog orders that you can download.

The following order statuses mean you can download assets from storage:

  • BEING_FULFILLED

    Some order assets might have been delivered.

  • FULFILLED

    All order assets have been delivered.

You can generate a pre-signed URL to download an asset without authentication by calling the Create a download URL endpoint with the asset ID as the path parameter. The generated URL is valid for 5 minutes and can be shared. The URL will have the following format:

JSON
{
"url": "https://storage.googleapis.com/user-storage-interstellar-prod/assets/<...>"
}

Asset streaming

To get a streaming link for transformed assets, use data management API endpoints as follows:

  1. Find a STAC item containing a geospatial feature you want to stream. To search for STAC items with specific parameters across your storage, call the Get specific STAC items endpoint with your search parameters in the request body.

  2. Inside a STAC item, view the assets object:

    JSON
    {
    <...>,
    "type": "FeatureCollection",
    "features": [
    {
    "assets": {
    "aot.tiff": {
    "href": "https://api.sa.up42.com/v2/assets/a0d443a2-41e8-4995-8b54-a5cc4c448227",
    "title": "Aerosol optical thickness",
    "description": null,
    "type": "image/tiff; application=geotiff; profile=cloud-optimized",
    "roles": [
    "data"
    ]
    },
    "b01.tiff": {
    "href": "https://api.sa.up42.com/v2/assets/55434287-31bc-3ad7-1a63-d61aac11ac55",
    "title": "Costal aerosol band",
    "description": null,
    "type": "image/tiff; application=geotiff; profile=cloud-optimized",
    "roles": [
    "data"
    ]
    }
    }
    }
    ],
    <...>
    }
  3. Find the assets you want to stream and extract their IDs from the nested assets.<asset-name>.href parameter. For example:

    Text
    "href": "https://api.sa.up42.com/v2/assets/a0d443a2-41e8-4995-8b54-a5cc4c448227"
    ↓
    Asset ID: a0d443a2-41e8-4995-8b54-a5cc4c448227
  4. To get a streaming link, call the Create a download URL endpoint with the chosen ID as the path parameter. The response will have the following format:

    JSON
    {
    "url": "https://storage.googleapis.com/user-storage-interstellar-prod/assets/<...>"
    }
  5. Paste the streaming link into a third-party application or visualization software — for example, QGIS.

Data roles

RoleDescription
dataA higher-level role for all types of data. The CNAM format transforms all raster assets with the data role into COGs.
multispectralAn asset related to the multispectral band.
panchromaticAn asset related to the panchromatic band.

Metadata roles

RoleDescription
metadataA higher-level role for all types of metadata.
bundleDelivery metadata that contains information about both types of bands, panchromatic and multispectral.
extendedDetailed metadata for multispectral and panchromatic bands.
iso-19115ISO 19115-1:2014 metadata.
licenseAn end-user license agreement (EULA).
lineageProcessing, ground, or strip lineage.
lutA look-up table with rendering of color curves in a reflectance product.
quality-elevationQuality elevation metadata.
stacSTAC-related metadata.
stereoStereo metadata.
tile-infoTiling metadata.
toa-factorsTop-of-atmosphere reflectance metadata.
angleSensor viewing angle model coefficients.
digestDigest metadata.
auxiliaryAuxiliary metadata.

Preview roles

RoleDescription
overviewA preview image of higher resolution than thumbnail.
thumbnailA low-resolution preview image, usually up to 600 × 600 px.
visualA full-resolution version of the data, processed for visual use.

Mask roles

RoleDescription
data-maskA higher-level role for all types of masks. The CNAM format transforms all vector assets with the data-mask role into GeoJSON files.
cloudA cloud mask. If an asset has cloud coverage of 5% or lower, cloud masks won’t be provided.
detector-qualityA quality detector mask.
footprintA footprint.
roiA region of interest mask.
saturationA saturation mask.
technical-indexA technical index mask.
visibilityA visibility mask.
water-maskA water detection mask.
cloud-shadowA cloud shadow detection mask.
snow-iceA snow and ice detection mask.

Other roles

RoleDescription
indexSpectral indexes.
rpcRational polynomial coefficients.
temperatureA surface temperature band.
emissivityAn emissivity band.

STAC extensions

STAC is extensible, being a network of JSON files that follow corresponding specifications. A STAC extension is a JSON schema with additional parameters available for a specific STAC collection or a STAC item.

STAC extensions contain descriptions of parameters with {prefixes}:. UP42 has platform-specific extensions.

UP42 system extension

ParameterDescription
up42-system:account_idstring
The account ID.
up42-system:workspace_idstring
The workspace ID.
up42-system:asset_idstring
The asset ID.
up42-system:source

string
The source of the STAC item. The allowed values:

  • ARCHIVE
  • TASKING
  • PROCESSING
up42-system:job_idstring
The processing job ID.
up42-system:metadata_versionstring
The metadata version.

UP42 product extension

ParameterDescription

up42-product:collection_name

string

The collection name.

up42-product:product_id

string

The data product ID.

up42-product:modality

string

The modality of data that depends on the data type. For example, multispectral or hyperspectral.

UP42 user extension

ParameterDescription
up42-user:tags

string

STAC item tags.

up42-user:title

string

A custom title of the STAC item.

UP42 order extension

ParameterDescription
up42-order:id

string

The order ID.

Earth Search extension

ParameterDescription
earthsearch:boa_offset_applied

boolean

Whether the –0.1 offset was applied to the cloud-optimized GeoTIFF.

Sentinel-2 extension

ParameterDescription
s2:sequence

string

The version number of the data. Values other than 0 mean that this is either a processed version of the STAC item or another image taken for that tile on a given date.

s2:processing_baseline

string

The version of the Ground Image Processing Parameters used by ESA to process the raw Sentinel-2 data into level 1C and level 2A products.

DIMAP extension

ParameterDescription
dimap:source_idstring
The unique code for a specific data acquisition made by Airbus.