1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "coinSymbols": [
12 "BTC",
13 "ETH",
14 "BNB",
15 "SOL",
16 "XRP",
17 "ADA",
18 "DOGE",
19 "AVAX",
20 "DOT",
21 "MATIC",
22 "SHIB",
23 "LTC",
24 "BCH",
25 "ATOM",
26 "XLM",
27 "UNI",
28 "ALGO",
29 "FIL",
30 "AAVE",
31 "NEAR"
32 ]
33};
34
35
36const run = await client.actor("ahmed_jasarevic/cryptocompare-scraper").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46