Search Datasets Endpoint
GET
/search/datasets/
const url = 'https://example.com/api/search/datasets/?sort_by=relevance&offset=0&limit=10&cql2_filter_lang=cql2-text&exclude_synthetic=true&spatial_predicate=intersects';const options = { method: 'GET', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '["example"]'};
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/api/search/datasets/?sort_by=relevance&offset=0&limit=10&cql2_filter_lang=cql2-text&exclude_synthetic=true&spatial_predicate=intersects' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '[ "example" ]'Search datasets with text, spatial, and faceted filters.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” sort_by
Sort By
string
offset
Offset
integer
limit
Limit
integer
cql2_filter_lang
Cql2 Filter Lang
string
exclude_synthetic
Exclude Synthetic
boolean
spatial_predicate
Spatial Predicate
string
Request Body
Section titled “Request Body ” Media type application/json
Responses
Section titled “ Responses ”Successful Response
Media type application/json
OGCFeatureCollectionResponse
OGC API Records FeatureCollection with match counts.
object
type
Type
string
numberMatched
required
Numbermatched
Total records matching the query
integer
numberReturned
required
Numberreturned
Number of records in this response page
integer
features
required
Features
Array<object>
OGCRecordResponseSingle OGC API Records Feature.
object
type
Type
string
id
required
Id
string
conformsTo
Any of:
Array<string>
null
properties
required
OGCRecordProperties
Properties block of an OGC API Records Feature.
object
type
Type
string
title
required
Title
string
keywords
Any of:
Array<string>
null
never_edited
Never Edited
boolean
record_type
Record Type
string
formats
Any of:
Array<string>
null
themes
Any of:
Array<object>
object
key
additional properties
any
null
contacts
Any of:
Array<object>
object
key
additional properties
any
null
distributions
Any of:
Array<object>
object
key
additional properties
any
null
has_quicklook
Has Quicklook
boolean
links
required
Links
Array<object>
OGCRecordLinkLink object in OGC API Records.
object
rel
required
Rel
string
href
required
Href
string
type
required
Type
string
assets
bbox
Any of:
Array<number>
null
links
Any of:
Array<object>
OGCRecordLinkLink object in OGC API Records.
object
rel
required
Rel
string
href
required
Href
string
type
required
Type
string
null
Example
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "type": "dataset", "never_edited": false, "record_type": "vector_dataset", "has_quicklook": false } } ]}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}