# Agent Data Tools: IPv4 CIDR Network Info & Membership Check

> Agent Data Tools: IPv4 CIDR Network Info & Membership Check is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-03).

Parses an IPv4 CIDR block and returns network metadata (first/last host, netmask, broadcast, address count) and optionally checks whether a given IP address belongs to that subnet.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/ip/cidr?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-ipv4-cidr-network-info-membership-check-d28c4d9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z1-OjRhV9Xeq40sq9mTpQ

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 agent-data-tools-ipv4-cidr-network-info-membership-check-d28c4d9a
```

Example prompt: Can you parse the CIDR block 192.168.1.0/24 and tell me the network address, broadcast address, netmask, and how many usable hosts it has — and also check whether 192.168.1.100 is in that range?

## When to prefer this

Choose this endpoint when you need fast, pay-per-call IPv4 subnet analysis without provisioning an API key or account. It is ideal for agents that occasionally need to parse CIDR blocks, count addresses, or perform IP membership tests as part of network configuration, security policy, or infrastructure automation workflows. It is not suitable for IPv6 or bulk subnet enumeration.

## Known failure modes

- Missing or malformed cidr parameter returns an error
- Invalid CIDR notation (e.g. wrong prefix length or non-IPv4) returns a validation error
- IPv6 CIDR input is not supported and will fail
- Payment failure via x402 results in no charge and no response body
- Network timeout from Cloudflare Worker edge returns a 5xx error

## How this service works

Details of an IPv4 network in CIDR notation: network and broadcast address, first and last usable host, netmask, number of addresses, and whether a given IP falls inside. Use for firewall rules and allowlists.

## Output

A JSON object containing: network (network address), first (first usable host IP), last (last usable host IP), broadcast (broadcast address), netmask (dotted-decimal), prefix (integer prefix length), addresses (total address count), usableHosts (usable host count), and optionally contains (boolean indicating if the supplied IP is within the subnet).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "cidr"
 ],
 "properties": {
  "ip": {
   "type": "string",
   "description": "Optional IPv4 address to test for membership"
  },
  "cidr": {
   "type": "string",
   "description": "IPv4 network in CIDR notation"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "last": {
   "type": "string"
  },
  "first": {
   "type": "string"
  },
  "prefix": {
   "type": "number"
  },
  "netmask": {
   "type": "string"
  },
  "network": {
   "type": "string"
  },
  "contains": {
   "type": "boolean"
  },
  "addresses": {
   "type": "number"
  },
  "broadcast": {
   "type": "string"
  },
  "usableHosts": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-ipv4-cidr-network-info-membership-check-d28c4d9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
