1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "domains": [
12 "google.com",
13 "apple.com",
14 "microsoft.com",
15 "amazon.com",
16 "cloudflare.com",
17 "github.com",
18 "stripe.com",
19 "shopify.com",
20 "netflix.com",
21 "wikipedia.org",
22 "mozilla.org",
23 "wordpress.org",
24 "apache.org",
25 "python.org",
26 "nodejs.org",
27 "wikimedia.org",
28 "cloudflare.net",
29 "akamai.net",
30 "identity.digital",
31 "example.ai"
32 ],
33 "proxyConfiguration": {
34 "useApifyProxy": false
35 }
36};
37
38
39const run = await client.actor("talcoe/rdap-whois").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49