1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sector": "bakery",
10 "location": "Austin",
11 "resultLimit": 5,
12 "dataRightsConfirmed": True,
13 "businesses": [
14 {
15 "businessName": "Demo Bakery Alpha",
16 "sector": "bakery",
17 "location": "Austin TX",
18 "ratingSource": "Fictional demonstration data",
19 "sourceUrl": "https://example.org/ratings/alpha",
20 "rating": 2.1,
21 "reviewCount": 58,
22 "ratingDate": "2026-09-12",
23 "websiteUrl": "https://example.org",
24 },
25 {
26 "businessName": "Demo Bakery Bravo",
27 "sector": "bakery",
28 "location": "Austin TX",
29 "ratingSource": "Fictional demonstration data",
30 "sourceUrl": "https://example.org/ratings/bravo",
31 "rating": 2.5,
32 "reviewCount": 30,
33 "ratingDate": "2026-09-14",
34 "websiteUrl": "https://example.org",
35 },
36 {
37 "businessName": "Demo Bakery Charlie",
38 "sector": "bakery",
39 "location": "Austin TX",
40 "ratingSource": "Fictional demonstration data",
41 "sourceUrl": "https://example.org/ratings/charlie",
42 "rating": 2.8,
43 "reviewCount": 48,
44 "ratingDate": "2026-09-30",
45 "websiteUrl": "https://example.org",
46 },
47 {
48 "businessName": "Demo Bakery Delta",
49 "sector": "bakery",
50 "location": "Austin TX",
51 "ratingSource": "Fictional demonstration data",
52 "sourceUrl": "https://example.org/ratings/delta",
53 "rating": 2.6,
54 "reviewCount": 100,
55 "ratingDate": "2026-10-01",
56 "websiteUrl": "https://example.org",
57 },
58 {
59 "businessName": "Demo Bakery Echo",
60 "sector": "bakery",
61 "location": "Austin TX",
62 "ratingSource": "Fictional demonstration data",
63 "sourceUrl": "https://example.org/ratings/echo",
64 "rating": 2.9,
65 "reviewCount": 12,
66 "ratingDate": None,
67 "websiteUrl": "https://example.org",
68 },
69 ],
70 "inspectContacts": False,
71}
72
73
74run = client.actor("afkdigital/b2b-reputation-opportunity-analyzer").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