# DNS Lookup API (Revenue Swarm x402)

> DNS Lookup API (Revenue Swarm x402) is a paid API for AI agents from eu-tender-x402-v2-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Performs a public DNS lookup for a given domain and returns its DNS records (A, MX, TXT, etc.) paid via x402 USDC microtransaction.

## Facts

- Endpoint: GET https://eu-tender-x402-v2-production.up.railway.app/api/dns-lookup?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dns-lookup-api-revenue-swarm-x402-c4cb38dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ylZPj9Cs-CbpMNgV04MFV

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 dns-lookup-api-revenue-swarm-x402-c4cb38dd
```

Example prompt: Can you look up the DNS records for openai.com — I want to see the A and MX records?

## When to prefer this

Use this endpoint when an AI agent needs programmatic, pay-per-call DNS record resolution without setting up a dedicated DNS client library. It is ideal for lightweight, one-off lookups in agentic workflows where DNS data is needed alongside other Revenue Swarm intelligence (EU tenders, wallet data). At $0.001 per call it is cost-effective for infrequent or ad-hoc resolution needs.

## Known failure modes

- Domain not found or does not exist — empty records array returned
- Invalid domain format — request rejected with validation error
- Unsupported DNS record type requested — may return empty or error
- Payment failure via x402 — request blocked if USDC payment not processed
- Network timeout if upstream DNS resolver is unreachable

## How this service works

Pay-per-call B2B sales lead and procurement intelligence plus Base wallet data for agents. Search EU tenders/RFPs or inspect a Base wallet. Payments use x402 USDC on Base.

## Output

Returns a JSON object containing the queried domain name, a list of DNS records each with type, name, value, and TTL, the total record count, the requested record types, and a timestamp of when the lookup was generated.

## 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": {
      "type": {
       "type": "string",
       "description": "Comma-separated DNS record types"
      },
      "domain": {
       "type": "string",
       "description": "Public DNS domain such as example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "records": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "generated_at": {
       "type": "string"
      },
      "record_count": {
       "type": "integer"
      },
      "requested_types": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "domain": "example.com",
  "product": "DNS Records Lookup",
  "records": [
   {
    "ttl": 300,
    "name": "example.com",
    "type": "A",
    "value": "93.184.216.34"
   }
  ],
  "record_count": 1,
  "requested_types": [
   "A"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dns-lookup-api-revenue-swarm-x402-c4cb38dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eu-tender-x402-v2-production.up.railway.app](https://www.zero.xyz/host/eu-tender-x402-v2-production.up.railway.app/llms.txt)
