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 "id": "photo-app",
14 "store": [
15 "apple",
16 "google"
17 ],
18 "name": "#1 Best FREE Photo Editor!!! 📸",
19 "subtitle": "Better than Snapchat filters",
20 "keywords": "photo, editor,photos,instagram,app,filter,filters,android",
21 "shortDescription": "Download now - 50% off Pro today only",
22 "description": "Top rated photo editor.\n\"Best app I ever used!\" - Happy user\nShare your edits straight to Instagram and TikTok."
23 },
24 {
25 "id": "budget-app",
26 "store": [
27 "apple",
28 "google"
29 ],
30 "name": "Budget Planner: Money Tracker",
31 "subtitle": "Expenses, bills and savings",
32 "keywords": "expense,bills,savings goal,debt payoff,paycheck",
33 "promotionalText": "Spring sale: Premium is 40% off until April 30.",
34 "shortDescription": "Track spending, plan bills and reach savings goals.",
35 "description": "Track spending, plan bills and set savings goals. Export reports to Excel. Sync across your devices."
36 }
37 ]
38};
39
40
41const run = await client.actor("ultimatemc/app-store-listing-policy-checker").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51