1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "brand": "Acme",
12 "engine": "Perplexity",
13 "query": "best CRM for SMB",
14 "citation_url": "https://acme.example/crm",
15 "source_domain": "acme.example",
16 "citationCount": 3,
17 "mentionCount": 1,
18 "observedAt": "2026-09-19",
19 },
20 {
21 "brand": "RivalCo",
22 "engine": "ChatGPT",
23 "query": "best CRM for SMB",
24 "citation_url": "https://rival.example/compare",
25 "source_domain": "rival.example",
26 "citationCount": 5,
27 "mentionCount": 1,
28 "observedAt": "2026-09-19",
29 },
30 ],
31 "previousItems": [{
32 "brand": "Acme",
33 "engine": "Perplexity",
34 "query": "best CRM for SMB",
35 "citation_url": "https://acme.example/crm",
36 "source_domain": "acme.example",
37 "citationCount": 1,
38 "mentionCount": 1,
39 "observedAt": "2026-09-12",
40 }],
41}
42
43
44run = client.actor("quanmatrix/ai-answer-citation-share-of-voice-intelligence").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51