Search Facets Endpoint
const url = 'https://example.com/search/facets/?exclude_synthetic=true&spatial_predicate=intersects';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/search/facets/?exclude_synthetic=true&spatial_predicate=intersects'Return record_type facet counts for the given filters.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Exclude synthetic/test datasets
Exclude synthetic/test datasets
Spatial predicate: intersects or within
Spatial predicate: intersects or within
Responses
Section titled “ Responses ”Successful Response
Multi-group facet counts for the search sidebar.
object
Hit counts keyed by record type
object
Top keyword tags with counts
A single facet value with count.
object
Top organizations with counts
A single facet value with count.
object
Top SRIDs with counts
A single facet value with count.
object
Collections containing matched records
A collection facet entry.
object
Example
{ "keywords": [], "source_organization": [], "srid": [], "collections": []}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. Neither is sending an unresolvable credential alongside a capability that authorizes the request on its own — a valid X-Embed-Token or a valid signed tile template (sig, exp, scope). Those are served and the unrelated credential is ignored.
Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}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