# IP-in-CIDR Check

> IP-in-CIDR Check 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).

Checks whether a given IPv4 address falls within a specified CIDR block, returning a boolean membership result.

## Facts

- Endpoint: GET https://intel.rallylive.ca/ip/in-range
- 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-in-cidr-check-7fe9acdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B2e9Yb67Z2wXTcxG4b0Rk

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-in-cidr-check-7fe9acdf
```

Example prompt: Can you check if 203.0.113.42 is within the CIDR block 203.0.113.0/24?

## When to prefer this

Choose this endpoint when you need a fast, lightweight, single-call check for IPv4-to-CIDR membership without setting up local networking libraries. Ideal for agent workflows doing firewall rule validation, allowlist enforcement, or IP log filtering where a simple true/false answer is needed on demand. Prefer it over general-purpose IP tools when the specific question is strictly subnet membership.

## Known failure modes

- Invalid IPv4 address format returns an error
- Invalid CIDR notation (e.g. missing prefix length) returns an error
- Missing required input parameter results in a 400-level response
- Payment not fulfilled results in a 402 Payment Required response
- Malformed query string (e.g. wrong delimiter) may return an unexpected result

## How this service works

Check whether an IPv4 address belongs to a CIDR block. Give '<ip> in <cidr>' (or comma separated). Firewall rule validation, allowlist checks and log filtering. $0.01 per check.

## Output

Returns a boolean indicating whether the given IPv4 address belongs to the specified CIDR block, along with the queried IP and CIDR range for confirmation. Useful for programmatic access control decisions, log filtering, and firewall rule validation.

## 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-in-cidr-check-7fe9acdf/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)
