# Delx CIDR Contains

> Delx CIDR Contains is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Check whether a given IP address falls within a specified CIDR network range.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/cidr-contains?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-cidr-contains-f54a94d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Qwq2I5i0VxKwPiOVuoYgW

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 delx-cidr-contains-f54a94d2 -d '<json body>'
```

Example prompt: Is the IP address 192.168.5.42 inside the CIDR network 192.168.0.0/16?

## When to prefer this

Use this endpoint when an AI agent needs a fast, reliable, single-call check to determine IP-to-CIDR membership without running local networking libraries — especially useful in serverless or sandboxed agent environments that cannot execute native IP math. Prefer it over general-purpose code execution when you need a lightweight, auditable, paid-per-call microservice with no infrastructure setup.

## Known failure modes

- Invalid IP address format returns an error
- Malformed CIDR notation (e.g. missing prefix length) returns a validation error
- IPv6 address tested against IPv4 CIDR (or vice versa) may return mismatch or error
- Missing required fields (IP or CIDR) returns a 400-level error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Check whether an IP is inside a CIDR network for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

A boolean or structured result indicating whether the given IP address is contained within the specified CIDR network, along with any relevant metadata such as the parsed network range or confirmation of the match.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-cidr-contains-f54a94d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
