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/spotify-music-and-podcasts/id324684580",
13 "https://play.google.com/store/apps/details?id=com.spotify.music",
14 "570060128",
15 "com.duolingo",
16 "1232780281",
17 "notion.id"
18 ],
19 "mode": "snapshot",
20 "countries": [
21 "us"
22 ],
23 "language": "en",
24 "watch": [
25 "version",
26 "price",
27 "rating",
28 "listing",
29 "metadata"
30 ],
31 "ratingDeltaThreshold": 0.1,
32 "ratingCountDeltaPct": 5,
33 "emitUnchanged": false,
34 "includeDescription": true,
35 "includeReleaseNotes": true,
36 "includeScreenshots": false,
37 "stateStoreName": "app-store-monitor-state",
38 "maxApps": 500,
39 "maxConcurrency": 4,
40 "maxRunSecs": 240,
41 "proxyConfiguration": {
42 "useApifyProxy": true
43 }
44};
45
46
47const run = await client.actor("insight.solutions/app-store-monitor").call(input);
48
49
50console.log('Results from dataset');
51console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
52const { items } = await client.dataset(run.defaultDatasetId).listItems();
53items.forEach((item) => {
54 console.dir(item);
55});
56
57