Skip to content
getgeolens.com

Get Item

GET
/stac/items/{item_id}
curl --request GET \
--url https://example.com/stac/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Get a single STAC Item by dataset ID.

item_id
required
Item Id
string format: uuid

Successful Response

Media type application/geo+json
StacItemResponse

A GeoJSON Feature conforming to the STAC Item specification.

object
assets
required
Assets
object
key
additional properties
StacItemAsset

A STAC asset attached to an Item.

object
description
Any of:
string
href
required
Href

URL of the asset resource.

string
roles
Any of:
Array<string>
title
Any of:
string
type
Any of:
string
key
additional properties
any
bbox
Any of:
array
>= 4 items <= 4 items
collection
Any of:
string
geometry
required
Any of:
GeoJSONGeometryCollection

A GeoJSON GeometryCollection (RFC 7946 §3.1.8).

fix(#430 codex r9): carries geometries instead of coordinates, so it needs its own model — only generic-GEOMETRY datasets accept it on write (enforced in the service), and any stored collection must serialize back out on read.

Deliberately NON-recursive (codex r13, refuted): PostGIS cannot round-trip nested collections through the GeoJSON boundary in either direction — ST_GeomFromGeoJSON rejects them on write and ST_AsGeoJSON raises ‘GeoJson: geometry not supported’ on read — so a recursive model could never receive one and would only convert the write-side 422 into a raw database 500. The write schemas add a raw-payload guard for a clear 422.

object
geometries
required
Geometries
Array<object>
GeoJSONGeometry

A GeoJSON geometry object (RFC 7946).

object
coordinates
required
Coordinates
Array
type
required
Type
string
Allowed values: Point MultiPoint LineString MultiLineString Polygon MultiPolygon
type
required
Type
string
Allowed value: GeometryCollection
id
required
Id

Stable item identifier.

string
links
required
Links
Array<object>
StacLink

A single STAC link object.

object
href
required
Href

Target URL of the link.

string
method
Any of:
string
rel
required
Rel

Link relation type (e.g. ‘self’, ‘root’, ‘parent’, ‘item’, ‘data’).

string
type
Any of:
string
properties
required
StacItemProperties

Core STAC Item properties plus extension-defined fields.

object
datetime
required
Any of:
string
description
Any of:
string
end_datetime
Any of:
string
start_datetime
Any of:
string
title
Any of:
string
key
additional properties
any
stac_extensions
Stac Extensions

STAC extension schema URIs in use.

Array<string>
stac_version
required
Stac Version

STAC specification version.

string
type
Type
string
default: Feature
Allowed value: Feature
key
additional properties
any
Example
{
"assets": {},
"collection": "geolens-unassigned",
"id": "0190f4c8-8c6a-7a21-9a34-13bc2f31dc02",
"links": [],
"properties": {
"datetime": "2026-01-15T00:00:00Z"
},
"stac_version": "1.0.0",
"type": "Feature"
}

Bad request — invalid standards parameters

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Not found

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}