Text and/or spatial search for layers across indexed OGC services
GET/layers/search
- Passive: the target is not contacted
- Plan: Startup and up (filters: Professional)
Full-text search over layers with the same syntax as the website (place names, EPSG codes, 'exact phrases', -exclusions). Can be filtered by a point (lat/lon), a bounding box with a spatial relation, service type, global coverage and HTTPS-only services. query is required unless bbox is set. Dataset search is on the Startup plan; point, bounding-box and service-type filters are listed on the Professional plan.
Query parameters
queryFree-text layer search; required unless bbox is set
page_numberPage of results, 1 to 10
page_sizeResults per page, 1 to 20
fieldsComma-separated fields to return (e.g. name, title, abstract, getcapabilities_url, location.country)
latLatitude (WGS84); with lon, only layers whose bounding box contains the point
lonLongitude (WGS84); must be set together with lat
bboxBounding box minx,miny,maxx,maxy in WGS84 decimal degrees
relation_typeSpatial relation to bbox: intersects (default), disjoint, contains or within
service_typeComma-separated service types to search: WMS, WFS, WCS, WMTS
global_layers0 = include global datasets, 1 = only global, 2 = exclude global
only_secureOnly return layers served over HTTPS
Response fields · 13ShowHide
success
Whether the request completed (not whether results were found)
total_results
Total number of results
page_number
Current page
layer_id
16-character layer ID for /layers/{layer_id}
name
Layer name, unique on its service
title
Human-readable title
abstract
Description of the layer
getcapabilities_url
GetCapabilities URL per service type (WMS, WFS, WCS, WMTS)
service_id[]
Services that serve this layer
endpoint_id
Endpoint ID for /endpoints/{endpoint_id}
country[]
Countries the layer's bounding box intersects
bounding_box_geojson
GeoJSON of the layer's bounding box
secure_service
Whether the service is available over HTTPS
curl 'https://api.geoseer.net/v1/layers/search' \
-H 'api-key: YOUR_API_KEY'{
"success": true,
"total_results": 1,
"page_number": 1,
"results": [
{
"layer_id": "a1b2c3d4e5f6g7h8",
"name": "example_rivers",
"title": "Example Rivers",
"abstract": "River centre lines for the example region.",
"layer_keyword_list": [
"rivers",
"hydrography"
],
"srs": [
"EPSG:4326"
],
"getcapabilities_url": {
"WMS": "https://gis.example.org/ows?"
},
"service_id": [
"b2c3d4e5f6g7h8i9"
],
"service_type": [
"WMS"
],
"endpoint_id": "c3d4e5f6g7h8i9j0",
"location": {
"subcontinent": [
"Example Subcontinent"
],
"country": [
"Exampleland"
],
"region": [
"North Example"
],
"county": []
},
"secure_service": true
}
]
}