# Hosting Checker – Who Hosts a Website: Host, CDN & Email (`gazidev/hosting-checker`) Actor

Hosting checker for any list of domains: hosting company, ASN, server country, CDN (Cloudflare, Fastly, Akamai), DNS provider and email provider (Google Workspace, Microsoft 365, Proofpoint). Segment lead lists by host or mailbox. DNS only, no API key. $0.40 per 1,000 domains.

- **URL**: https://apify.com/gazidev/hosting-checker.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 domain checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hosting Checker – Who Hosts a Website: Host, CDN, DNS & Email Provider

**Find out who hosts any list of domains.** Paste domains, URLs or e-mail addresses and get one clean row per domain: the **hosting company** (or platform such as Shopify, Netlify, WordPress VIP), its **network (ASN)** and **server country**, the **CDN** in front of it (Cloudflare, Fastly, Akamai, CloudFront…), the **DNS provider**, and the **mail provider** (Google Workspace, Microsoft 365, Zoho…) with the **security gateway** (Proofpoint, Mimecast, Barracuda…) in front of the mailbox.

It works from **DNS records only**. No website is opened, so nothing is blocked and no proxies or API keys are needed.

**$0.40 per 1,000 domains.** Failed lookups, invalid lines and duplicates are free.

### What can you use it for?

- **Segment a lead list**: companies on Microsoft 365 vs Google Workspace, shops on Shopify, sites on GoDaddy or Hetzner, companies behind Proofpoint or Mimecast.
- **Sales for hosting, cloud, migration and e-mail security**: find who uses which provider before you call.
- **Cold e-mail routing**: split recipients by mailbox provider and gateway.
- **Audits and due diligence**: where are 500 client domains hosted, who runs their DNS, which ones do not exist any more or are parked?
- **Market research**: count hosts, CDNs and mail providers over a list (the run summary has the totals).

### Input

| Field | What it does |
|---|---|
| `domains` | Domains, URLs or e-mail addresses, one per line |
| `bulkText` | Paste a list or a CSV |
| `datasetId` + `datasetField` | Read domains from an Apify dataset (picker). Dot paths and lists work. |
| `include` | Any of `host`, `cdn`, `dns`, `mail` (default: all, same price) |
| `onlyMailProviders` | Output only domains on these mail providers or gateways. Domains that do not match produce no row but are still charged (the lookups are the same). |
| `maxItems` | Cap on unique domains (default 1,000, at most 50,000) |
| `concurrency` | Domains checked in parallel (default 20) |

```json
{
  "domains": ["allbirds.com", "https://basecamp.com/about", "jane@ghost.org"],
  "include": ["host", "cdn", "dns", "mail"]
}
```

### Output

```json
{
  "input": "allbirds.com",
  "domain": "allbirds.com",
  "status": "OK",
  "checkedHost": "www.allbirds.com",
  "ip": ["23.227.38.74", "2620:127:f00f:e::"],
  "cname": ["shops.myshopify.com"],
  "asn": 13335,
  "asOrg": "Cloudflare, Inc.",
  "hostBrand": "Shopify",
  "hostType": "platform",
  "sharedServer": true,
  "cdn": "Cloudflare",
  "evidence": ["23.227.38.74 is in AS13335 Cloudflare, Inc.", "CNAME shops.myshopify.com"],
  "dnsProvider": "MarkMonitor",
  "nameservers": ["ns1.markmonitor.com", "ns2.markmonitor.com"],
  "mailProvider": "Microsoft 365",
  "mailProviderBasis": "mx",
  "mailGateway": null,
  "mx": ["0 allbirds-com.mail.protection.outlook.com"],
  "source": "DNS; DB-IP Lite ASN 2026-11 / country 2026-11 - IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0"
}
```

