1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "seeds": [
12 "iphone 15"
13 ],
14 "country": "US",
15 "sources": [
16 "google",
17 "bing",
18 "duckduckgo",
19 "youtube",
20 "amazon",
21 "ebay",
22 "yandex",
23 "baidu",
24 "naver"
25 ],
26 "expansionSlices": [],
27 "maxRequestsPerRun": 5000,
28 "maxConcurrency": 10,
29 "summaryTopN": 200,
30 "proxyConfiguration": {
31 "useApifyProxy": true
32 }
33};
34
35
36const run = await client.actor("habit.zhou/keyword-suggest-multi").call(input);
37
38
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46