Search Datasets Endpoint
GET
/search/datasets/
const url = 'https://example.com/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: {'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/search/datasets/?sort_by=relevance&offset=0&limit=10&cql2_filter_lang=cql2-text&exclude_synthetic=true&spatial_predicate=intersects' \ --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
features
required
Features
Array<object>
OGCRecordResponseSingle OGC API Records Feature.
object
assets
bbox
Any of:
Array<number>
null
conformsTo
Any of:
Array<string>
null
id
required
Id
string
links
required
Links
Array<object>
OGCRecordLinkLink object in OGC API Records.
object
href
required
Href
string
rel
required
Rel
string
type
required
Type
string
properties
required
OGCRecordProperties
Properties block of an OGC API Records Feature.
object
contacts
required
Contacts
Array<object>
object
key
additional properties
any
description
required
Description
string
distributions
Any of:
Array<object>
object
key
additional properties
any
null
externalIds
Externalids
Identifiers assigned by the described resource’s source system.
Array<string>
formats
Any of:
Array<string>
null
has_quicklook
Has Quicklook
boolean
keywords
required
Keywords
Array<string>
license
required
License
string
never_edited
Never Edited
boolean
record_type
Record Type
string
themes
required
Themes
Array<object>
object
key
additional properties
any
time
required
Time
object
key
additional properties
any
title
required
Title
string
type
Type
string
time
required
Time
object
key
additional properties
any
type
Type
string
links
Any of:
Array<object>
OGCRecordLinkLink object in OGC API Records.
object
href
required
Href
string
rel
required
Rel
string
type
required
Type
string
null
numberMatched
required
Numbermatched
Total records matching the query
integer
numberReturned
required
Numberreturned
Number of records in this response page
integer
type
Type
string
Example
{ "features": [ { "properties": { "has_quicklook": false, "never_edited": false, "record_type": "vector_dataset", "type": "dataset" }, "type": "Feature" } ], "type": "FeatureCollection"}Bad request — invalid query parameters or payload
Media type application/problem+json
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}Too many requests — retry after the advertised interval
Media type application/problem+json
Headers
Section titled “Headers ” Retry-After
integer
Seconds until the request may be retried
Internal server error
Media type application/problem+json
Service unavailable — the database could not serve the request
Media type application/problem+json