1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "Apify",
10 "brandDomains": ["apify.com"],
11 "competitors": [
12 "Bright Data | brightdata.com",
13 "Zyte | zyte.com",
14 "ScrapingBee | scrapingbee.com",
15 "Oxylabs | oxylabs.io",
16 ],
17 "prompts": [
18 "What are the best web scraping platforms?",
19 "Which tool can I use to scrape a website without writing code?",
20 "What is a good alternative to Bright Data for web scraping?",
21 ],
22 "samplesPerPrompt": 1,
23 "openaiModel": "gpt-6-luna",
24 "anthropicModel": "claude-haiku-5-5",
25 "anthropicEffort": "low",
26 "perplexityModel": "sonar",
27 "webSearch": True,
28 "maxSearchesPerAnswer": 2,
29 "maxOutputTokens": 1200,
30 "timeoutSecs": 120,
31 "maxRetries": 3,
32 "concurrency": 3,
33}
34
35
36run = client.actor("devdarfy/ai-brand-visibility-tracker").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43