๐ŸŒ Domain Checker API

Easy-to-use API for checking domain DNS records. Perfect for AI tools and automation.

๐Ÿ“– Quick Start

Use this API to check SPF, DKIM, DMARC, MX, and nameserver records for any domain.

Endpoint:
https://nhmohio.com/domain-checkup.html?domain=example.com&format=json
Alternative API endpoint:
https://nhmohio.com/api/domain-check.js?domain=example.com

๐Ÿ”ง Parameters

Parameter Required Description Example
domain Yes The domain name to check example.com
format No Response format. Use "json" for JSON output json

๐Ÿ“ค Response Format

The API returns a JSON object with the following structure:

{
  "success": true,
  "domain": "example.com",
  "timestamp": "2025-01-08T12:00:00.000Z",
  "summary": {
    "overall_status": "ok",
    "issues_count": 0,
    "issues": [],
    "all_checks_passed": true
  },
  "records": {
    "nameservers": {
      "status": "found",
      "nameservers": [...],
      "provider": {...}
    },
    "spf": {
      "status": "ok",
      "record": "v=spf1 include:_spf.google.com ~all",
      "issues": []
    },
    "dmarc": {
      "status": "ok",
      "record": "v=DMARC1; p=quarantine; rua=mailto:[email protected]",
      "issues": []
    },
    "dkim": {
      "status": "ok",
      "record": "...",
      "foundSelector": "google",
      "issues": [],
      "selectors": {...}
    },
    "mx": {
      "status": "ok",
      "records": [
        {"priority": 10, "exchange": "mx1.example.com"}
      ],
      "isMicrosoft365": false,
      "isGoogleWorkspace": true,
      "issues": []
    }
  }
}

๐Ÿ“Š Status Values

Each record check returns a status value:

  • ok - Record found and properly configured
  • found - Record found but may have issues
  • missing - Record not found
  • error - Error occurred while checking
  • configured - Record configured via CNAME (DKIM)

๐Ÿ’ก Usage Examples

JavaScript/Fetch

async function checkDomain(domain) { const response = await fetch(`https://nhmohio.com/domain-checkup.html?domain=${domain}&format=json`); const data = await response.json(); return data; } // Usage const result = await checkDomain('google.com'); console.log(result);

Python/Requests

import requests import json def check_domain(domain): url = f"https://nhmohio.com/domain-checkup.html" params = {"domain": domain, "format": "json"} response = requests.get(url, params=params) return response.json() # Usage result = check_domain('google.com') print(json.dumps(result, indent=2))

cURL

curl "https://nhmohio.com/domain-checkup.html?domain=google.com&format=json"
๐Ÿ’ก Note for AI Tools: This API is designed to be easily accessible by AI assistants. Simply append ?domain=DOMAIN_NAME&format=json to the URL to get structured JSON data. No authentication required. The API uses DNS-over-HTTPS (DoH) for privacy and reliability.

๐Ÿงช Test the API