Documentation | Console | Example Gallery
Access satellite data using the Tilebox datasets python client powered by gRPC and Protobuf.
Install using pip:
pip install tilebox-datasetsInstantiate a client:
from tilebox.datasets import Client
# create your API key at https://console.tilebox.com
client = Client(token="YOUR_TILEBOX_API_KEY")Explore datasets and collections:
datasets = client.datasets()
print(datasets)
sentinel2_msi = client.dataset("open_data.copernicus.sentinel2_msi")
collections = sentinel2_msi.collections()
print(collections)Query data:
s2a_l1c = sentinel2_msi.collection("S2A_S2MSI1C")
results = s2a_l1c.query(
temporal_extent=("2025-03-01", "2025-06-01"),
show_progress=True
)
print(f"Found {results.sizes['time']} datapoints") # Found 220542 datapointsSpatio-temporal queries:
from shapely.geometry import shape
area_of_interest = shape({
"type": "Polygon", # coords in lon, lat
"coordinates": [[[-5, 50], [-5, 56], [-11, 56], [-11, 50], [-5, 50]]]}
)
s2a_l1c = sentinel2_msi.collection("S2A_S2MSI1C")
results = s2a_l1c.query(
temporal_extent=("2025-03-01", "2025-06-01"),
spatial_extent=area_of_interest,
show_progress=True
)
print(f"Found {results.sizes['time']} datapoints") # Found 979 datapointsCheck out the Tilebox Datasets documentation for more information.
Distributed under the MIT License (The MIT License).