1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "shortCode": "demo1",
12 "url": "https://example.com/demo/reel-1",
13 "ownerUsername": "demo_plant_shop",
14 "caption": "Why your plants keep dying (and the 1-finger test) #planttips #houseplants",
15 "videoUrl": "https://api.apify.com/v2/key-value-stores/gX2MMbYTVOB7INHXZ/records/reel1.mp4?signature=1HZVs1JtfomVXGswutKPH",
16 "videoPlayCount": 12400,
17 "likesCount": 610,
18 "commentsCount": 42,
19 "timestamp": "2026-10-20T17:00:00.000Z",
20 "videoDuration": 12.6,
21 "musicInfo": { "uses_original_audio": True },
22 },
23 {
24 "shortCode": "demo2",
25 "url": "https://example.com/demo/reel-2",
26 "ownerUsername": "demo_plant_shop",
27 "caption": "3 plants for dark rooms. Save it for your next shop trip 🌿",
28 "videoUrl": "https://api.apify.com/v2/key-value-stores/gX2MMbYTVOB7INHXZ/records/reel2.mp4?signature=Bx7PaWeo6NQGFfu7fsYM",
29 "videoPlayCount": 31800,
30 "likesCount": 2150,
31 "commentsCount": 96,
32 "timestamp": "2026-10-23T17:00:00.000Z",
33 "videoDuration": 11,
34 "musicInfo": { "uses_original_audio": True },
35 },
36 {
37 "shortCode": "demo3",
38 "url": "https://example.com/demo/reel-3",
39 "ownerUsername": "demo_plant_shop",
40 "caption": "Stop watering on a schedule. Free care guide in bio.",
41 "videoUrl": "https://api.apify.com/v2/key-value-stores/gX2MMbYTVOB7INHXZ/records/reel3.mp4?signature=13xhSgTd9FO1qjxlyQKWE",
42 "videoPlayCount": 8900,
43 "likesCount": 380,
44 "commentsCount": 18,
45 "timestamp": "2026-10-26T17:00:00.000Z",
46 "videoDuration": 9.6,
47 "musicInfo": { "uses_original_audio": True },
48 },
49 ],
50 "brandBrief": "Leafline is a small online shop for easy-care houseplants and pots, shipping across the EU. Audience: renters aged 22-35 who kill plants and live in small, dark flats. Tone: warm, a little self-deprecating, practical, no plant jargon. Goal: grow followers and send people to the free 'plant rescue' guide via the link in bio. Avoid: fear tactics, discount spam.",
51}
52
53
54run = client.actor("seasons-ai/competitor-content-hooks").call(run_input=run_input)
55
56
57print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
58for item in client.dataset(run.default_dataset_id).iterate_items():
59 print(item)
60
61