1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "reviews",
12 "appIds": [],
13 "startUrls": [
14 {
15 "url": "https://store.steampowered.com/app/1174180/Red_Dead_Redemption_2/"
16 }
17 ],
18 "gameNames": [],
19 "maxReviews": 3,
20 "maxGames": 0,
21 "reviewType": "all",
22 "language": "all",
23 "sortBy": "recent",
24 "helpfulWithinDays": 30,
25 "purchaseType": "all",
26 "minPlaytimeHours": 0,
27 "maxPlaytimeHours": 0,
28 "steamDeckOnly": false,
29 "includeOffTopic": false,
30 "useReviewQuality": true,
31 "includeGameDetails": false
32};
33
34
35const run = await client.actor("dataspryva/steam-game-reviews-and-playtime-extractor").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45