1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "reportName": "Sample weekly sportswear competitor ad report",
10 "items": [
11 {
12 "libraryID": "sample-nike-001",
13 "brand": "Nike",
14 "keyword": "Nike",
15 "body": "Run-ready styles for every training day. Explore the latest performance collection.",
16 "startDate": "2026-05-20",
17 "isActive": True,
18 "platforms": [
19 "Facebook",
20 "Instagram",
21 ],
22 "ctaLink": "https://www.nike.com/running",
23 },
24 {
25 "libraryID": "sample-puma-001",
26 "brand": "PUMA",
27 "keyword": "Puma",
28 "body": "New season essentials built for training, streetwear, and everyday movement.",
29 "startDate": "2026-05-22",
30 "isActive": True,
31 "platforms": [
32 "Facebook",
33 "Instagram",
34 ],
35 "ctaLink": "https://us.puma.com/us/en/sports",
36 },
37 {
38 "libraryID": "sample-newbalance-001",
39 "brand": "New Balance",
40 "keyword": "New Balance",
41 "body": "Fresh running gear and comfort-first sneakers for your next workout.",
42 "startDate": "2026-05-24",
43 "isActive": True,
44 "platforms": ["Facebook"],
45 "ctaLink": "https://www.newbalance.com/running/",
46 },
47 ],
48 "search": {
49 "keywords": [
50 "Nike",
51 "Puma",
52 "New Balance",
53 ],
54 "country": "US",
55 "activeStatus": "active",
56 "period": "sample input",
57 },
58 "maxItems": 500,
59}
60
61
62run = client.actor("jy-labs/weekly-competitor-ad-intelligence").call(run_input=run_input)
63
64
65print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
66for item in client.dataset(run["defaultDatasetId"]).iterate_items():
67 print(item)
68
69