1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "places": [
9 {
10 "place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
11 "title": "Example Coffee House",
12 "category": "Coffee shop",
13 "categories": [
14 "Coffee shop",
15 "Cafe",
16 ],
17 "website": "https://example-coffee.example",
18 "phone": "+49 30 12345678",
19 "rating": 4.8,
20 "review_count": 1240,
21 "description": "Specialty coffee roastery, direct-trade beans, natural wines and weekend brunch.",
22 "complete_address": {
23 "city": "Berlin",
24 "country": "Germany",
25 "borough": "Sample District",
26 },
27 },
28 {
29 "place_id": "ChIJcareHomeSAMPLE12345",
30 "title": "Sample Care Foundation",
31 "category": "Nursing home",
32 "categories": [
33 "Nursing home",
34 "Senior care service",
35 ],
36 "phone": "+49 7531 200000",
37 "rating": 4.4,
38 "review_count": 87,
39 "description": "Sample Care Foundation has been caring for seniors for over 20 years across three residential campuses.",
40 "complete_address": {
41 "city": "Sampletown",
42 "country": "Germany",
43 },
44 },
45 {
46 "place_id": "ChIJsculptureStudio77",
47 "title": "Example Art Studio",
48 "category": "Sculptor",
49 "website": "https://example-studio.example",
50 "rating": 5,
51 "review_count": 12,
52 "complete_address": {
53 "city": "Berlin",
54 "country": "Germany",
55 },
56 },
57 ] }
58
59
60run = client.actor("santamaria-automations/ai-icebreaker").call(run_input=run_input)
61
62
63print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
64for item in client.dataset(run["defaultDatasetId"]).iterate_items():
65 print(item)
66
67