1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "id": "1900000000000000001",
12 "url": "https://x.com/i/status/1900000000000000001",
13 "text": "Notion keeps logging me out on iOS since the last update. Third time today. @sample_user1 same for you?",
14 "createdAt": "2026-10-27T09:12:00Z",
15 "likeCount": 14,
16 "retweetCount": 2,
17 "replyCount": 5,
18 "viewCount": 2100,
19 "lang": "en",
20 },
21 {
22 "id": "1900000000000000002",
23 "url": "https://x.com/i/status/1900000000000000002",
24 "text": "Is there a way to export a whole Notion workspace to Markdown with the folder structure intact?",
25 "createdAt": "2026-10-27T14:40:00Z",
26 "likeCount": 3,
27 "retweetCount": 0,
28 "replyCount": 2,
29 "viewCount": 640,
30 "lang": "en",
31 },
32 {
33 "id": "1900000000000000003",
34 "url": "https://x.com/i/status/1900000000000000003",
35 "text": "Moved my notes from Evernote to Obsidian this weekend. Local files and the graph view are worth it.",
36 "createdAt": "2026-10-28T08:05:00Z",
37 "likeCount": 41,
38 "retweetCount": 6,
39 "replyCount": 9,
40 "viewCount": 5400,
41 "lang": "en",
42 },
43 {
44 "id": "1900000000000000004",
45 "url": "https://x.com/i/status/1900000000000000004",
46 "text": "Notion AI meeting notes just saved me an hour. Please add offline mode next!",
47 "createdAt": "2026-10-28T16:30:00Z",
48 "likeCount": 22,
49 "retweetCount": 3,
50 "replyCount": 1,
51 "viewCount": 3000,
52 "lang": "en",
53 },
54 {
55 "id": "1900000000000000005",
56 "url": "https://x.com/i/status/1900000000000000005",
57 "text": "I reject the notion that mornings are for productivity.",
58 "createdAt": "2026-10-28T18:00:00Z",
59 "likeCount": 5,
60 "retweetCount": 0,
61 "replyCount": 0,
62 "viewCount": 300,
63 "lang": "en",
64 },
65 ],
66 "brandNames": [
67 "Notion",
68 "Notion AI",
69 "@NotionHQ",
70 ],
71 "competitors": [
72 "Obsidian | @obsdmd",
73 "Evernote",
74 ],
75 "topicContext": "Note-taking and productivity apps",
76}
77
78
79run = client.actor("seasons-ai/tweets-to-brand-pulse").call(run_input=run_input)
80
81
82print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
83for item in client.dataset(run.default_dataset_id).iterate_items():
84 print(item)
85
86