# x402 DNS Lookup API

> x402 DNS Lookup API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Performs DNS record lookups for a given domain, returning DNS records of a specified type, paid per-call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/dev/dns?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-dns-lookup-api-071ff317
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2x5Ab0LYhDMTHVGUroY4z

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 x402-dns-lookup-api-071ff317
```

Example prompt: Can you look up the A records for github.com using that pay-per-call DNS API?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call DNS resolution without API key setup, especially in agent workflows that already use x402 USDC micropayments on Base or Solana. Ideal for one-off DNS lookups where a subscription-based DNS API is overkill and micropayment convenience is valued.

## Known failure modes

- Domain not found or does not exist — empty or error response
- Invalid record type specified — may return error or empty result
- Malformed domain name input — API may reject with 4xx
- Payment not accepted or insufficient USDC balance — 402 response blocking the call
- Network timeout from DNS upstream resolver — slow or no response

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

Returns an object containing the requested DNS records for the specified domain, filtered by the given record type (default A) and optionally limited to specified fields such as name and value.

## 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": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Requires a domain name string, e.g. example.com"
      },
      "type": {
       "type": "string",
       "description": "Requires a DNS record type string: A, AAAA, MX, TXT, etc. (default A)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-dns-lookup-api-071ff317/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
