1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "phrases": [
12 "I wish there was an app",
13 "wish there was a tool",
14 "wish there was a website",
15 "someone should build",
16 "someone should make an app",
17 "somebody should make",
18 "I'd pay for an app",
19 "I'd pay for",
20 "I would pay for a tool",
21 "is there a tool that",
22 "is there an app that",
23 "is there a website that",
24 "why is there no app",
25 "wish there was an extension",
26 "is there a browser extension",
27 "someone should create an app",
28 "somebody should build",
29 "I would pay for an app",
30 "wish someone would make"
31 ],
32 "subreddits": [
33 "SomebodyMakeThis",
34 "AppIdeas",
35 "software",
36 "SaaS"
37 ]
38};
39
40
41const run = await client.actor("kurtholes/krakt-wishwire").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