Skip to content

Querying data

Access and filter data stored in your datasets by time, location, and custom fields, with built-in pagination and progress tracking.

Tilebox offers a powerful and flexible querying API to access and filter data from your datasets. When querying, you can filter by time, filter by custom fields, and for Spatio-temporal datasets, optionally filter by a location in the form of a geometry.

Running a query

You can query data from either a specific collection of a dataset, from a selected set of collections of a dataset, or from all collections of a dataset at once. Below is a simple example showcasing those options by querying Sentinel-2 data for April 2025 over the state of Colorado.

Some datasets include assets that point to files in object storage. After selecting one datapoint, use an asset collection and the storage client to read or download those files.

To learn more about how to narrow down query results, see the following pages about filtering by time, geometry, custom fields, or datapoint ID.

Automatic pagination

Querying large datasets can result in a large number of data points. For those cases Tilebox automatically handles pagination for you by sending paginated requests to the server.

Skipping data fields

Sometimes, only the ID or timestamp associated with a datapoint is required. In those cases, you can speed up querying by skipping downloading of all dataset fields except of the time, the id and the ingestion_time by setting the skip_data parameter to True.

For example, when checking how many datapoints exist in a given time interval, you can use skip_data=True to avoid loading the data fields. This works the same way on both collection-level and dataset-level queries.

Output

Empty response

Query will not raise an error if no data points are found for the specified query, instead an empty result is returned.

In python, this is an empty xarray.Dataset object. In Go, an empty slice of datapoints. To check for an empty response, you can coerce the result to a boolean or check the length of the slice.

Output

Type to search…