# Vextorium IP Subnet Calculator

> Vextorium IP Subnet Calculator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-15).

Calculates full subnet details for an IPv4/IPv6 CIDR block and optionally checks whether a given IP address belongs to that subnet.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/ip-subnet?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-ip-subnet-calculator-aaf5576c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YOqFhybodgWaP-MV1SzkA

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 vextorium-ip-subnet-calculator-aaf5576c -d '<json body>'
```

Example prompt: Can you calculate the full subnet details for 192.168.1.64/26 — I need the network address, mask, wildcard, broadcast, first and last host, number of usable hosts, and also check whether 192.168.1.100 is in that subnet?

## When to prefer this

Choose this endpoint when you need comprehensive subnet arithmetic in a single call — network, mask, wildcard, broadcast, host range, and optional IP membership testing — for both IPv4 and IPv6. It is ideal for agents performing network planning, firewall configuration, infrastructure validation, or any task requiring IP address classification (private, public, loopback) without needing a local library or subnet math.

## Known failure modes

- Invalid CIDR notation causes a parsing error or error response
- Missing required 'cidr' field returns a validation error
- Host bits set in the CIDR address (e.g. 192.168.1.5/24 vs 192.168.1.0/24) may be normalized or rejected
- Invalid ip_check IP address format may return null membership result
- IPv6 features like class are not applicable and may return null
- Payment failure or x402 authorization issue prevents the request from completing

## How this service works

558 pay-per-call data APIs for AI agents: Solana and EVM on-chain data, tokenized stocks, DeFi, Hyperliquid, economy and official statistics, FX, validation, web and developer tools. Pay in USDC via x402.

## Output

Returns a JSON object containing: the normalized CIDR, network address, subnet mask, wildcard mask, broadcast address, first and last usable host addresses, number of usable hosts, total address count, IP version (4 or 6), address type (private, public, loopback, etc.), IP class (for IPv4), and — if an ip_check was provided — whether that IP belongs to the subnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cidr": {
   "type": "string",
   "description": "Network in CIDR notation, e.g. 10.0.0.0/16 or 2001:db8::/48"
  },
  "ip_check": {
   "type": "string",
   "description": "IP to test for membership (optional)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cidr": "192.168.1.64/26",
  "mask": "255.255.255.192",
  "type": "private",
  "class": "C",
  "input": "192.168.1.77/26",
  "prefix": 26,
  "network": "192.168.1.64",
  "version": 4,
  "ip_check": {
   "ip": "192.168.1.100",
   "belongs": true
  },
  "wildcard": "0.0.0.63",
  "broadcast": "192.168.1.127",
  "last_host": "192.168.1.126",
  "first_host": "192.168.1.65",
  "useful_hosts": 62,
  "total_addresses": 64
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-ip-subnet-calculator-aaf5576c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
