# 1gateway Domain Lookup

> 1gateway Domain Lookup is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-10).

Looks up DNS records, mail configuration, email authentication, and RDAP registration data for any public domain in one call.

## Facts

- Endpoint: GET https://1gateway.dev/v1/domain/lookup?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-domain-lookup-ce6cee28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-1j6arRGDgHiFlhg2eyka

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 1gateway-domain-lookup-ce6cee28
```

Example prompt: Can you do a full domain check on stripe.com — I want to see if it resolves, who hosts its DNS, what mail provider they use, whether SPF and DMARC are set up, and when the domain was registered and expires?

## When to prefer this

Choose this endpoint when you need a comprehensive, single-call snapshot of a domain's DNS health, mail configuration, and registration history — especially for lead vetting, email deliverability validation, phishing triage, or security research. It combines DNS resolution, mail provider identification, SPF/DMARC parsing, and RDAP registration in one request rather than requiring separate DNS, WHOIS, and email-auth queries. Prefer it over raw DNS resolvers when you also need registration age and parsed email authentication. Note: returns no personal contact data.

## Known failure modes

- 400 if domain is internal, reserved, or invalid — not charged
- Domain resolves=false if the domain has no DNS records
- Missing registration data if RDAP is unavailable for the TLD
- SPF/DMARC fields may be null/absent=false if records are not configured
- Truncated or partial DNS results if the authoritative server is unreachable or rate-limits

## How this service works

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

## Output

Returns a JSON object containing: whether the domain resolves, all DNS record types (A, AAAA, CNAME, MX, NS, TXT, CAA, SOA), the identified mail provider, parsed SPF (policy, includes, mechanisms, multi-record flag) and DMARC (policy, alignment, reporting targets), DNS provider, and RDAP registration data (registrar, created/expires dates, age in days, status flags, DNSSEC). Also includes cache status, data sources, and any advisory notes. No WHOIS contact data is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "examples": [
        "google.com"
       ],
       "maxLength": 2048,
       "description": "Public domain or hostname (punycode for IDNs, e.g. xn--...); a URL is reduced to its hostname. Internal/reserved names → 400 (not charged)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "domain",
      "resolves",
      "dnsStatus",
      "dns",
      "mx",
      "mail",
      "dnsProvider",
      "verificationTokens",
      "registration",
      "cache",
      "sources",
      "notes"
     ],
     "properties": {
      "mx": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "host": {
          "type": "string"
         },
         "priority": {
          "type": "integer"
         }
        }
       }
      },
      "dns": {
       "type": "object",
       "additionalProperties": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      },
      "mail": {
       "type": "object",
       "properties": {
        "spf": {
         "type": "object",
         "properties": {
          "all": {
           "type": "string"
          },
          "policy": {
           "type": "string"
          },
          "record": {
           "type": "string"
          },
          "present": {
           "type": "boolean"
          },
          "includes": {
           "type": "array",
           "items": {
            "type": "string"
           }
          },
          "multipleRecords": {
           "type": "boolean"
          },
          "lookupMechanisms": {
           "type": "integer"
          }
         }
        },
        "dmarc": {
         "type": "object",
         "properties": {
          "pct": {
           
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-domain-lookup-ce6cee28/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
