# ASN Registry & Routing Metadata Lookup

> ASN Registry & Routing Metadata Lookup is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns registry and routing metadata for an Autonomous System Number (ASN), including AS name, RIR, country, allocation date/status, datacenter/hosting classification, and announced prefix count.

## Facts

- Endpoint: GET https://api.agentstools.dev/netintel/asn
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/asn-registry-routing-metadata-lookup-51259fd6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6izvy0nYOTtkAX0oXpYUO

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-registry-routing-metadata-lookup-51259fd6
```

Example prompt: What can you tell me about AS15169 — who owns it, which RIR allocated it, what country it's in, when it was allocated, and is it a datacenter or hosting provider?

## When to prefer this

Use this endpoint when you need authoritative registry-level metadata about an autonomous system number, especially when you need to identify the owning organization, geographic origin, RIR, hosting classification, or routing footprint of an AS. Prefer this over IP geolocation endpoints when you already have the ASN and need BGP/registry-level detail rather than per-IP data.

## Known failure modes

- Invalid or malformed ASN returns a 400 error
- ASN not found in registry returns a 404 or empty result
- ASN without announced prefixes may return zero prefix count
- Network or upstream registry timeout returns a 5xx error
- ASN provided without 'AS' prefix may still be accepted per schema

## How this service works

Registry and routing metadata for an autonomous system: the AS name, the Regional Internet Registry that allocated it, the country, the allocation date and status, a datacenter/hosting classification and the announced-prefix count.

## Output

Returns structured metadata for the queried ASN: the AS name (organization), the Regional Internet Registry (e.g. ARIN, RIPE, APNIC) that allocated it, the country of allocation, the allocation date and status, a datacenter/hosting classification flag, and the total count of announced IP prefixes.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "asn"
     ],
     "properties": {
      "asn": {
       "type": "string",
       "description": "Autonomous system number, with or without an AS prefix"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/asn-registry-routing-metadata-lookup-51259fd6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
