# Delx Query String Parse

> Delx Query String Parse is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Parses query string pairs from a raw URL or query string and redacts credential-like keys, returning structured JSON

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/query-string-parse
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-query-string-parse-9e6b842a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W20eVsb1dZKVhnRos0qih

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 delx-query-string-parse-9e6b842a -d '<json body>'
```

Example prompt: Parse the query string from this URL and redact any credential-like keys: 'https://example.com/search?q=hello&api_key=abc123&token=xyz789&page=2'

## When to prefer this

Use this endpoint when you already have a URL or query string in memory and need a deterministic, cheap, stateless parse with credential redaction — no network fetch, no external dependencies. Prefer it over regex-based parsing when you want structured JSON output and automatic masking of secret-like keys in a single step.

## Known failure modes

- Malformed or missing query string returns empty or error JSON
- Ambiguous key-value separators may cause incorrect parsing
- Non-standard encoding (e.g. nested arrays, repeated keys) may be partially handled
- Missing 'query' field in request body causes validation error

## How this service works

Parse query pairs and redact credential-like keys without fetching — call when parsing query pairs and redacting secret-like keys. Use on text/URLs the agent already holds—adjacent to high-volume extract demand, never advertised as general web or X search. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media gen…

## Output

A deterministic JSON object containing the parsed query parameter key-value pairs, with credential-like keys (e.g. api_key, token, secret) redacted, derived entirely from the supplied input string with no external fetching.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Raw query string or URL whose query pairs will be parsed."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pairs": [
   {
    "key": "q",
    "value": "agents",
    "redacted": false
   },
   {
    "key": "token",
    "redacted": true
   },
   {
    "key": "page",
    "value": "1",
    "redacted": false
   }
  ],
  "schema": "delx/util-query-string-parse/v1",
  "pair_count": 3,
  "values_may_be_redacted": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-query-string-parse-9e6b842a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
