1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "standbyModeInfo": {
12 "message": "This Actor only works in Standby mode",
13 "endpoints": [
14 "/health - Service health check (status: ok)",
15 "/active-users - Active Twitter usernames",
16 "/events/twitter/tweets - Tweet streams (SSE)",
17 "/events/twitter/following - Following events (SSE)",
18 "/events/twitter/profile - Profile updates (SSE)",
19 "/events/twitter/all - All event types (SSE)"
20 ],
21 "documentation": "See README.md for complete usage instructions"
22 }
23};
24
25
26const run = await client.actor("muhammetakkurtt/crypto-twitter-tracker").call(input);
27
28
29console.log('Results from dataset');
30console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
31const { items } = await client.dataset(run.defaultDatasetId).listItems();
32items.forEach((item) => {
33 console.dir(item);
34});
35
36