| Field | Meaning |
|---|---|
| `hostBrand` | Hosting company or platform. If the network is not in our provider table, this is the network owner's name. `null` when a CDN hides the server. |
| `hostOrg` | Owner of the server's network (AS organisation), only when no CDN hides it |
| `hostType` | `cloud`, `hosting`, `platform` (Shopify, Wix, Netlify…), `network` (own or other network), `behind-cdn`, `private` |
| `asn`, `asOrg` | Network that announces the IP (for CDN sites: the CDN's network) |
| `isCloud` | `true` for cloud providers such as AWS, Azure, Google Cloud, Hetzner; `null` when unknown |
| `serverCountry` | Country of the server IP (estimate); empty for CDN and anycast addresses |
| `sharedServer` | `true` if the address belongs to a multi-tenant platform or a known shared-hosting machine; otherwise empty (never a claim that it is dedicated) |
| `checkedHost`, `wwwDiffers`, `otherHost` | `example.com` and `www.example.com` are both checked. If they sit on different providers, the more informative one is reported and the other is in `otherHost`. |
| `dnsProvider`, `dnsProviderBasis` | From the name servers (`ns`), the SOA record of white-label name servers (`soa`), `own-domain`, or the name-server domain if unknown (`ns-domain`) |
| `mailProvider`, `mailProviderBasis` | `mx` = named by the MX record. `spf` = the MX is a gateway and SPF names exactly one mailbox provider (likely, not certain). `own-domain` = the company runs its own mail host name. `mx-domain` = unknown provider, domain of the MX host. |
| `mailGateway` | Proofpoint, Mimecast, Barracuda, Cisco, Sophos, Trend Micro, Broadcom, Hornetsecurity and others |
| `mailProviderCandidates` | All mailbox providers named in the SPF record |
| `mailServerOrg` | Network of the mail server, for own or unknown mail hosts |
| `mailStatus` | `mx`, `no-mx`, `null-mx` (refuses mail) |
| `parking` | Name of the parking or for-sale service, if the domain uses one |
| `status` | `OK`, `NXDOMAIN`, `NO_RECORDS`; free: `LOOKUP_FAILED`, `PARTIAL`, `INVALID_INPUT` |

The run summary (`OUTPUT` in the key-value store) counts the top hosts, CDNs, DNS and mail providers.

### Pricing

| Event | Price | Charged when |
|---|---|---|
| Domain checked | $0.0004 ($0.40 / 1,000) | Once per unique domain whose DNS answered, including domains that do not exist (`NXDOMAIN`) and domains hidden by `onlyMailProviders` |
| Actor start | $0.00005 | Once per run |

Failed lookups (timeout, SERVFAIL), invalid lines and duplicates are free. If you set a maximum charge, the run stops cleanly at that limit.

### Limits – please read

- **Behind a CDN, the real server is invisible.** For a site proxied by Cloudflare the row says `cdn: "Cloudflare"` and `hostBrand: null`. DNS cannot reveal the origin, and this Actor does not try to bypass the CDN.
- Hosting resellers and managed hosts on a big cloud (e.g. SiteGround on Google Cloud) show the cloud. The DNS provider often shows the reseller.
- CDNs are recognised by CNAME, reverse DNS and network. An Akamai cache inside a telecom network without a CNAME can look like that telecom.
- `mailProviderBasis: "spf"` is an inference. A company can list a provider in SPF and not use its mailboxes.
- DNS answers depend on the location of the run, and IP data is the monthly DB-IP Lite edition. Country is an estimate.
- Only providers in our tables get a friendly name (about 100 networks, 60 platforms, 20 CDNs, 90 DNS providers, 60 mail providers, 25 gateways). Others appear under their network or domain name.

Speed: 241 domains took 28 seconds in our test. Expect 1-2 minutes per 1,000 domains.

### How is this different from our other Actors?

| Actor | Use it when |
|---|---|
| **Hosting Checker** (this one) | You want provider **names**: host, CDN, DNS and mail provider per domain, for segmentation |
| [Bulk DNS Lookup](https://apify.com/gazidev/bulk-dns-lookup) | You want the **raw records**, SPF/DMARC/DKIM audit, propagation or change monitoring |
| [Bulk IP Lookup](https://apify.com/gazidev/bulk-ip-lookup) | You already have **IP addresses** and need city, ASN, PTR or RDAP owner |
| [Domain Intel](https://apify.com/gazidev/domain-intel) | You need registration data (WHOIS/RDAP), SSL expiry and HTTP checks of a domain |
| [Tech Stack Detector](https://apify.com/gazidev/tech-stack-detector) | You need the **software** of a site (CMS, frameworks, analytics); it opens the page |
| [IP Risk Checker](https://apify.com/gazidev/ip-risk-checker) | You need Tor/hosting risk flags for IPs |

### Use with AI agents (Apify MCP)

Add this Actor through the [Apify MCP server](https://mcp.apify.com) and ask: *"Which of these 200 companies use Microsoft 365 and are not behind an e-mail gateway?"* or *"Who hosts ghost.org?"* Fields are flat and documented, so agents can filter them directly.

### Data sources and attribution

- **IP Geolocation by [DB-IP](https://db-ip.com)**: IP to ASN Lite and IP to Country Lite, licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Keep the attribution (the `source` field) and a link to https://db-ip.com if you republish the data. The current monthly files are downloaded once per run.
- **Public DNS records**, published by the domain owners and queried through the system resolver (Google Public DNS as fallback), at most 200 queries per second.
- Provider tables: our own work.

This Actor is not affiliated with DB-IP or with any of the providers it names. Names are trademarks of their owners.

### FAQ

**Does it visit the websites?** No. Only DNS queries are sent.

**Can it find the origin behind Cloudflare?** No, see Limits.

**Do subdomains work?** Yes. `shop.example.com` is checked as entered. If it has no MX, mail is taken from `example.com` (`mailDomain` shows which).

**Why am I charged for NXDOMAIN?** The same lookups are made, and "this domain does not exist" is a useful answer for list cleaning.

**A provider is missing or wrong?** Open an issue with the domain and we will add it.

# Actor input Schema

## `domains` (type: `array`):

One per line. URLs (`https://www.example.com/page`) and e-mail addresses (`jane@example.com`) are turned into domains. Duplicates are skipped; invalid entries get a free error row.

## `bulkText` (type: `string`):

Newline, comma or space separated domains, URLs or e-mails. In a CSV the first domain-looking cell of each row is used. Clear the Domains field if you only want this list.

## `datasetId` (type: `string`):

Optional: a dataset (e.g. the output of a lead scraper) with a domain, website or e-mail column. Clear the Domains field if you only want this list.

## `datasetField` (type: `string`):

Field with the domain, URL or e-mail. Dot paths (`company.website`) and lists work.

## `include` (type: `array`):

Leave all four on for the full picture (same price). Fewer checks run faster.

## `onlyMailProviders` (type: `array`):

Output only domains whose mail provider or mail gateway contains one of these words, e.g. `Google Workspace`, `Microsoft 365`, `Proofpoint`. Domains that do not match produce no row but are still charged, because the same lookups are made.

## `maxItems` (type: `integer`):

Stop after this many unique domains. 1,000 domains take about 1-2 minutes.

## `concurrency` (type: `integer`):

How many domains are checked at the same time (DNS queries are capped at 200 per second).

## Actor input object example

```json
{
  "domains": [
    "allbirds.com",
    "basecamp.com",
    "ghost.org",
    "nytimes.com",
    "hetzner.com"
  ],
  "datasetField": "domain",
  "include": [
    "host",
    "cdn",
    "dns",
    "mail"
  ],
  "maxItems": 1000,
  "concurrency": 20
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "allbirds.com",
        "basecamp.com",
        "ghost.org",
        "nytimes.com",
        "hetzner.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/hosting-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "allbirds.com",
        "basecamp.com",
        "ghost.org",
        "nytimes.com",
        "hetzner.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/hosting-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "allbirds.com",
    "basecamp.com",
    "ghost.org",
    "nytimes.com",
    "hetzner.com"
  ]
}' |
apify call gazidev/hosting-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/hosting-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EPX8AhzwmSu0V1tcZ/builds/jLnsy6pzaIp5PCVyG/openapi.json
