1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "email marketing software",
13 "crm software",
14 "project management tool",
15 "seo tools",
16 "keyword research tool",
17 "content marketing",
18 "lead generation",
19 "marketing automation",
20 "landing page builder",
21 "email verifier",
22 "web scraping api",
23 "social media scheduler",
24 "google analytics alternative",
25 "ab testing tool",
26 "customer support software",
27 "invoice software",
28 "hr software",
29 "applicant tracking system",
30 "video editing software",
31 "password manager"
32 ],
33 "mode": "metrics",
34 "maxResults": 100,
35 "country": "us",
36 "language": "en",
37 "includeMonthlyTrend": true
38};
39
40
41const run = await client.actor("garnet_puppet/keyword-search-volume").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