1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "profiles": [
9 {
10 "name": "Your Company",
11 "posts": [{
12 "text": "We just launched our new AI product!",
13 "numLikes": 100,
14 "numComments": 20,
15 "numShares": 5,
16 "postedAt": "2026-04-01T09:00:00Z",
17 "type": "text",
18 "hashtags": ["#ai"],
19 }],
20 },
21 {
22 "name": "Competitor A",
23 "posts": [{
24 "text": "Excited to share our latest update.",
25 "numLikes": 200,
26 "numComments": 40,
27 "numShares": 10,
28 "postedAt": "2026-04-01T10:00:00Z",
29 "type": "video",
30 "hashtags": [
31 "#ai",
32 "#growth",
33 ],
34 }],
35 },
36 ] }
37
38
39run = client.actor("george.the.developer/linkedin-competitor-intel").call(run_input=run_input)
40
41
42print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
43for item in client.dataset(run["defaultDatasetId"]).iterate_items():
44 print(item)
45
46