1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "searchTerms": [
13 "fitness tracker"
14 ],
15 "appIds": [
16 "com.whatsapp",
17 "https://play.google.com/store/apps/details?id=com.spotify.music"
18 ],
19 "developers": [
20 "WhatsApp LLC",
21 "https://play.google.com/store/apps/dev?id=5700313618786177705"
22 ],
23 "chartCollections": [
24 "top-free"
25 ],
26 "chartCategories": [
27 "APPLICATION"
28 ],
29 "maxResults": 20,
30 "maxReviews": 100,
31 "country": "us",
32 "language": "en",
33 "proxyConfiguration": {
34 "useApifyProxy": false
35 }
36};
37
38
39const run = await client.actor("alkausari_mujahid/google-play-store-scraper").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