API Documentation

Last Updated: 1, April 2025

Overview

This service provides publicly available data on hosting providers and their market share.

Disclaimer

This service is provided "as is" without any warranty. The data is collected from the public internet and may not be 100% accurate. We also have the right to make changes to the API and it's accessibility at any time.

All API Ussage have to follow our Terms of Service.

Get Started

Simply make a request to the API. No API Key required. The API is available at those routes:

/api/domain/<domain>

$ curl https://hoststats.xyz/papi/domain/contentgroup.ch
{
    "domain": "contentgroup.ch",
    "hosting_provider": "AS14061 DigitalOcean, LLC",
    "location": {
        "city": "Frankfurt am Main",
        "country": "DE",
        "region": "Hesse"
    }
}

/api/asn/AS<asn>

$ curl https://hoststats.xyz/papi/asn/AS5408
{
  "asn": "AS5408",
  "domains_hosted": 55,
  "location": {
    "city": "Athens",
    "country": "GR",
    "region": "Attica"
  },
  "name": "AS5408 National Infrastructures for Research and Technology S.A.",
  "total_locations": 17
}

/api/asn-details/AS<asn>

$ curl https://hoststats.xyz/papi/asn-details/AS8767
{
    "asn": "AS8767",
    "domains": [
      "https://3q2010.allianz.com",
      "https://annualreport2012.allianz.com",
      "https://c-date.de",
      "https://egmgolfprofi.de",
      ...
    ],
    "domains_hosted": 35,
    "location": {
      "city": "Munich",
      "country": "DE",
      "region": "Bavaria"
    },
    "name": "AS8767 M-net Telekommunikations GmbH",
    "total_locations": 3
}

/api/ns/<ns>

$ curl https://hoststats.xyz/papi/ns/dns2.iwelt-ag.net
{
    "domains": [
      "https://test.de",
      ...
    ],
    "nameserver": "dns2.iwelt-ag.net",
    "total_domains": ...
}

/api/ip/<ip>

$ curl https://hoststats.xyz/papi/ip/198.50.252.65
{
    "asn": "AS16276 OVH SAS",
    "domains": [
      "https://host.de"
    ],
    "ip": "198.50.252.65",
    "total_domains_hosted": 1
}

Python Example

$ python example.py
import requests

domain = "test.de"
url = f"https://hoststats.xyz/papi/domain/{domain}"
response = requests.get(url, verify=False)
        
print(response.json())