Tilebox Datasets ingests and structures metadata for efficient querying, significantly reducing data transfer and storage costs.

Create your own custom datasets and easily set up a private, custom, strongly-typed and highly-available catalogue, or explore any of the wide range of available public open data datasets available on Tilebox.

Learn more about datasets by exploring the following sections:

For a quick reference to API methods or specific parameter meanings, check out the complete Datasets API Reference.

Terminology

Get familiar with some key terms when working with time series datasets.

Creating a datasets client

Prerequisites

  • You have installed the tilebox-datasets package.
  • You have created a Tilebox API key.

After meeting these prerequisites, you can create a client instance to interact with Tilebox Datasets.

from tilebox.datasets import Client

client = Client(token="YOUR_TILEBOX_API_KEY")

You can also set the TILEBOX_API_KEY environment variable to your API key. You can then instantiate the client without passing the token argument. Python will automatically use this environment variable for authentication.

from tilebox.datasets import Client

# requires a TILEBOX_API_KEY environment variable
client = Client()

Tilebox datasets provide a standard synchronous API by default but also offers an asynchronous client if needed.

Exploring datasets

After creating a client instance, you can start exploring available datasets. A straightforward way to do this in an interactive environment is to list all datasets and use the autocomplete feature in your Jupyter notebook.

datasets = client.datasets()
datasets. # trigger autocomplete here to view available datasets

The Console also provides an overview of all available datasets.

Errors you might encounter

AuthenticationError

AuthenticationError occurs when the client fails to authenticate with the Tilebox API. This may happen if the provided API key is invalid or expired. A client instantiated with an invalid API key won’t raise an error immediately, but an error will occur when making a request to the API.

client = Client(token="invalid-key") # runs without error
datasets = client.datasets() # raises AuthenticationError

Next steps