1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "sourceDatasetId": "",
10 "agencyRecords": [{
11 "name": "Northstar Studio",
12 "websiteUrl": "https://example.com",
13 "rating": 4.2,
14 "reviews": [
15 "The team delivered excellent design work, but weekly communication was sometimes slow.",
16 "Strong strategy and quality. The final milestone arrived two weeks late.",
17 ],
18 "sourceReference": "internal-crm-2026-07",
19 }],
20 "maxAgencies": 25,
21 "websiteEnrichment": True,
22 "maxWebsitePages": 3,
23 "responseFormat": "concise",
24 "maxConcurrency": 4,
25}
26
27
28run = client.actor("muhammadafzal/analyze-agency-reviews").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35