1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "apps": [
12 "https://apps.apple.com/us/app/whatsapp-messenger/id310633997",
13 "https://play.google.com/store/apps/details?id=com.whatsapp",
14 "https://store.steampowered.com/app/440/Team_Fortress_2/"
15 ],
16 "maxReviewsPerApp": 100,
17 "maxReviewsPerCountry": 0,
18 "country": "us",
19 "extraCountries": [],
20 "language": "english",
21 "extraLanguages": [],
22 "sortBy": "newest",
23 "minRating": 1,
24 "maxRating": 5,
25 "keywords": [],
26 "excludeKeywords": [],
27 "daysBack": 0,
28 "since": "",
29 "onlyWithDeveloperReply": false,
30 "onlyWithText": false,
31 "onlyNewReviews": false,
32 "stateStoreName": "app-reviews-state",
33 "includeAppMetadata": true,
34 "concurrency": 3,
35 "proxyConfiguration": {
36 "useApifyProxy": false
37 }
38};
39
40
41const run = await client.actor("that_red_bird/app-reviews-scraper").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51