1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "meditation"
13 ],
14 "countries": [
15 "us"
16 ],
17 "platforms": [
18 "ios"
19 ],
20 "depth": 20,
21 "rankSource": "native",
22 "apps": [],
23 "includeTopApps": true,
24 "includeSuggestions": true,
25 "includeAppDetails": true,
26 "includeSummary": true,
27 "monitor": false,
28 "firstRunBehavior": "emit-all",
29 "maxRows": 5000,
30 "maxRunSecs": 240,
31 "maxConcurrency": 3,
32 "residentialFallback": true,
33 "proxyConfiguration": {
34 "useApifyProxy": true
35 }
36};
37
38
39const run = await client.actor("insight.solutions/app-store-keyword-rank-tracker").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