1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "places": [{
9 "place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
10 "cid": "10281019595535971924",
11 "title": "Example Restaurant Ltd.",
12 "category": "Italian restaurant",
13 "categories": [
14 "Italian restaurant",
15 "Pizza restaurant",
16 ],
17 "website": "https://example-restaurant.example",
18 "phone": "+49 89 12345678",
19 "description": "Sample Italian restaurant in Munich, family-owned since 1985.",
20 "open_hours": {
21 "Monday": "11:00-22:00",
22 "Tuesday": "11:00-22:00",
23 },
24 "review_count": 320,
25 "review_rating": 4.5,
26 "images": [
27 {
28 "title": "Interior",
29 "image": "https://lh5.googleusercontent.com/p/1.jpg",
30 },
31 {
32 "title": "Dish",
33 "image": "https://lh5.googleusercontent.com/p/2.jpg",
34 },
35 {
36 "title": "Menu",
37 "image": "https://lh5.googleusercontent.com/p/3.jpg",
38 },
39 {
40 "title": "Storefront",
41 "image": "https://lh5.googleusercontent.com/p/4.jpg",
42 },
43 {
44 "title": "Terrace",
45 "image": "https://lh5.googleusercontent.com/p/5.jpg",
46 },
47 ],
48 "owner": {
49 "id": "123",
50 "name": "Example Restaurant Ltd.",
51 "link": "https://maps.google.com/owner",
52 },
53 }] }
54
55
56run = client.actor("santamaria-automations/gbp-completeness-audit").call(run_input=run_input)
57
58
59print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
60for item in client.dataset(run.default_dataset_id).iterate_items():
61 print(item)
62
63