Skip to content
getgeolens.com

Stac Collections

POST
/services/stac/collections
curl --request POST \
--url https://example.com/api/services/stac/collections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "example" }'

List collections from a connected STAC API.

Media type application/json
StacConnectRequest
object
url
required
Url

STAC API root URL to connect to.

string
>= 1 characters <= 2048 characters
Example generated
{
"url": "example"
}

Successful Response

Media type application/json
StacCollectionsResponse
object
url
required
Url

STAC API URL that was queried.

string
collections
required
Collections

Available collections.

Array<object>
StacCollectionSummary
object
id
required
Id

Collection identifier.

string
title
required
Title

Collection title.

string
description
required
Description

Collection description.

string
license
Any of:
string
keywords
Keywords

Collection keywords.

Array<string>
default:
bbox
Any of:
Array<number>
temporal_start
Any of:
string
temporal_end
Any of:
string
item_count
Any of:
integer
Example
{
"collections": [
{
"keywords": []
}
]
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}