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 {
13 "platform": "apple",
14 "appId": "310633997",
15 "label": "WhatsApp iOS"
16 },
17 {
18 "platform": "google",
19 "packageName": "com.duolingo",
20 "label": "Duolingo Android"
21 }
22 ],
23 "appUrls": [],
24 "appleAppIds": [],
25 "googlePlayUrls": [],
26 "googlePackageNames": [],
27 "countries": [
28 "us"
29 ],
30 "ratings": [],
31 "negativeRatings": [
32 1,
33 2
34 ],
35 "keywords": []
36};
37
38
39const run = await client.actor("winterly_fly/app-review-intelligence-scraper").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49