# IPv4 Prefix Routing-Security Intelligence

> IPv4 Prefix Routing-Security Intelligence 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-14).

Returns a full routing-security report for an IPv4 address or prefix, including origin AS, RIR allocation details, RPKI ROA status, and more/less-specific ROA coverage.

## Facts

- Endpoint: GET https://api.agentstools.dev/netintel/prefix
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ipv4-prefix-routing-security-intelligence-58fda48f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S7865mfZs3fPftWsmXq8z

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 ipv4-prefix-routing-security-intelligence-58fda48f
```

Example prompt: Can you pull the full routing-security report for 1.1.1.0/24 — I need the origin AS, which RIR allocated it and when, its country, allocation status, and whether it has a valid RPKI ROA plus any more-specific or less-specific ROA coverage?

## When to prefer this

Use this endpoint when you need a combined routing + allocation + RPKI security assessment for a single IPv4 address or prefix in one call, rather than querying RIR WHOIS, BGP looking glasses, and RPKI validators separately. Ideal for threat intelligence enrichment, IP reputation checks, or validating whether a BGP announcement is RPKI-valid.

## Known failure modes

- Private or reserved IP addresses (RFC1918, loopback, etc.) are not publicly routed and may return no BGP/RIR data
- Malformed CIDR prefix or invalid IP address format returns a 400 error
- Prefixes not yet visible in global BGP tables may show no origin AS
- RIR WHOIS data may be stale or incomplete for recently allocated blocks
- RPKI ROA data may lag real-time BGP announcements by minutes to hours

## How this service works

Full routing-security report for an IPv4 address or prefix: the origin AS, the RIR allocation of the block (who, when, country, status), the RPKI ROA status against that origin, and more-specific and less-specific ROA coverage.

## Output

A JSON object containing: the origin autonomous system (AS) number for the prefix, the RIR (Regional Internet Registry) allocation record including the organization, allocation date, country code, and status, the RPKI ROA validation result (valid, invalid, or not-found) against the origin AS, and coverage details for more-specific and less-specific ROAs overlapping the queried prefix.

## 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",
     "properties": {
      "ip": {
       "type": "string",
       "description": "Alias for prefix when passing a single address"
      },
      "prefix": {
       "type": "string",
       "description": "Public IPv4 prefix in CIDR form or a bare address"
      }
     }
    }
   },
   "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/ipv4-prefix-routing-security-intelligence-58fda48f/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)
