# AgentShelf IPv4 CIDR Regex Extractor

> AgentShelf IPv4 CIDR Regex Extractor is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-19).

Extracts up to 20 IPv4 CIDR block notation matches from a given text string using regex pattern matching.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/regex-cidr?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-ipv4-cidr-regex-extractor-f1b13e99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KoJgcZSFr1jdN9A9Eq-nv

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 agentshelf-ipv4-cidr-regex-extractor-f1b13e99 -d '<json body>'
```

Example prompt: Can you pull out all the IPv4 CIDR blocks from this firewall config text? Here's the content: 'Allow 10.0.0.0/8 and 192.168.1.0/24, deny 172.16.0.0/12 from external access.'

## When to prefer this

Use this endpoint when you need a fast, reliable regex-based extraction of IPv4 CIDR notation from arbitrary text without making outbound network requests. Prefer the free sandbox endpoint (POST /v1/sandbox/regex-cidr) for testing. Choose this over general-purpose LLM parsing when deterministic regex matching is required and cost predictability ($0.009 per call) is acceptable. Not suitable for IPv6 CIDR extraction or when more than 20 matches are expected.

## Known failure modes

- Empty match list returned and still billed $0.009 if no CIDR blocks are present in text
- Input text exceeds 100,000 character limit — request rejected
- Malformed or missing text field — request rejected
- Capped at 20 matches — additional CIDRs beyond the 20th are silently dropped
- Network errors or service unavailability causing HTTP 5xx responses

## How this service works

Call when an agent needs IPv4 CIDR blocks extracted from text, capped at 20 matches. An empty match list is billed. No network. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/regex-cidr first.

## Output

Returns a list of up to 20 IPv4 CIDR block strings matched from the input text (e.g. ['10.0.0.0/8', '192.168.1.0/24']). An empty list is returned and billed if no matches are found. Results are ordered by appearance in the text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "8.8.8.0/24"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-ipv4-cidr-regex-extractor-f1b13e99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
