# ApexAPI Regex Test

> ApexAPI Regex Test is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.144119/call, status unknown (last checked 2026-09-14).

Tests a string against a regular expression pattern to determine if it matches

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/tools/regex/test
- Price: $0.144119/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-regex-test-a22bad6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qNda5pR7GDgCswuEl_Z-h

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 apexapi-regex-test-a22bad6d -d '<json body>'
```

Example prompt: Can you test if the string 'hello@example.com' matches the regex pattern '^[\w.-]+@[\w.-]+\.\w{2,}$'?

## When to prefer this

Use this endpoint when you need a quick, server-side regex test without setting up local regex libraries, or when validating user input patterns in an agent workflow that requires programmatic pattern matching at runtime.

## Known failure modes

- Invalid or malformed regex pattern causing parse error
- Missing input string or pattern in the request body
- Rate limiting or payment failure returning 402 status
- Regex pattern causes catastrophic backtracking or timeout
- Empty query parameter returning ambiguous result

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a JSON object indicating whether the input string matched the provided regular expression, potentially including matched groups or capture details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-regex-test-a22bad6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
