# AgentShelf IPv4 Regex Extractor

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

Extracts all IPv4 addresses from a given text string using regex, returning up to 20 matches.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/regex-ipv4?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-ipv4-regex-extractor-73388312
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mSW7tliSmfH0-5Ikgp0Z1

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-regex-extractor-73388312 -d '<json body>'
```

Example prompt: Can you pull out all the IPv4 addresses from this server log text? Here's the log: '2024-01-10 ERROR connection from 192.168.1.45 refused, forwarded to 10.0.0.1, notify admin at 203.0.113.5'

## When to prefer this

Choose this endpoint when you need fast, deterministic regex-based IPv4 extraction from text without any LLM or network calls. It is ideal for processing log files, configuration snippets, or security reports where you need reliable, exact IP address extraction. Use the free sandbox endpoint POST /v1/sandbox/regex-ipv4 first to test before incurring the $0.01 USDC charge. Prefer this over LLM-based extraction when determinism, cost control, and speed matter more than fuzzy matching.

## Known failure modes

- Empty match list returned when no IPv4 addresses are present in the text — call is still billed
- Input text exceeding 100,000 characters will be rejected
- Malformed or missing 'text' field causes a validation error
- IPv6 addresses are not matched — only IPv4
- More than 20 matches are capped at 20; additional addresses beyond the limit are not returned

## How this service works

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

## Output

Returns a list of up to 20 IPv4 address strings matched from the input text. If no IPv4 addresses are found, an empty list is returned — but the call is still billed at $0.01 USDC. The response includes the matched addresses in the order they appear in the input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "8.8.8.8"
   ],
   "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-regex-extractor-73388312/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)
