1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "jsonData": [
9 {
10 "searchString": "plumber",
11 "rank": 1,
12 "title": "Example Plumbing Co",
13 "categoryName": "Plumber",
14 "city": "Austin",
15 "countryCode": "US",
16 "website": "https://example.com/",
17 "phone": "(512) 555-0100",
18 "claimThisBusiness": False,
19 "totalScore": 4.8,
20 "reviewsCount": 240,
21 "imagesCount": 85,
22 "placeId": "example-1",
23 "reviews": [{
24 "stars": 5,
25 "text": "Fast and friendly, fixed the leak the same day.",
26 "publishedAtDate": "2026-11-01T10:00:00.000Z",
27 "responseFromOwnerText": "Thank you!",
28 "responseFromOwnerDate": "2026-11-02T10:00:00.000Z",
29 }],
30 },
31 {
32 "searchString": "plumber",
33 "rank": 2,
34 "title": "Sample Pipe Repair",
35 "categoryName": "Plumber",
36 "city": "Austin",
37 "countryCode": "US",
38 "website": None,
39 "phone": "(512) 555-0199",
40 "claimThisBusiness": True,
41 "totalScore": 3.9,
42 "reviewsCount": 14,
43 "imagesCount": 3,
44 "placeId": "example-2",
45 "reviews": [{
46 "stars": 1,
47 "text": "Never called back and the sink is still leaking.",
48 "publishedAtDate": "2026-10-20T10:00:00.000Z",
49 "responseFromOwnerText": None,
50 }],
51 },
52 ] }
53
54
55run = client.actor("weav3rx/google-maps-business-audit").call(run_input=run_input)
56
57
58print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
59for item in client.dataset(run.default_dataset_id).iterate_items():
60 print(item)
61
62