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 "standing desk"
13 ],
14 "engines": [
15 "google",
16 "youtube",
17 "amazon",
18 "bing",
19 "duckduckgo",
20 "ebay"
21 ],
22 "expansion": "alphabet+questions",
23 "country": "us",
24 "language": "en",
25 "depth": 1,
26 "depth2MaxSeeds": 10,
27 "maxIdeasPerSeed": 500,
28 "minEngines": 1,
29 "onlyIntents": [],
30 "excludeWords": [],
31 "concurrency": 4,
32 "proxyConfiguration": {
33 "useApifyProxy": false
34 }
35};
36
37
38const run = await client.actor("that_red_bird/keyword-ideas-autocomplete").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48