1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "plots": [
10 {
11 "plotId": "demo-flagged-frontier",
12 "commodity": "coffee",
13 "geometry": {
14 "type": "Polygon",
15 "coordinates": [[
16 [
17 -45.2523,
18 -13.0336,
19 ],
20 [
21 -45.2477,
22 -13.0336,
23 ],
24 [
25 -45.2477,
26 -13.029,
27 ],
28 [
29 -45.2523,
30 -13.029,
31 ],
32 [
33 -45.2523,
34 -13.0336,
35 ],
36 ]],
37 },
38 },
39 {
40 "plotId": "demo-clear-reference",
41 "commodity": "coffee",
42 "geometry": {
43 "type": "Polygon",
44 "coordinates": [[
45 [
46 -45.6023,
47 -12.9523,
48 ],
49 [
50 -45.5977,
51 -12.9523,
52 ],
53 [
54 -45.5977,
55 -12.9477,
56 ],
57 [
58 -45.6023,
59 -12.9477,
60 ],
61 [
62 -45.6023,
63 -12.9523,
64 ],
65 ]],
66 },
67 },
68 {
69 "plotId": "demo-sliver-qc",
70 "commodity": "coffee",
71 "wkt": "POLYGON((-45.00019 -12.75028, -45.00001 -12.75028, -45.00001 -12.7501, -45.00019 -12.7501, -45.00019 -12.75028))",
72 },
73 ],
74 "cutoffDate": "2020-12-31",
75 "layers": [
76 "hansen_gfc",
77 "jrc_tmf",
78 ],
79 "maxTilesPerRun": 4,
80 "maxCacheEntries": 300,
81}
82
83
84run = client.actor("atlas-data/eudr-deforestation-risk-screener").call(run_input=run_input)
85
86
87print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
88for item in client.dataset(run.default_dataset_id).iterate_items():
89 print(item)
90
91