stac_search
Search for satellite imagery using bounding box coordinates, date range, and cloud cover filters. Access optical, radar, and elevation data from multiple STAC catalogs.
Instructions
Search for satellite scenes matching spatial and temporal criteria.
This is the primary entry point for finding satellite imagery. Results are cached for follow-up describe/download operations.
Args: bbox: Bounding box [west, south, east, north] in EPSG:4326. Example: [-0.7, 52.7, 0.5, 53.7] for Lincolnshire, UK collection: STAC collection (default: sentinel-2-l2a). Options: - sentinel-2-l2a: Optical imagery, 10-20m resolution, 13 bands - sentinel-2-c1-l2a: Reprocessed Sentinel-2 archive - landsat-c2-l2: Optical imagery, 30m resolution, 11 bands - sentinel-1-grd: SAR radar, 10m, sees through clouds (VV/VH) - cop-dem-glo-30: Global elevation data, 30m date_range: Date range as "YYYY-MM-DD/YYYY-MM-DD" (optional). Omit for cop-dem-glo-30 (no temporal dimension) max_cloud_cover: Maximum cloud cover percentage 0-100 (default: 20). Ignored for non-optical collections (sentinel-1-grd, cop-dem-glo-30). Increase to 30-50 if getting zero results max_items: Maximum results to return (default: 10) catalog: Catalog name (default: earth_search). Options: earth_search, planetary_computer, usgs output_mode: Response format - "json" (default) or "text"
Returns: JSON with matching scenes sorted by cloud cover (optical) or date
Tips for LLMs: - Typical workflow: stac_search → stac_describe_scene → stac_download_bands - For cloudy regions (e.g., UK autumn), increase max_cloud_cover to 50 or use sentinel-1-grd (SAR radar, not affected by clouds) - For flood mapping: use sentinel-1-grd (water appears dark in VV/VH) - For vegetation analysis: use sentinel-2-l2a with NDVI index - For elevation/terrain: use cop-dem-glo-30 (no date_range needed) - If zero results, check the hints field for suggestions (try different catalog, increase cloud cover, widen date range) - Scenes are cached — use scene_id in subsequent describe/download calls
Example: results = await stac_search( bbox=[0.8, 51.8, 1.0, 51.95], date_range="2024-06-01/2024-08-31", max_cloud_cover=10 )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| catalog | No | ||
| max_items | No | ||
| collection | No | ||
| date_range | No | ||
| output_mode | No | json | |
| max_cloud_cover | No |