# Bot Bazaar IPv4 CIDR Subnet Calculator

> Bot Bazaar IPv4 CIDR Subnet Calculator is a paid API for AI agents from bot-bazaar.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Computes network address, broadcast address, netmask, total IPs, and usable host count for any IPv4 CIDR block.

## Facts

- Endpoint: GET https://bot-bazaar.fly.dev/v1/x402/cidr-subnet-calc?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bot-bazaar-ipv4-cidr-subnet-calculator-30a7f795
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_46z500zK6sr5oaiQOzSy-

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 bot-bazaar-ipv4-cidr-subnet-calculator-30a7f795
```

Example prompt: What are the network address, broadcast address, netmask, and usable host count for the CIDR block 10.0.0.0/22?

## When to prefer this

Choose this endpoint when you need a quick, reliable, programmatic breakdown of an IPv4 CIDR block without setting up local networking libraries. Ideal for cloud infrastructure automation, firewall rule validation, network documentation generation, or any agentic workflow that needs subnet metadata on demand.

## Known failure modes

- Invalid CIDR notation (e.g. missing prefix length) returns an error
- Out-of-range prefix length (>32) triggers a validation error
- Non-IPv4 addresses (e.g. IPv6) are not supported
- Missing 'cidr' query parameter results in a bad request response
- Payment failure or insufficient USDC balance prevents the call from completing

## How this service works

Compute network address, broadcast address, netmask, total IPs, and usable host count for any IPv4 CIDR block.

## Output

Returns the network address, broadcast address, netmask, total number of IP addresses, and usable host count for the given IPv4 CIDR block, enabling full subnet characterization.

## 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": {
      "cidr": {
       "type": "string",
       "description": "IPv4 CIDR block notation"
      }
     }
    }
   },
   "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/bot-bazaar-ipv4-cidr-subnet-calculator-30a7f795/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bot-bazaar.fly.dev](https://www.zero.xyz/host/bot-bazaar.fly.dev/llms.txt)
