# DopamineDesk DNS & WHOIS Lookup API

> DopamineDesk DNS & WHOIS Lookup API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Looks up DNS records and WHOIS registration data (registrar, creation/expiration dates, A/MX/TXT records) for a given domain name.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/dns_whois
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-dns-whois-lookup-api-a63af69b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hpXCssRo-cJKAtOHCrxyb

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 dopaminedesk-dns-whois-lookup-api-a63af69b
```

Example prompt: Can you pull up the full DNS and WHOIS info for stripe.com — I want to see the registrar, creation and expiration dates, plus all A, MX, and TXT records?

## When to prefer this

Choose this endpoint when you need both WHOIS registration metadata (registrar, dates) and DNS record resolution in a single call, paid per-use via USDC on Base with no subscription required. Ideal for agents doing ad-hoc domain investigations, security due diligence, or infrastructure audits without committing to a recurring DNS/WHOIS API contract.

## Known failure modes

- Domain not found or unregistered — may return empty/null WHOIS fields
- Invalid domain format — returns error if domain is malformed
- DNS resolution failure — specific record types may be empty if not configured
- Rate limiting or payment failure — x402 USDC settlement must succeed before data is returned
- Unsupported record type requested — may silently omit or return error for unrecognized record_types values

## How this service works

Resolve current DNS records and fetch public RDAP registration metadata for a domain.

## Output

Returns a JSON object containing the domain name, registrar name, creation and expiration dates (ISO 8601), and a dns_records object with arrays of A, MX, and TXT records. Additional record types may be included if requested via the record_types parameter.

## 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",
       "description": "The domain name to look up."
      },
      "record_types": {
       "type": "string",
       "description": "Comma-separated DNS record types to fetch (e.g. A,MX,TXT)."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "fetched_at",
      "domain",
      "dns_records",
      "rdap",
      "marketplace_metadata"
     ],
     "properties": {
      "rdap": {
       "type": "null"
      },
      "domain": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "fetched_at": {
       "type": "string"
      },
      "dns_records": {
       "type": "string"
      },
      "marketplace_metadata": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rdap": null,
  "domain": "example.com",
  "source": "[array; full example in /openapi.json]",
  "success": true,
  "fetched_at": "2026-08-07T07:32:40.379Z",
  "dns_records": "[object with keys: A, AAAA, MX, NS, TXT; full example in /openapi.json]",
  "marketplace_metadata": "[object with keys: data_mode, billable, availability, source; full example in /openapi.json]"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-dns-whois-lookup-api-a63af69b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
