1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "snapshots": [{
10 "query": "best appointment software",
11 "surface": "synthetic_demo",
12 "country": "IN",
13 "language": "en",
14 "device": "desktop",
15 "observedAt": "2026-11-02T10:00:00Z",
16 "text": "Acme and Rival offer appointment tools. Acme provides online scheduling.",
17 "sources": [{
18 "url": "https://acme.example/scheduling",
19 "title": "Acme scheduling",
20 }],
21 }],
22 "brands": [
23 {
24 "name": "Acme",
25 "aliases": ["Acme"],
26 "domains": ["acme.example"],
27 },
28 {
29 "name": "Rival",
30 "aliases": ["Rival"],
31 "domains": ["rival.example"],
32 },
33 ],
34 "maxSnapshots": 5,
35 "baselineSnapshots": [{
36 "query": "best appointment software",
37 "surface": "synthetic_demo",
38 "country": "IN",
39 "language": "en",
40 "device": "desktop",
41 "observedAt": "2026-11-01T10:00:00Z",
42 "text": "Rival offers appointment tools for clinics.",
43 "sources": [{
44 "url": "https://rival.example/product",
45 "title": "Rival",
46 }],
47 }],
48}
49
50
51run = client.actor("variable_mitts/aeo-citation-change-tracker").call(run_input=run_input)
52
53
54print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58