1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "stacRoot": "https://earth-search.aws.element84.com/v1",
10 "collections": ["sentinel-2-l2a"],
11 "bbox": [
12 -122.6,
13 37.6,
14 -122.2,
15 37.9,
16 ],
17 "datetime": "2024-06-01T00:00:00Z/2024-06-30T23:59:59Z",
18 "limit": 100,
19 "maxResults": 25,
20}
21
22
23run = client.actor("datamule/stac-catalog-extractor").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30