1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "charts": [
12 "topFree",
13 "topPaid"
14 ],
15 "categories": [
16 "Productivity",
17 "Developer tools"
18 ],
19 "searchTerms": [
20 "pdf editor",
21 "screen recorder"
22 ],
23 "publisherNames": [
24 "Adobe Inc."
25 ],
26 "apps": [
27 "https://apps.microsoft.com/detail/9n0dx20hk701",
28 "9NKSQGP7F2NH",
29 "XPDP273C0XHQH2"
30 ],
31 "maxReviewsPerApp": 100,
32 "proxyConfiguration": {
33 "useApifyProxy": false
34 }
35};
36
37
38const run = await client.actor("fanndev/microsoft-store-scraper").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48