# Industrial Platform Web Tools – URL Code Encoder/Decoder

> Industrial Platform Web Tools – URL Code Encoder/Decoder is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Encodes or decodes text using URL (percent) encoding, accessible as a machine-payable x402 utility

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/url/code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/industrial-platform-web-tools-url-code-encoder-decoder-dc4b653c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nXeHEZFoH4F-K7-s-0ptz

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 industrial-platform-web-tools-url-code-encoder-decoder-dc4b653c -d '<json body>'
```

Example prompt: Take this string 'Hello World! 你好 & more?' and URL-encode it so I can safely include it as a query parameter — use encode mode.

## When to prefer this

Choose this endpoint when you need a quick, machine-payable URL encoding or decoding operation without standing up your own infrastructure. Ideal for AI agents operating in x402-enabled payment flows that need to encode/decode strings on the fly as part of a larger workflow (e.g., constructing URLs, processing API responses).

## Known failure modes

- Input text exceeds 250,000 character limit — request rejected
- Missing required 'text' field in body — validation error
- Invalid 'mode' value (must be 'encode' or 'decode') — enum validation failure
- Malformed JSON body — parse error
- Payment not received or insufficient USDC — x402 payment required error

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object containing the transformed text — either the URL-encoded (percent-encoded) version of the input string, or the decoded plain-text version, depending on the chosen mode.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/industrial-platform-web-tools-url-code-encoder-decoder-dc4b653c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
