{"slug":"1gateway-dev-v1-domain-lookup-e4a36d","title":"Use when an agent must check a domain","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/domain/lookup","category":"other","description":"Use when an agent must check a domain: does it resolve, who hosts its DNS and mail, is email authenticated, how old is it, when does it expire. Input: domain (e.g. example.com; URLs accepted). Output: JSON DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA), mail provider, parsed SPF and DMARC, DNS ","price_listed":0.0045,"price_asked":0.0045,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":23,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"domain":"google.com"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"domain":{"description":"Public domain or hostname (punycode for IDNs, e.g. xn--...); a URL is reduced to its hostname. Internal/reserved names → 400 (not charged)","examples":["google.com"],"maxLength":2048,"type":"string"}},"required":["domain"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"cache":{"type":"string"},"dns":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object"},"dnsProvider":{"type":"string"},"dnsStatus":{"type":"string"},"domain":{"type":"string"},"mail":{"properties":{"acceptsMail":{"type":"boolean"},"dmarc":{"properties":{"aggregateReportTargets":{"type":"integer"},"alignmentDkim":{"type":"string"},"alignmentSpf":{"type":"string"},"forensicReportTargets":{"type":"integer"},"pct":{"type":"integer"},"policy":{"type":"string"},"present":{"type":"boolean"},"subdomainPolicy":{"type":"null"}},"type":"object"},"provider":{"type":"string"},"spf":{"properties":{"all":{"type":"string"},"includes":{"items":{"type":"string"},"type":"array"},"lookupMechanisms":{"type":"integer"},"multipleRecords":{"type":"boolean"},"policy":{"type":"string"},"present":{"type":"boolean"},"record":{"type":"string"}},"type":"object"}},"type":"object"},"mx":{"items":{"properties":{"host":{"type":"string"},"priority":{"type":"integer"}},"type":"object"},"type":"array"},"notes":{"items":{"type":"string"},"type":"array"},"registration":{"properties":{"ageDays":{"type":"integer"},"available":{"type":"boolean"},"created":{"type":"string"},"daysUntilExpiry":{"type":"integer"},"dnssec":{"type":"boolean"},"domain":{"type":"string"},"expires":{"type":"string"},"nameservers":{"items":{"type":"string"},"type":"array"},"registeredDomain":{"type":"string"},"registrar":{"properties":{"ianaId":{"type":"string"},"name":{"type":"string"}},"type":"object"},"source":{"type":"string"},"status":{"items":{"type":"string"},"type":"array"},"updated":{"type":"string"}},"type":"object"},"resolves":{"type":"boolean"},"sources":{"items":{"type":"string"},"type":"array"},"verificationTokens":{"items":{"type":"string"},"type":"array"}},"required":["domain","resolves","dnsStatus","dns","mx","mail","dnsProvider","verificationTokens","registration","cache","sources","notes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0045,"price_match":true,"latency_ms":23,"error":null}],"description_full":"Use when an agent must check a domain: does it resolve, who hosts its DNS and mail, is email authenticated, how old is it, when does it expire. Input: domain (e.g. example.com; URLs accepted). Output: JSON DNS records (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA), mail provider, parsed SPF and DMARC, DNS provider, and RDAP registration (registrar, created, expires, age in days, status, DNSSEC). No contact data. Example: ?domain=google.com","last_updated":"2026-10-10T10:19:18.606Z","schemes":["exact"]}