- Development
- CMS Developer Docs
- Get all items (GeoJSON)
Get all items (GeoJSON)
GET /{model}.geojson
Returns all published items from the specified model by default, and returns a paginated page response when pagination parameters are provided (GeoJSON endpoint). Requires the model to have a Geometry type field defined. Uses the first (based on the order) Geometry type field in the model schema fields.
Authorizations
Section titled “Authorizations ”- None
- apiKey
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Model ID or key
Query Parameters
Section titled “Query Parameters ”Page number for page-based pagination. Values of 0 or less are treated as 1.
Ignored if start_cursor or offset is also provided
(pagination mode precedence: start_cursor > offset > page).
Number of items per page. Applies to all pagination modes (page, offset, and cursor).
Also accepted under the aliases perPage, per_page, page_size, and pageSize;
if several are provided, they are checked in that order of precedence, starting with limit.
Values above 100 are clamped to 100; values of 0 or less fall back to the default of 50.
Number of items to skip (offset-based pagination).
Takes precedence over page; ignored if start_cursor is also provided.
Cursor for cursor-based pagination.
Takes precedence over offset and page when provided.
Responses
Section titled “ Responses ”Successful response
object
Example
FeatureCollectionobject
API key is invalid
Model not found or not public