1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "action": "demo",
10 "operation": "profile",
11 "location_id": "chatswood-nsw",
12 "use_advanced_scope": False,
13 "scope_template": """{
14 \"type\": \"circle\",
15 \"latitude\": -33.796,
16 \"longitude\": 151.181,
17 \"k_ring\": 3
18}""",
19 "dry_run": False,
20 "area_request": {
21 "areas": [{
22 "area_id": "chatswood",
23 "name": "Chatswood",
24 "state": "NSW",
25 }],
26 "field_sets": ["profile_complete"],
27 "max_atomic_runs": 24,
28 "business_cap_usd": "24.00",
29 "buyer_budget_usd": "50.00",
30 "allow_partial": False,
31 "idempotency_key": "my-area-plan-1",
32 },
33}
34
35
36run = client.actor("trustats/trugrid-au").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43