1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "Notion",
10 "competitors": [
11 "Coda",
12 "Obsidian",
13 ],
14 "prompts": [
15 "What are the best alternatives to {brand}?",
16 "Is {brand} worth it in 2026?",
17 "What are the top tools like {brand}?",
18 ],
19 "engines": [
20 "openai",
21 "anthropic",
22 "gemini",
23 "perplexity",
24 ],
25 "samplesPerPrompt": 1,
26 "models": {},
27 "demoMode": False,
28}
29
30
31run = client.actor("apricot_blackberry/ai-answer-visibility-tracker").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38