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 "https://vercel.com",
13 "https://wpengine.com",
14 "https://kinsta.com"
15 ],
16 "filterTechnologies": [
17 "Amazon Web Services",
18 "Google Cloud",
19 "Microsoft Azure",
20 "Cloudflare",
21 "Vercel",
22 "Netlify",
23 "WP Engine",
24 "Kinsta",
25 "SiteGround",
26 "Fly.io",
27 "Render",
28 "GitHub Pages",
29 "Heroku",
30 "DigitalOcean",
31 "Pantheon",
32 "Flywheel",
33 "GoDaddy Website Builder",
34 "Bluehost",
35 "Hostinger",
36 "OVH",
37 "Hetzner",
38 "Linode",
39 "Akamai",
40 "Fastly",
41 "Amazon CloudFront",
42 "Google Cloud CDN",
43 "Firebase",
44 "Amazon S3",
45 "Windows Server",
46 "IIS",
47 "Nginx",
48 "Apache HTTP Server",
49 "LiteSpeed",
50 "Caddy",
51 "OpenResty"
52 ],
53 "onlyMatching": false
54};
55
56
57const run = await client.actor("keystonelabs/hosting-provider-detector").call(input);
58
59
60console.log('Results from dataset');
61console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
62const { items } = await client.dataset(run.defaultDatasetId).listItems();
63items.forEach((item) => {
64 console.dir(item);
65});
66
67