1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "records": [
9 {
10 "title": "Harbor Coffee",
11 "placeId": "demo-101",
12 "address": "10 Harbor Street, Izmir",
13 "location": {
14 "lat": 38.42,
15 "lng": 27.13,
16 },
17 "website": "https://example.com",
18 "phone": "+90000000000",
19 },
20 {
21 "title": "Harbor Coffee",
22 "placeId": "demo-101",
23 "address": "10 Harbor Street, Izmir",
24 "location": {
25 "lat": 38.42,
26 "lng": 27.13,
27 },
28 },
29 {
30 "title": "Garden Cafe",
31 "placeId": "demo-102",
32 "address": "20 Garden Avenue, Izmir",
33 "location": {
34 "lat": 38.425,
35 "lng": 27.14,
36 },
37 "website": "https://example.org",
38 },
39 ] }
40
41
42run = client.actor("pbt-guard/maps-quality-guard").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49