# Delx URL-Encode Component

> Delx URL-Encode Component 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).

URL-encodes a text string using encodeURIComponent-style encoding, suitable for safe query string values and URL path segments

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/url-encode-component
- 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-url-encode-component-f1c4e780
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SNSLPGVvAZDFCNeeGkQUz

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-url-encode-component-f1c4e780 -d '<json body>'
```

Example prompt: URL-encode this text so I can safely use it as a query parameter: 'hello world & goodbye/world?yes=no'

## When to prefer this

Prefer this endpoint when you need encodeURIComponent-style encoding (i.e., encoding suitable for query parameter values and path segments, encoding characters like '/', '?', '&', '=', '#') rather than full URL encoding. Choose this over the sibling 'Delx URL Encode' endpoint when you specifically want component-level encoding rather than general URL encoding or decoding. Ideal for agents building dynamic URLs from user-supplied text without needing an API key or subscription.

## Known failure modes

- Input text exceeds 100,000 character limit — request rejected with a validation error
- Empty or missing 'text' field — returns a structured validation error without billing
- Malformed JSON request body — returns a parsing error
- Network or payment (x402) authentication failure — call not processed

## How this service works

URL-encode a component. Use before building query strings or safe path segments. Returns encodeURIComponent-style output for the input text. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns a JSON object containing the percent-encoded version of the input text, applying encodeURIComponent-style encoding where characters like spaces, ampersands, slashes, question marks, and other special characters are replaced with their %XX hex equivalents, making the string safe for use as a URL query parameter or path segment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "description": "Primary text input (max 100k chars). Processed first-party; not retained as a dataset."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "hello%20agent%20world",
  "action": "encode",
  "schema": "delx/url-encode-component/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-url-encode-component-f1c4e780/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)
