# MoneyTools IP/CIDR Calculator

> MoneyTools IP/CIDR Calculator is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-05).

Performs IPv4/IPv6 subnet math: computes network address, range, size, netmask, wildcard mask, type (private/reserved), and supports contains-check and subnet splitting.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/ip-cidr?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-ip-cidr-calculator-d5e44a69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rVei4yoOwTQrbp9WOIsUh

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 moneytools-ip-cidr-calculator-d5e44a69
```

Example prompt: What are the network address, IP range, netmask, wildcard mask, and total host count for 10.20.30.0/22? Also check if 10.20.31.7 is inside that subnet.

## When to prefer this

Choose this endpoint when you need precise, programmatic IPv4 or IPv6 subnet math — especially network/broadcast address computation, host count, netmask/wildcard derivation, private/reserved classification, IP membership checks, or CIDR splitting — rather than a general networking lookup or DNS resolution service. Ideal for infrastructure automation, firewall rule generation, and network planning workflows that require structured JSON output.

## Known failure modes

- Invalid or malformed CIDR notation returns an error (not charged)
- Split prefix length smaller than or equal to input prefix length returns an error
- Contains IP outside valid format returns a parse error
- Free tier exhausted (10/day) without payment credentials returns 402 Payment Required
- Network errors or timeouts result in no charge

## How this service works

IP / CIDR calculator: IPv4/IPv6 subnet math: network, range, size, netmask/wildcard, private/reserved type, contains-check and subnet split. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing subnet details including network address, broadcast address, IP range start/end, total and usable host count, netmask, wildcard mask, address type (private/public/reserved), result of a contains-check if requested, list of split subnets if a new prefix was provided, plus payment metadata indicating charge status and transaction info.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cidr"
     ],
     "properties": {
      "cidr": {
       "type": "string",
       "examples": [
        "10.20.30.0/22"
       ],
       "description": "CIDR or IP"
      },
      "split": {
       "type": "number",
       "examples": [
        "24"
       ],
       "description": "new prefix length"
      },
      "contains": {
       "type": "string",
       "examples": [
        "10.20.31.7"
       ],
       "description": "IP to test"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-ip-cidr-calculator-d5e44a69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
