1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "topSellers",
12 "startUrls": [
13 {
14 "url": "https://store.steampowered.com/app/730/"
15 }
16 ],
17 "appIds": [
18 "730",
19 "570"
20 ],
21 "searchTerm": "strategy game",
22 "maxItems": 10,
23 "countries": [
24 "us",
25 "gb"
26 ],
27 "includeReviews": false,
28 "maxReviewsPerGame": 3,
29 "enrichWithAI": false,
30 "proxyConfiguration": {
31 "useApifyProxy": true
32 }
33};
34
35
36const run = await client.actor("axiomworks/steam-store-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