# Delx Commerce — Query String Parser

> Delx Commerce — Query String Parser is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Parses a raw URL or query string into structured key-value pairs, with automatic redaction of sensitive tokens.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/query-string-parse?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-query-string-parser-949c303a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W3PMFoFE0klNZaeI9Dga_

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-commerce-query-string-parser-949c303a -d '<json body>'
```

Example prompt: Can you parse the query string from this URL and pull out all the key-value pairs, redacting anything that looks like a token or secret: https://example.com/search?q=agents&token=abc123&page=1

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call, no-signup utility to parse URL query strings into structured key-value pairs with built-in sensitive-value redaction. It is ideal for agent workflows that handle arbitrary URLs and need to inspect or log query parameters without leaking secrets. Prefer it over manual string splitting when you need reliable URL-encoding handling and automatic token redaction.

## Known failure modes

- Malformed or empty query string input may result in an empty pairs array
- Ambiguous URL encoding may cause incorrect parsing of special characters
- If the query field is missing entirely, the API may return an error or empty result
- Redaction heuristics may over-redact legitimate non-sensitive values or miss unusual token formats

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with an array of key-value pairs extracted from the query string, where each pair has a key, an optional value, and a boolean redacted flag. Also includes the total pair count and schema version. Sensitive values such as tokens may be redacted and flagged accordingly.

## 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-commerce-query-string-parser-949c303a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
