# IP Range to CIDR Converter

> IP Range to CIDR Converter is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts an IPv4 start-end address range into the minimal list of CIDR blocks that exactly cover it, along with the total address count.

## Facts

- Endpoint: GET https://intel.rallylive.ca/ip/range-to-cidr
- 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/ip-range-to-cidr-converter-1684b94d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CyCPBgOWWnNIGyiTqStJV

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 ip-range-to-cidr-converter-1684b94d
```

Example prompt: Convert the IP range 10.0.0.0 to 10.0.3.255 into the minimal set of CIDR blocks that cover it exactly, and tell me how many addresses that is.

## When to prefer this

Use this endpoint when you need to programmatically convert arbitrary IPv4 start-end ranges into properly minimized CIDR notation for use in firewall rules, security groups, or access control lists. It guarantees exact coverage with no overlaps and returns the fewest possible CIDR blocks. Prefer it over manual subnet calculators when working in automated workflows or agentic pipelines that require structured output.

## Known failure modes

- Invalid IPv4 address format returns an error
- Start address greater than end address returns an error
- Non-IPv4 addresses (e.g. IPv6) are not supported
- Missing required start or end parameters returns a validation error
- Payment failure (x402) prevents the query from being processed

## How this service works

IP range to CIDR converter: turns any IPv4 start-end range into the minimal list of CIDR blocks that cover it exactly, with the address count. Firewall and allowlist preparation. $0.01 per range.

## Output

Returns a minimal list of CIDR block strings (e.g. ['10.0.0.0/22']) that together exactly cover the requested IPv4 start-to-end range, along with the total count of IP addresses in that range. No gaps or overlaps are introduced.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/ip-range-to-cidr-converter-1684b94d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
