1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "goalDescription": "I trade US-listed semiconductor stocks and EUR/USD; flag tariffs, export controls, the Fed and any company or country named.",
10 "maxDiscoveryChargeUsd": 0.5,
11 "sourceMode": "list",
12 "itemsList": [
13 {
14 "id": "114900000000000101",
15 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000101",
16 "created_at": "2026-10-06T14:05:00.000Z",
17 "content": "<p>Effective November 1st, the United States will impose a 25% Tariff on all cars and trucks imported from the European Union. China is next. Reciprocal trade is FAIR trade!</p>",
18 "language": "en",
19 "visibility": "public",
20 "account": {
21 "username": "ExampleOfficial",
22 "display_name": "Example Official (sample)",
23 "followers_count": 9800000,
24 "verified": True,
25 "url": "https://truthsocial.com/@ExampleOfficial",
26 },
27 "replies_count": 6200,
28 "reblogs_count": 9800,
29 "favourites_count": 41000,
30 "media_attachments": [],
31 "mentions": [],
32 "tags": [],
33 "card": None,
34 "pinned": False,
35 },
36 {
37 "id": "114900000000000102",
38 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000102",
39 "created_at": "2026-10-04T13:20:00.000Z",
40 "content": "<p>The Fed must CUT INTEREST RATES NOW. Powell is TOO LATE, AGAIN. Inflation is DOWN, the economy is BOOMING!</p>",
41 "language": "en",
42 "visibility": "public",
43 "account": {
44 "username": "ExampleOfficial",
45 "display_name": "Example Official (sample)",
46 "followers_count": 9800000,
47 "verified": True,
48 "url": "https://truthsocial.com/@ExampleOfficial",
49 },
50 "replies_count": 3100,
51 "reblogs_count": 5200,
52 "favourites_count": 22000,
53 "media_attachments": [],
54 "mentions": [],
55 "tags": [],
56 "card": None,
57 "pinned": False,
58 },
59 {
60 "id": "114900000000000103",
61 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000103",
62 "created_at": "2026-10-07T19:45:00.000Z",
63 "content": "<p>Just spoke with the CEO of Nvidia ($NVDA). They will be investing $100 Billion in new chip plants in Arizona and Texas. Great for American workers!</p>",
64 "language": "en",
65 "visibility": "public",
66 "account": {
67 "username": "ExampleOfficial",
68 "display_name": "Example Official (sample)",
69 "followers_count": 9800000,
70 "verified": True,
71 "url": "https://truthsocial.com/@ExampleOfficial",
72 },
73 "replies_count": 2400,
74 "reblogs_count": 6100,
75 "favourites_count": 30500,
76 "media_attachments": [],
77 "mentions": [],
78 "tags": [],
79 "card": {
80 "url": "https://www.example-news.com/chips-investment",
81 "title": "Nvidia plans $100 billion US chip investment",
82 "provider_name": "Example News",
83 },
84 "pinned": False,
85 },
86 {
87 "id": "114900000000000104",
88 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000104",
89 "created_at": "2026-10-05T01:10:00.000Z",
90 "content": "<p>Congratulations to Governor Jane Doe on a tremendous win. She has my Complete and Total Endorsement!</p>",
91 "language": "en",
92 "visibility": "public",
93 "account": {
94 "username": "ExampleOfficial",
95 "display_name": "Example Official (sample)",
96 "followers_count": 9800000,
97 "verified": True,
98 "url": "https://truthsocial.com/@ExampleOfficial",
99 },
100 "replies_count": 900,
101 "reblogs_count": 2100,
102 "favourites_count": 11000,
103 "media_attachments": [],
104 "mentions": [],
105 "tags": [],
106 "card": None,
107 "pinned": False,
108 },
109 {
110 "id": "114900000000000105",
111 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000105",
112 "created_at": "2026-10-08T16:30:00.000Z",
113 "content": "",
114 "language": None,
115 "visibility": "public",
116 "account": {
117 "username": "ExampleOfficial",
118 "display_name": "Example Official (sample)",
119 "followers_count": 9800000,
120 "verified": True,
121 "url": "https://truthsocial.com/@ExampleOfficial",
122 },
123 "replies_count": 1500,
124 "reblogs_count": 3900,
125 "favourites_count": 19000,
126 "media_attachments": [{
127 "type": "video",
128 "url": "https://static.example-cdn.com/media/sample-rally.mp4",
129 "preview_url": "https://static.example-cdn.com/media/sample-rally.jpg",
130 }],
131 "mentions": [],
132 "tags": [],
133 "card": None,
134 "pinned": False,
135 },
136 {
137 "id": "114900000000000106",
138 "url": "https://example.com/truth-social-sample/@ExampleOfficial/114900000000000106",
139 "created_at": "2026-10-08T17:02:00.000Z",
140 "content": "",
141 "language": "en",
142 "visibility": "public",
143 "account": {
144 "username": "ExampleOfficial",
145 "display_name": "Example Official (sample)",
146 "followers_count": 9800000,
147 "verified": True,
148 "url": "https://truthsocial.com/@ExampleOfficial",
149 },
150 "replies_count": 0,
151 "reblogs_count": 0,
152 "favourites_count": 0,
153 "reblog": {
154 "id": "114899999999999990",
155 "url": "https://example.com/truth-social-sample/@SampleSupporter/114899999999999990",
156 "content": "<p>Great rally tonight!</p>",
157 },
158 "media_attachments": [],
159 "mentions": [],
160 "tags": [],
161 "card": None,
162 "pinned": False,
163 },
164 ],
165 "discoveryInput": {},
166}
167
168
169run = client.actor("rich_minds/truth-social-alerts-ai").call(run_input=run_input)
170
171
172print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
173for item in client.dataset(run.default_dataset_id).iterate_items():
174 print(item)
175
176