1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "targetUrl": "https://citedcart.com",
10 "startUrls": [{ "url": "https://citedcart.com" }],
11 "pages": ["/"],
12 "visitCount": 5,
13 "maxConcurrency": 2,
14 "dwellTimeSecs": 6,
15 "aiGoal": "Explore featured products, tools, pricing, or guides like an engaged organic visitor.",
16 "searchQuery": "ecommerce seo visibility audit",
17 "scenarioSteps": [
18 {
19 "type": "goto",
20 "value": "/",
21 "label": "Open landing page",
22 },
23 {
24 "type": "dismiss_overlays",
25 "label": "Accept cookie/consent banner if present",
26 },
27 {
28 "type": "human_browse",
29 "value": 5000,
30 "label": "Biometric mouse & reading scroll",
31 },
32 {
33 "type": "play_video",
34 "label": "Verify on-page video playback if present",
35 },
36 {
37 "type": "ai_explore",
38 "label": "AI autonomous page discovery (Playbook Cached)",
39 },
40 ],
41 "countryCode": "US",
42 "proxyConfiguration": { "useApifyProxy": True },
43}
44
45
46run = client.actor("hirepulse/website-traffic-generator").call(run_input=run_input)
47
48
49print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
50for item in client.dataset(run.default_dataset_id).iterate_items():
51 print(item)
52
53