---
title: "Fetch sortable fields for /search"
method: GET
path: "/sortables"
tags: ["Sort Extension"]
---

# Fetch sortable fields for /search

`GET /sortables`

## Request

- Base URL: `https://data.geo.admin.ch/api/stac/v1`
- URL: `https://data.geo.admin.ch/api/stac/v1/sortables`
- Auth: none declared

This endpoint returns a list of properties (or aliases) that can be used in the `sortby` parameter for the cross-collection item search (i.e. `GET /search` and `POST /search`). It returns a JSON Schema that defines the properties allowed in `sortby`. The precise definition of this can be found in the [OGC API - Features - Part 5: Schemas](https://docs.ogc.org/is/23-058r2/23-058r2.html).

## Response `200`

A JSON Schema defining the properties allowed in `sortby`.

- SortablesGlobal: A JSON Schema describing the fields that can be used with the `sortby` parameter.
  - `$schema` 'https://json-schema.org/draft/2020-12/schema', url, required
  - `$id` string, url, required
  - `title` string
  - `type` 'object', required
  - `properties` object, required
    - `id` object
      - `type` string
    - `collection` object
      - `type` string
    - `properties.datetime` object
      - `type` string
      - `format` string
    - `properties.title` object
      - `type` string
    - `properties.created` object
      - `type` string
      - `format` string
    - `properties.updated` object
      - `type` string
      - `format` string
  - `additionalProperties` boolean: If `additionalProperties` is not included, any property name is valid in a sorting expression on the collection that is evaluated by the server and the property reference SHALL evaluate to `null`, if the property does not exist for a resource. If `additionalProperties` is set to `false`, property references that are not explicitly declared in the sortables schema SHALL result in a 400 response.

## Other responses

- `500`: The request was syntactically and semantically valid, but an error occurred while trying to act upon it

## Changes

> 52 revisions in range; 2 not diffed.

- **2026-10-28** (v1) `e85487fdf6fe`: 4 warning, 4 info
  - removed the optional property `properties/created` from the response with the `200` status
  - removed the optional property `properties/datetime` from the response with the `200` status
  - removed the optional property `properties/title` from the response with the `200` status
  - removed the optional property `properties/updated` from the response with the `200` status
  - …4 more
- **2026-09-14** (v1) `7f8acfd3ece9`: 4 warning, 4 info
  - removed the optional property `properties/properties.created` from the response with the `200` status
  - removed the optional property `properties/properties.datetime` from the response with the `200` status
  - removed the optional property `properties/properties.title` from the response with the `200` status
  - removed the optional property `properties/properties.updated` from the response with the `200` status
  - …4 more
- **2026-09-14** (v1) `84c6b07189d4`: 4 warning, 4 info
  - removed the optional property `properties/created` from the response with the `200` status
  - removed the optional property `properties/datetime` from the response with the `200` status
  - removed the optional property `properties/title` from the response with the `200` status
  - removed the optional property `properties/updated` from the response with the `200` status
  - …4 more
- **2026-09-14** (v1) `7cbc3c08a320`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/geoadmin/apis/the-spatiotemporal-asset-catalog-api-for-data-geo-admin-ch-4/changes/sortables/get.md)

---

[API](https://skmtc.dev/geoadmin/apis/the-spatiotemporal-asset-catalog-api-for-data-geo-admin-ch-4.md) - [All operations](https://skmtc.dev/geoadmin/apis/the-spatiotemporal-asset-catalog-api-for-data-geo-admin-ch-4/llms.txt) - [OpenAPI document](https://skmtc.dev/geoadmin/apis/the-spatiotemporal-asset-catalog-api-for-data-geo-admin-ch-4/revisions/7daf12dad620?raw)
