Search Post
const url = 'https://example.com/stac/search';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"bbox":[-77.2,38.7,-76.8,39.1],"collections":["geolens-unassigned"],"limit":25}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/stac/search \ --header 'Content-Type: application/json' \ --data '{ "bbox": [ -77.2, 38.7, -76.8, 39.1 ], "collections": [ "geolens-unassigned" ], "limit": 25 }'STAC Item Search (POST with JSON body).
Authorizations
Section titled “ Authorizations ”Request Bodyrequired
Section titled “ Request Bodyrequired ”JSON body for POST /search.
object
Maximum number of items returned. Values above 200 are clamped to 200.
Number of items to skip for pagination.
Responses
Section titled “ Responses ”Successful Response
Typed OpenAPI representation of a STAC ItemCollection.
object
A GeoJSON Feature conforming to the STAC Item specification.
object
STAC specification version.
STAC extension schema URIs in use.
Stable item identifier.
A GeoJSON GeometryCollection (RFC 7946 §3.1.8).
Geometry collections carry geometries instead of coordinates.
Only generic-geometry datasets accept them on write.
Nested collections are rejected because PostGIS cannot round-trip them through the GeoJSON boundary.
object
A GeoJSON geometry object (RFC 7946).
object
A GeoJSON geometry object (RFC 7946).
object
Core STAC Item properties plus extension-defined fields.
object
A STAC asset attached to an Item.
Paging metadata emitted with STAC ItemCollections.
object
Example
{ "context": { "limit": 10, "matched": 0, "returned": 0 }, "features": [], "links": [], "numberMatched": 0, "numberReturned": 0, "type": "FeatureCollection"}Bad request — invalid query parameters or payload
Unauthenticated — a credential was supplied and could not be resolved (expired, revoked, or malformed). Sending no credential at all is not an error on these operations; they answer anonymously with the public subset.
Not found
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request