Skip to content
getgeolens.com

List Collections

GET
/collections
curl --request GET \
--url 'https://example.com/api/collections?offset=0&limit=50' \
--header 'Authorization: Bearer <token>'

List available OGC collections (catalog + per-dataset feature collections).

offset
Offset

Pagination offset for per-dataset collections

integer
0

Pagination offset for per-dataset collections

limit
Limit

Max per-dataset collections to return

integer
default: 50 >= 1 <= 200

Max per-dataset collections to return

Successful Response

Media type application/json
OGCCollectionsResponse

Response for /collections listing all available OGC collections.

object
collections
required
Collections
Array<object>
object
key
additional properties
any
links
Links
Array<object>
default:
OGCRecordLink

Link object in OGC API Records.

object
rel
required
Rel
string
href
required
Href
string
type
required
Type
string
Example
{
"links": []
}

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": {}
}
]
}