# DeFi Intel Agent Gateway – Regex & Cron Validator

> DeFi Intel Agent Gateway – Regex & Cron Validator is a paid API for AI agents from defi-intel-agent-gateway.gg-neo15.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates a regex pattern and a cron expression, returning validity, a match example, and the next 5 scheduled fire times.

## Facts

- Endpoint: POST https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/code/regex-cron-eval
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-intel-agent-gateway-regex-cron-validator-18bd9904
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PYiB2HC2CbBKL0ii0MK9f

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 defi-intel-agent-gateway-regex-cron-validator-18bd9904 -d '<json body>'
```

Example prompt: Can you validate this regex `^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$` and this cron expression `0 9 * * 1-5` — tell me if they're valid, give me a match example for the regex, and show the next 5 times the cron will fire?

## When to prefer this

Choose this endpoint when you need a deterministic, low-latency, pay-per-call validation of both regex and cron expressions together without setting up an API key or account. Ideal for agents automating developer workflows, CI/CD pipelines, or scheduling checks that need a quick sanity-check on pattern and schedule correctness. Prefer it over LLM-based guessing when you need reliable, authoritative validity results with concrete next-fire-time outputs.

## Known failure modes

- Catastrophic backtracking regex patterns are explicitly unsupported and may be rejected or time out
- Invalid cron syntax returns a validity=false response with an error message
- Malformed request body (missing regex or cron fields) returns a 400-level error
- Payment failure via x402 returns a 402 Payment Required response

## How this service works

Validate a regex and a cron expression deterministically, with the next 5 fire times. Returns match example + validity. DO NOT use for catastrophic backtracking patterns. — $0.001 USDC/call on Base. Pay-per-call via x402 — no API key, no account. Free samples daily.

## Output

Returns a JSON object containing: validity booleans for both the regex and cron expression, a sample string that matches the regex, and an array of the next 5 scheduled fire timestamps for the cron expression.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-intel-agent-gateway-regex-cron-validator-18bd9904/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-intel-agent-gateway.gg-neo15.workers.dev](https://www.zero.xyz/host/defi-intel-agent-gateway.gg-neo15.workers.dev/llms.txt)
