1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "OpenAI",
10 "brandTerms": [
11 "openai.com",
12 "openai",
13 ],
14 "competitors": [
15 {
16 "name": "Anthropic",
17 "terms": [
18 "anthropic.com",
19 "claude.ai",
20 "anthropic",
21 ],
22 },
23 {
24 "name": "Google",
25 "terms": [
26 "gemini.google.com",
27 "gemini",
28 "google ai",
29 ],
30 },
31 ],
32 "keywords": [
33 "ai api pricing",
34 "enterprise llm platform",
35 ],
36 "searchSources": [
37 "google",
38 "reddit",
39 ],
40 "emailTo": ["alerts@example.com"],
41}
42
43
44run = client.actor("taroyamada/ai-visibility-monitor-actor").call(run_input=run_input)
45
46
47print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
48for item in client.dataset(run["defaultDatasetId"]).iterate_items():
49 print(item)
50
51