---
title: "Search all items"
method: POST
path: "/v0/archives/search"
tags: ["Archives"]
---

# Search all items

`POST /v0/archives/search`

Search for STAC items according to attributes of the item

## Request body

- CosmosSearch
  - `bbox` number[] — Only features that have a geometry that intersects the bounding box are selected. 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) unless a different coordinate reference system is specified in the parameter bbox-crs. 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). If a feature has multiple spatial geometry properties, it is the decision of the server whether only a single spatial geometry property is used to determine the extent or all relevant geometries. Example: The bounding box of the New Zealand Exclusive Economic Zone in WGS 84 (from 160.6°E to 170°W and from 55.95°S to 25.89°S) would be represented in JSON as [160.6, -55.95, -170, -25.89] and in a query as bbox=160.6,-55.95,-170,-25.89
  - `collections` string[] — Array of Collection IDs to include in the search for items. Only Item objects in one of the provided collections will be searched.
  - `datetime` string — 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. If a feature has multiple temporal properties, it is the decision of the server whether only a single temporal property is used to determine the extent or all relevant temporal properties.
  - `ids` string[]
  - `intersects` CosmosGeometry
    - `type` 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon' | 'GeometryCollection'
    - `coordinates` unknown
  - `limit` integer
  - `offset` integer
  - `query` object — a query object to search/filter according to the properites of the stac-item `"query": { "cloudcover": { "gt": 0, "lt": 10 }, "bands": { "eq": [ "RGB", "B001", "B002" ] } },`
  - `sortby` object[] — a sortby object to sort the items by the properties of the stac-item "sortby": [ { "field": "properties->>'datetime'", "direction": "desc" } ]

## Response `200`

OK

- CosmosFeatureCollection
  - `type` string — The type of the collection
  - `features` CosmosItem[]
    - `id` string, required — The unique identifier of the item
    - `type` string — The type of the item
    - `collection` string — The collection the item belongs to
    - `stac_version` string — The version of the STAC specification
    - `stac_extensions` string[] — The extensions used in the item
    - `bbox` string[] — The bounding box of the item
    - `geometry` CosmosGeometry
      - `type` 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon' | 'GeometryCollection'
      - `coordinates` unknown
    - `properties` CosmosProperties
      - `altitude` number — The altitude of the sensor in meters
      - `constellation` string — The constellation name
      - `created` string — The date and time the item was created
      - `datetime` string
      - `description` string — A description of the item
      - `eo:cloud_cover` number — The percentage of the image covered by clouds
      - `gsd` number — The ground sample distance in meters
      - `instruments` string[] — The instruments used
      - `license` string — The license of the item
      - `platform` string — The platform name
      - `proj:code` string — The EPSG code of the projection
      - `proj:shape` integer[] — The shape of the projection
      - `proj:transform` number[] — the affine transform coefficients
      - `rd:anomalous_pixels` number — The percentage of anomalous pixels
      - `rd:earth_sun_distance` number — The distance between the Earth and the Sun
      - `rd:product_level` string — The product level
      - `rd:sat_id` string — The satellite ID
      - `rd:type` string — The type of radiometric data
      - `sci:doi` string — The DOI of the scientific publication
      - `startdatetime` string
      - `title` string — The title of the item
      - `updated` string — The date and time the item was last updated
      - `view:off_nadir` number — The angle between the sensor and the vertical
      - `view:scene_center_lat` number — The latitude of the center of the scene
      - `view:scene_center_lon` number — The longitude of the center of the scene
      - `view:sun_azimuth` number — The angle between the sun and the north
      - `view:sun_elevation` number — The angle between the sun and the horizon
    - `assets` object — Example ``` { "B091": { "href": "<path_to_asset>", "type": "image/tiff", "roles": ["data"], "title": "B091", "eo:bands": [ { "fwhm": 0, "name": "B091", "solar_irradiance": 1984.75, "center_wavelength": 490, "common_name": "red", } ], "raster:bands": [ { "scale": 0.00002, "nodata": 0, "offset": 0, "spatial_resolution": 30 } ] }, "B013": { "href": "<path_to_asset>", "type": "image/png", "roles": ["data"], "title": "B013", "eo:bands": [ { "fwhm": 0, "name": "B013", "common_name": "blue", "solar_irradiance": 1965.25, "center_wavelength": 493 } ], "raster:bands": [ { "scale": 0.00002, "nodata": 0, "offset": 0, "spatial_resolution": 30 } ] } } // The properties of the item
    - `links` CosmosLink[] — The links of the item
      - `href` string, required — The URL or reference the link points to
      - `rel` string, required — The relationship of the link (e.g., "self", "parent", "child")
      - `title` string — A human-readable title for the link
      - `type` string — The MIME type of the linked resource (e.g., "application/json")
  - `links` CosmosLink[]
    - `href` string, required — The URL or reference the link points to
    - `rel` string, required — The relationship of the link (e.g., "self", "parent", "child")
    - `title` string — A human-readable title for the link
    - `type` string — The MIME type of the linked resource (e.g., "application/json")

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/pixxel/apis/stargate.md) · [All operations](https://skmtc.net/pixxel/apis/stargate/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pixxel/stargate/revisions/b501e2ca5a9d/schema)
