# ASN Lookup via X402-BROKER Gateway

> ASN Lookup via X402-BROKER Gateway is a paid API for AI agents from mcp-gateway.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Looks up Autonomous System Number (ASN) information for a given domain, returning network/routing metadata about who owns and operates that domain's IP space.

## Facts

- Endpoint: GET https://mcp-gateway.agentdiet.dev/v1/asn-lookup?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/asn-lookup-via-x402-broker-gateway-590abb3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KETv3-0D4zEDP4VPdtPXh

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 asn-lookup-via-x402-broker-gateway-590abb3d
```

Example prompt: Can you look up the ASN information for cloudflare.com and tell me which autonomous system and network operator is behind it?

## When to prefer this

Use this endpoint when you need quick ASN/network ownership lookups for domains and are already operating within the x402/USDC micropayment ecosystem on Base. It is best suited for agents doing network intelligence, security research, or infrastructure analysis that need ASN data without setting up a dedicated WHOIS or BGP data provider.

## Known failure modes

- Missing or invalid domain query parameter returns an error
- Domain does not resolve to a known ASN returns empty data
- Payment not settled in USDC on Base results in 402 response
- Malformed input schema (missing required 'type' or 'method' fields) causes validation error
- Rate limiting or quota exceeded on the gateway

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with status 'ok' and a data object containing ASN-related network information for the queried domain, plus a roi_proof field indicating compression ratio metadata from the gateway.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/asn-lookup-via-x402-broker-gateway-590abb3d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-gateway.agentdiet.dev](https://www.zero.xyz/host/mcp-gateway.agentdiet.dev/llms.txt)
