# Delx Query String

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

Parse a URL query string into structured key-value pairs, or build a query string from structured data.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/query-string
- Price: $0.001/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-107f5e0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G4CEVEhvfZwjs9D8rLUNr

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-107f5e0b -d '<json body>'
```

Example prompt: Parse this query string into its individual parameters for me: 'utm_source=newsletter&utm_medium=email&campaign=spring2025&ref=home'

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call utility to parse or construct URL query strings without running your own parsing logic. Ideal for agents that frequently handle URLs, form submissions, or HTTP request building and want a reliable hosted utility at low cost ($0.001 USDC).

## Known failure modes

- Malformed input query string may return a parsing error or partial result
- Invalid characters or encoding may cause encode/decode failures
- Missing required operation type (parse vs. build) may result in a 400 error
- Empty input string may return an empty result or error

## How this service works

Parse or build URL query strings for $0.001 USDC.

## Output

Returns either a structured key-value object representing parsed query parameters, or a properly encoded query string built from the provided input parameters, depending on the operation requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-query-string-107f5e0b/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)
