1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://apify.com"
14 }
15 ],
16 "domains": [
17 "apify.com"
18 ],
19 "searchQueries": [
20 "AI startup launch maker website"
21 ],
22 "manualSearchResults": [
23 {
24 "title": "Apify - Web scraping and automation platform",
25 "url": "https://apify.com",
26 "snippet": "Apify provides web scraping, automation, and data extraction tools."
27 }
28 ],
29 "manualPages": []
30};
31
32
33const run = await client.actor("runtime/domain-lead-enricher").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43