# Swift Bot Labs CIDR Split

> Swift Bot Labs CIDR Split is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Splits a CIDR block into equal subnets of a given prefix length and returns the list of resulting subnet addresses

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/ip/split?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-cidr-split-de76293a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_epm_vkIf7xeg0HqwHsTyQ

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 swift-bot-labs-cidr-split-de76293a
```

Example prompt: Split 10.0.0.0/22 into /24 subnets and give me the full list of resulting networks.

## When to prefer this

Use this endpoint when you need a fast, deterministic, pay-per-call CIDR subdivision without setting up an account or managing API keys. It is ideal for automation pipelines that occasionally need subnet enumeration and prefer micro-payments over subscriptions. Choose it over general networking libraries when operating in a serverless or agent context without access to native IP math libraries.

## Known failure modes

- Invalid CIDR notation returns an error
- New prefix shorter than or equal to parent prefix is rejected
- newPrefix not provided causes a 400 bad request
- Limit parameter set too high may be capped or return truncated=true
- Payment not provided or invalid x402 header causes 402 response

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with: the parent CIDR block, the requested new prefix length, the total number of possible subnets, the actual list of subnet CIDR strings returned, the count returned, and a truncated flag indicating whether the result was limited.

## 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"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cidr",
      "newPrefix"
     ],
     "properties": {
      "cidr": {
       "type": "string"
      },
      "limit": {
       "type": "string"
      },
      "newPrefix": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "cidr-split",
  "result": {
   "total": "4",
   "parent": "10.0.0.0/22",
   "subnets": [
    "10.0.0.0/24",
    "10.0.1.0/24",
    "10.0.2.0/24",
    "10.0.3.0/24"
   ],
   "returned": 4,
   "newPrefix": 24,
   "truncated": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-cidr-split-de76293a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
