1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "sp_intended_usage": "Describe your intended use...",
12 "sp_improvement_suggestions": "Share your suggestions here...",
13 "sp_contact": "Share your email here...",
14 "domains": [
15 "example.com",
16 "github.com",
17 "cloudflare.com"
18 ],
19 "maxItems": 5,
20 "recordTypes": [
21 "A",
22 "AAAA",
23 "MX",
24 "TXT",
25 "NS",
26 "SOA",
27 "CNAME",
28 "CAA"
29 ],
30 "checkSpfDmarcDkim": true,
31 "checkWhois": true,
32 "checkSsl": true,
33 "reverseDns": false,
34 "concurrency": 25
35};
36
37
38const run = await client.actor("jungle_synthesizer/dns-domain-audit").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