Skip to content
getgeolens.com

Search Datasets Endpoint

GET
/search/datasets/
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.

q
Any of:
string
<= 1000 characters
bbox
Any of:
string
geometry_type
Any of:
string
srid
Any of:
integer
source_organization
Any of:
string
record_type
Any of:
string
date_from
Any of:
string format: date
date_to
Any of:
string format: date
vintage_start
Any of:
string format: date
vintage_end
Any of:
string format: date
sort_by
Sort By
string
default: relevance
sort_desc
Any of:
boolean
offset
Offset
integer
0
limit
Limit
integer
default: 10 >= 1 <= 200
filter
Any of:
string
<= 10000 characters
cql2_filter_lang
Cql2 Filter Lang
string
default: cql2-text
datetime
Any of:
string
exclude_synthetic
Exclude Synthetic
boolean
default: true
spatial_predicate
Spatial Predicate
string
default: intersects
Allowed values: intersects within
geometry
Any of:
string
<= 50000 characters
collection_id
Any of:
string format: uuid
Media type application/json
Any of:
Array<string>
Example generated
[
"example"
]

Successful Response

Media type application/json
OGCFeatureCollectionResponse

OGC API Records FeatureCollection with match counts.

object
type
Type
string
default: FeatureCollection
timeStamp
Any of:
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>
OGCRecordResponse

Single OGC API Records Feature.

object
type
Type
string
default: Feature
id
required
Id
string
conformsTo
Any of:
Array<string>
time
Any of:
object
key
additional properties
any
geometry
Any of:
object
key
additional properties
any
properties
required
OGCRecordProperties

Properties block of an OGC API Records Feature.

object
type
Type
string
default: dataset
title
required
Title
string
description
Any of:
string
keywords
Any of:
Array<string>
created
Any of:
string format: date-time
updated
Any of:
string format: date-time
updated_by_display
Any of:
string
never_edited
Never Edited
boolean
crs
Any of:
string
record_type
Record Type
string
default: vector_dataset
band_count
Any of:
integer
geometry_type
Any of:
string
feature_count
Any of:
integer
row_count
Any of:
integer
column_count
Any of:
integer
license
Any of:
string
source_organization
Any of:
string
quality_detail
Any of:
object
key
additional properties
any
quality_statement
Any of:
string
formats
Any of:
Array<string>
language
Any of:
string
themes
Any of:
Array<object>
object
key
additional properties
any
rights
Any of:
string
contacts
Any of:
Array<object>
object
key
additional properties
any
time
Any of:
object
key
additional properties
any
lineage
Any of:
string
update_frequency
Any of:
string
constraints
Any of:
object
key
additional properties
any
distributions
Any of:
Array<object>
object
key
additional properties
any
record_status
Any of:
string
has_quicklook
Has Quicklook
boolean
gsd
Any of:
number
vrt_type
Any of:
string
source_count
Any of:
integer
dataset_count
Any of:
integer
links
required
Links
Array<object>
OGCRecordLink

Link object in OGC API Records.

object
rel
required
Rel
string
href
required
Href
string
type
required
Type
string
assets
Any of:
object
key
additional properties
OGCAsset

STAC-style asset entry for an OGC Record.

object
href
required
Href
string
type
required
Type
string
title
Any of:
string
roles
Any of:
Array<string>
bbox
Any of:
Array<number>
links
Any of:
Array<object>
OGCRecordLink

Link object in OGC API Records.

object
rel
required
Rel
string
href
required
Href
string
type
required
Type
string
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>
ValidationError
object
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": {}
}
]
}