v32

latestOpenAPI 3.0.3raw.githubusercontent.com2024-03-0197673.7 KB
STAC

Search STAC items with simple filtering.

Retrieve Items matching filters. Intended as a shorthand API for simple queries.

get/search

Query parameters

bboxnumber[]

The bounding box is provided as four numbers:

  • Lower left corner, coordinate axis 1
  • Lower left corner, coordinate axis 2
  • Upper right corner, coordinate axis 1
  • Upper right corner, coordinate axis 2

The coordinate reference system of the values is WGS84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84).

For WGS84 longitude/latitude the values are in most cases the sequence of minimum longitude, minimum latitude, maximum longitude and maximum latitude. However, in cases where the box spans the antimeridian the first value (west-most box edge) is larger than the third value (east-most box edge).

Example: The bounding box of Switzerland in WGS 84 (from 5.96°E to 10.49°E and from 45.82°N to 47.81°N) would be represented in JSON as [5.96, 45.82, 10.49, 47.81] and in a query as bbox=5.96,45.82,10.49,47.81."

[
  7.0906249,
  45.9160584,
  7.1035698,
  45.925093
]
datetimestring

Either a date-time or an interval, open or closed. Date and time expressions adhere to RFC 3339. Open intervals are expressed using double-dots. Examples:

  • A date-time: "2018-02-12T23:20:50Z"
  • A closed interval: "2018-02-12T00:00:00Z/2018-03-18T12:31:12Z"
  • Open intervals: "2018-02-12T00:00:00Z/.." or "../2018-03-18T12:31:12Z"

Only features that have a temporal property that intersects the value of datetime are selected.

When used as URL query argument, the value must be correctly url-encoded.

Example:2018-02-12T00:00:00Z/2018-03-18T12:31:12Z
limitinteger

The limit parameter limits the number of results that are included in the response.

To retrieve the next bunch of result, use the next link in the links section of the response.

Minimum = 1. Maximum = 100. Default = 100.

Example:20
idsstring[]

Array of Item ids to return. All other filter parameters that further restrict the number of search results are ignored

Array of Item ids to return. All other filter parameters that further restrict the number of search results are ignored

collectionsstring[]

Array of Collection IDs to include in the search for items. Only Items in one of the provided Collections will be searched.

Response

A feature collection.

type'FeatureCollection' required

Example response

{
  "features": [
    {
      "id": "smr200-200-4-2019",
      "links": [
        {
          "href": "https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/items/smr50-263-2016",
          "rel": "self"
        },
        {
          "href": "https://data.geo.admin.ch/api/stac/v0.9/",
          "rel": "root"
        },
        {
          "href": "https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale",
          "rel": "parent"
        },
        {
          "href": "https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale",
          "rel": "collection"
        }
      ],
      "assets": {
        "smr50-263-2016-2056-kgrs-2.5.tiff": {
          "checksum:multihash": "12200ADEC47F803A8CF1055ED36750B3BA573C79A3AF7DA6D6F5A2AED03EA16AF3BC",
          "created": "2020-07-14T12:30:00Z",
          "eo:gsd": 2.5,
          "geoadmin:variant": "kgrs",
          "href": "https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-kgrs-2.5.tiff",
          "proj:epsg": 2056,
          "type": "image/tiff; application=geotiff",
          "updated": "2020-07-14T12:30:00Z"
        },
        "smr50-263-2016-2056-komb-2.5.tiff": {
          "checksum:multihash": "12200ADEC47F803A8CF1055ED36750B3BA573C79A3AF7DA6D6F5A2AED03EA16AF3BC",
          "created": "2020-07-14T12:30:00Z",
          "eo:gsd": 2.5,
          "geoadmin:variant": "komb",
          "href": "https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-komb-2.5.tiff",
          "proj:epsg": "2056",
          "type": "image/tiff; application=geotiff",
          "updated": "2020-07-14T12:30:00Z"
        },
        "smr50-263-2016-2056-krel-2.5.tiff": {
          "checksum:multihash": "12200ADEC47F803A8CF1055ED36750B3BA573C79A3AF7DA6D6F5A2AED03EA16AF3BC",
          "created": "2020-07-14T12:30:00Z",
          "eo:gsd": 2.5,
          "geoadmin:variant": "krel",
          "href": "https://data.geo.admin.ch/ch.swisstopo.pixelkarte-farbe-pk50.noscale/smr50-263-2016-2056-krel-2.5.tiff",
          "proj:epsg": "2056",
          "type": "image/tiff; application=geotiff",
          "updated": "2020-07-14T12:30:00Z"
        }
      },
      "bbox": [
        7.0906249,
        45.9160584,
        7.1035698,
        45.925093
      ],
      "geometry": {
        "coordinates": [
          [
            [
              7.0906823,
              45.9160584
            ],
            [
              7.1035698,
              45.9160977
            ],
            [
              7.1035146,
              45.925093
            ],
            [
              7.0906249,
              45.9250537
            ],
            [
              7.0906823,
              45.9160584
            ]
          ]
        ]
      },
      "properties": {
        "created": "2018-02-12T23:20:50Z",
        "datetime": "2018-02-12T23:20:50Z",
        "start_datetime": "2018-02-12T23:20:50Z",
        "end_datetime": "2018-02-12T23:20:50Z",
        "updated": "2018-02-12T23:20:50Z",
        "title": "Feature title"
      },
      "stac_version": "0.9.0"
    }
  ],
  "links": [
    {
      "href": "https://data.geo.admin.ch/api/stac/v0.9/search",
      "rel": "self"
    },
    {
      "href": "https://data.geo.admin.ch/api/stac/v0.9/search?cursor=10ab",
      "rel": "next"
    }
  ]
}