Get Collection Item Feature
const url = 'https://example.com/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items/1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items/1OGC API Features single feature endpoint – returns a GeoJSON Feature.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ”Responses
Section titled “ Responses ”Successful Response
Single GeoJSON Feature response.
object
GeoJSON object type.
Feature identifier within the collection.
A GeoJSON geometry object (RFC 7946).
object
Self-reference and related-resource links.
object
Target URL of the link.
Link relation type per RFC 8288 (e.g. ‘self’, ‘next’, ‘prev’, ‘data’, ‘collection’).
Media type of the linked resource (e.g. ‘application/json’, ‘application/geo+json’).
Example
{ "type": "Feature", "geometry": { "type": "Point" }, "links": []}Example generated
exampleDataset table is cold and being rehydrated (multi-tenant); poll the job and retry.
object
Example generated
{ "status": "example", "job_id": "example"}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