Data tools / Email checks, uptime and web reading

MX lookup API: MX records, mail provider, SPF and DMARC of a domain

Use when you need the mail setup of a domain: MX records by priority, the hosted mail provider behind them (Google Workspace, Microsoft 365, Zoho, Proton, Fastmail, Mimecast, Proofpoint and 40 more by MX host), SPF and DMARC with the policy, plus A, AAAA, NS, TXT and SOA. Live DNS over DoH. $0.02 per call (USDC or USDT). Or pay by stablecoin transfer with a one-time quote: see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/v1/mx-lookup?domain=stripe.com'
ParameterRequiredWhat it is
domainyesDomain name, e.g. stripe.com (a URL is accepted; only its host is used)

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

What the answer contains

Top-level fields of the JSON answer, read from the example below:

Source, as the answer itself states it:

Example answer

{
  "count": 1,
  "items": [
    {
      "type": "mx_lookup",
      "domain": "stripe.com",
      "domain_exists": true,
      "dns_status": "NOERROR",
      "mx_records": [
        {
          "priority": 10,
          "host": "aspmx.l.google.com"
        },
        {
          "priority": 20,
          "host": "alt1.aspmx.l.google.com"
        }
      ],
      "null_mx": false,
      "implicit_mx": false,
      "accepts_mail": true,
      "email_provider": "Google Workspace",
      "email_provider_kind": "mailbox",
      "provider_basis": "most preferred MX aspmx.l.google.com ends with google.com",
      "mx_providers": [
        {
          "host": "aspmx.l.google.com",
          "priority": 10,
          "provider": "Google Workspace",
          "kind": "mailbox",
          "matched_suffix": "google.com"
        }
      ],
      "has_spf": true,
      "spf": "v=spf1 ip4:198.2.180.60/32 ip4:13.111.2.227/32 include:spf1.stripe.com include:greenhouse-outbound-mail.stripe.com include:_spf.qualtrics.com ~all",
      "spf_count": 1,
      "has_dmarc": true,
      "dmarc": "v=DMARC1; p=reject; pct=100; fo=1; rua=mailto:dmarc-reports@stripe.com; ruf=mailto:dmarc-forensics@stripe.com;",
      "dmarc_policy": "reject",
      "a": [
        "18.202.131.124"
      ],
      "aaaa": [],
      "ns": [
        "ns-1087.awsdns-07.org"
      ],
      "soa": "ns-1882.awsdns-43.co.uk awsdns-hostmaster.amazon.com 1 900 900 1209600 3600",
      "txt": [
        "MS=ms80697640"
      ],
      "dnssec_validated": false,
      "resolver": "cloudflare",
      "errors": []
    }
  ],
  "query_time_ms": 457,
  "checked_at": "2026-12-01T17:22:46.584Z",
  "sources": [
    "https://cloudflare-dns.com/dns-query"
  ],
  "note": "DNS read at the time shown from Cloudflare 1.1.1.1 over DNS-over-HTTPS (a query it did not answer was asked at LibreDNS). email_provider comes from a fixed table of MX host suffixes for the most preferred MX: a security gateway hides the mailbox host behind it; null means self-hosted or not in the table. accepts_mail follows RFC 7505 (null MX) and RFC 5321 (no MX: the A/AAAA address takes mail). Not a mailbox check."
}

Free sample, no payment: /v1/mx-lookup/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/email-uptime-web-reader, tool mx_lookup. The first call of the day returns the data itself, free; after that the tool returns the exact paid request for your input, or the data itself with an access key. The core tools are also on https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp, and any tool can be called there by name.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools · Trust and limits