1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "targets": [
12 {
13 "platform": "ios",
14 "appId": "587366035",
15 "label": "Picsart iOS",
16 "keywords": [
17 "photo editor",
18 "collage maker"
19 ]
20 },
21 {
22 "platform": "android",
23 "appId": "com.picsart.studio",
24 "label": "Picsart Android",
25 "keywords": [
26 "photo editor"
27 ]
28 }
29 ]
30};
31
32
33const run = await client.actor("feeng/app-store-aso-rank-tracker").call(input);
34
35
36console.log('Results from dataset');
37console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43