OGC API - Features is an Open Geospatial Consortium (OGC) standard that provides a modern, RESTful API for accessing vector geospatial features. It is the successor to Web Feature Service (WFS), designed with web developer experience in mind using JSON, OpenAPI, and REST principles.
Key Features
Feature
Description
RESTful
Standard HTTP methods and URLs
JSON Native
GeoJSON as default output
OpenAPI
Self-documenting API specification
Pagination
Built-in result paging
Filtering
CQL2 query language
CORS Friendly
Works in browsers
Comparison with WFS
Aspect
OGC API - Features
WFS
Protocol
REST
SOAP/XML-RPC
Output
GeoJSON
GML (XML)
Documentation
OpenAPI
GetCapabilities
Queries
CQL2, bbox
Filter Encoding (XML)
Developer UX
Modern
Legacy
Endpoints
Endpoint
Description
/
Landing page
/conformance
Supported conformance classes
/collections
List of available collections
/collections/{id}
Collection metadata
/collections/{id}/items
Features in collection
/collections/{id}/items/{featureId}
Single feature
Query Parameters
Parameter
Description
Example
limit
Max features to return
?limit=100
offset
Starting position
?offset=100
bbox
Bounding box filter
?bbox=-122.5,37.7,-122.3,37.9
datetime
Temporal filter
?datetime=2024-01-01/2024-12-31
filter
CQL2 filter expression
?filter=area>10000
filter-lang
Filter language
?filter-lang=cql2-text
Example Requests
Get Collections
GET /collections HTTP/1.1Accept: application/json
Get Features with Bbox
GET /collections/parcels/items?bbox=-122.5,37.7,-122.3,37.9&limit=100 HTTP/1.1Accept: application/geo+json
Get Single Feature
GET /collections/parcels/items/12345 HTTP/1.1Accept: application/geo+json
Filter with CQL2
GET /collections/parcels/items?filter=area>10000 AND owner LIKE 'Smith%' HTTP/1.1Accept: application/geo+json