1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "placeId": "sample-place-001",
11 "title": "Blue Door Bakery",
12 "address": "12 Market Street, Springfield",
13 "location": {
14 "lat": 40.7128,
15 "lng": -74.006,
16 },
17 "phone": "+1 555 0100 111",
18 "website": "https://bluedoorbakery.example",
19 "categoryName": "Bakery",
20 "reviewsCount": 120,
21 },
22 {
23 "placeId": "sample-place-001",
24 "title": "Blue Door Bakery & Cafe",
25 "address": "12 Market St, Springfield",
26 "location": {
27 "lat": 40.7128,
28 "lng": -74.006,
29 },
30 },
31 {
32 "title": "The Blue Door Bakery",
33 "location": {
34 "lat": 40.71283,
35 "lng": -74.00601,
36 },
37 "phone": "(555) 010-0111",
38 },
39 {
40 "placeId": "sample-place-002",
41 "title": "Harbor Dental Clinic",
42 "address": "400 Pier Road, Springfield",
43 "location": {
44 "lat": 40.72,
45 "lng": -74.01,
46 },
47 "phone": "+1 555 0100 222",
48 },
49 {
50 "title": "Harbor Dental Clinic LLC",
51 "phone": "555-010-0222",
52 },
53 {
54 "placeId": "sample-place-003",
55 "title": "Greenleaf Market",
56 "location": {
57 "lat": 40.7,
58 "lng": -74,
59 },
60 "website": "https://greenleafmarket.example",
61 },
62 {
63 "placeId": "sample-place-004",
64 "title": "Greenleaf Market",
65 "location": {
66 "lat": 40.76,
67 "lng": -73.95,
68 },
69 "website": "https://greenleafmarket.example",
70 },
71 ] }
72
73
74run = client.actor("practical_ai_lab_jp/pal-maps-duplicate-places-audit").call(run_input=run_input)
75
76
77print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
78for item in client.dataset(run.default_dataset_id).iterate_items():
79 print(item)
80
81