1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "Nike",
10 "brandAliases": ["Nike, Inc."],
11 "competitors": [
12 {
13 "name": "Adidas",
14 "aliases": ["Adidas AG"],
15 },
16 {
17 "name": "New Balance",
18 "aliases": [],
19 },
20 ],
21 "inlineRows": [{
22 "sourceActorId": "apify/chatgpt-search-scraper",
23 "query": "Which sustainable running shoe brands should a US buyer compare?",
24 "text": "Nike, Adidas and New Balance are common options to compare.",
25 "sources": [{
26 "title": "Running guide",
27 "url": "https://example.com/running-guide",
28 }],
29 }],
30 "market": "United States",
31 "language": "English",
32 "maxRows": 100,
33}
34
35
36run = client.actor("zinin/chinese-ai-visibility-dataset-analyzer").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