# Polyform DNS Lookup API

> Polyform DNS Lookup API is a paid API for AI agents from api.polyform.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Performs a DNS A-record lookup for a given domain name, returning its resolved IP addresses, via a pay-per-call micropayment model.

## Facts

- Endpoint: GET https://api.polyform.org/v1/dns/lookup?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polyform-dns-lookup-api-838b2883
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O9pKVCnTQKscWIdpPtRH6

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 polyform-dns-lookup-api-838b2883
```

Example prompt: What IP address does api.github.com resolve to? Do a DNS A-record lookup for it.

## When to prefer this

Choose this endpoint when you need a lightweight, account-free, API-key-free DNS A-record resolution capability and are comfortable making micropayments in USDC on Base via the x402 protocol. Ideal for AI agents that need to resolve hostnames on-demand without setting up OAuth or managing API credentials. Best for low-volume, pay-per-use DNS lookups rather than high-frequency bulk resolution.

## Known failure modes

- Domain does not exist (NXDOMAIN) — may return empty records or an error response
- Network timeout if DNS resolution takes too long
- Invalid domain name format — malformed input may cause a 4xx error
- Payment failure or insufficient USDC balance — request blocked before DNS query is performed
- Rate limiting if micropayment is not processed correctly

## How this service works

Pay-per-call data endpoints for AI agents. USDC on Base via x402. No account, no API key — one micropayment per call.

## Output

Returns a JSON object containing the queried domain name, the DNS record type (e.g. 'A'), and an array of resolved records (e.g. IPv4 addresses). Example: {"name": "example.com", "type": "A", "records": ["93.184.216.34"]}.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "example.com",
  "type": "A",
  "records": [
   "93.184.216.34"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polyform-dns-lookup-api-838b2883/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.polyform.org](https://www.zero.xyz/host/api.polyform.org/llms.txt)
