x402tools DNS Lookup API

The DNS Lookup API from x402tools — 1 operation(s) for dns lookup.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /v1/lookup DNS Record Lookup #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x402tools-xyz:x402tools-xyz-dns-lookup-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x402tools-xyz-dns-lookup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: x402tools DNS Lookup API
  description: Pay-per-call utility APIs for AI agents. No API keys, no subscriptions. USDC micropayments on Base via x402 protocol.
  version: 1.1.0
  contact:
    name: x402tools
    url: https://x402tools.xyz
    email: admin@x402tools.xyz
  x-payment-protocol: x402
  x-payment-network: eip155:8453 (Base)
  x-payment-token: USDC
servers:
- url: https://qr.x402tools.xyz
  description: QR Code Generator
- url: https://snap.x402tools.xyz
  description: Screenshot Capture
- url: https://dns.x402tools.xyz
  description: DNS Lookup
- url: https://docparse.x402tools.xyz
  description: DocParse (HTML/PDF → JSON)
- url: https://guard.x402tools.xyz
  description: Guardex — Prompt Injection Screening
- url: https://mailcheck.x402tools.xyz
  description: Mailcheck — Email Validation
- url: https://rendex.x402tools.xyz
  description: Rendex — HTML/URL → PDF
- url: https://visionex.x402tools.xyz
  description: Visionex — Image OCR
tags:
- name: DNS Lookup
paths:
  /v1/lookup:
    servers:
    - url: https://dns.x402tools.xyz
      description: DNS Lookup
    get:
      operationId: dnsLookup
      summary: DNS Record Lookup
      description: Get A, AAAA, MX, NS, TXT, and SOA records for any domain. Costs $0.02 USDC per call.
      x-price: $0.02
      x-server: https://dns.x402tools.xyz
      tags:
      - DNS Lookup
      parameters:
      - name: domain
        in: query
        required: true
        description: Domain name to look up
        schema:
          type: string
          example: example.com
      responses:
        '200':
          description: DNS records retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsResponse'
              example:
                domain: example.com
                records:
                  A:
                  - 93.184.216.34
                  AAAA:
                  - 2606:2800:220:1:248:1893:25c8:1946
                  MX:
                  - priority: 10
                    exchange: mail.example.com
                  NS:
                  - a.iana-servers.net
                  - b.iana-servers.net
                  TXT:
                  - v=spf1 -all
                  SOA:
                    nsname: a.iana-servers.net
                    hostmaster: noc.dns.icann.org
                    serial: 2024012345
                    refresh: 7200
                    retry: 3600
                    expire: 1209600
                    minttl: 3600
                query_time_ms: 45
        '400':
          description: Invalid domain
        '402':
          description: Payment Required
        '404':
          description: Domain does not exist (NXDOMAIN)
components:
  schemas:
    DnsResponse:
      type: object
      properties:
        domain:
          type: string
        records:
          type: object
          properties:
            A:
              type: array
              items:
                type: string
            AAAA:
              type: array
              items:
                type: string
            MX:
              type: array
              items:
                type: object
                properties:
                  priority:
                    type: integer
                  exchange:
                    type: string
            NS:
              type: array
              items:
                type: string
            TXT:
              type: array
              items:
                type: string
            SOA:
              type: object
              properties:
                nsname:
                  type: string
                hostmaster:
                  type: string
                serial:
                  type: integer
                refresh:
                  type: integer
                retry:
                  type: integer
                expire:
                  type: integer
                minttl:
                  type: integer
        query_time_ms:
          type: integer