# Delx Commerce URL Encode Component

> Delx Commerce URL Encode Component is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Percent-encodes a text string using URL component encoding (encodeURIComponent semantics) and returns the encoded result

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/url-encode-component?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-url-encode-component-78594a0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w_TN6Q6ZAZOWF84TILVcJ

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

Example prompt: Can you URL-encode the string 'hello agent world' so I can safely use it as a query parameter in a URL?

## When to prefer this

Choose this endpoint when an AI agent needs to programmatically URL-encode arbitrary text as part of an automated workflow, especially when no local encoding library is available or when a verifiable, pay-per-result model (USDC on Base/Solana via x402) is preferred over free self-hosted utilities. Useful in agent pipelines that construct dynamic URLs from user-supplied strings.

## Known failure modes

- Input text exceeds 100,000 character limit — request rejected
- Malformed JSON body — 400 error
- Payment not provided or insufficient USDC — 402 Payment Required
- Network timeout if Delx Commerce service is unavailable

## How this service works

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

## Output

A JSON object containing the percent-encoded version of the input text (e.g. spaces become %20, special characters become their percent-hex equivalents), the action name ('encode'), and the schema identifier 'delx/url-encode-component/v1'.

## 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-commerce-url-encode-component-78594a0e/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)
