# URI Encode/Decode Tool (x402 Micro-Payment)

> URI Encode/Decode Tool (x402 Micro-Payment) is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.0001/call, status unknown (last checked 2026-09-13).

Encodes or decodes URI/URL text components using a micro-payment x402 USDC API gateway

## Facts

- Endpoint: GET https://gpt55.558686.xyz/v1/tools/uri-codec
- Price: $0.0001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uri-encode-decode-tool-x402-micro-payment-3c4a127a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hgpUmNpZsbfydW51GsgES

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 uri-encode-decode-tool-x402-micro-payment-3c4a127a
```

Example prompt: Can you URI-encode this text so I can safely put it in a query parameter: 'hello world & foo=bar'?

## When to prefer this

Use this endpoint when you need a quick, stateless URI encode or decode operation via a micro-payment API without a subscription. Suitable for one-off or low-volume transformations where cost per call ($0.0001 USDC) is acceptable. Prefer over local implementations when operating in an x402-native payment flow on Base.

## Known failure modes

- Missing required 'text' query parameter returns validation error
- Text exceeding 20,000 characters rejected
- Invalid mode value (not 'encode' or 'decode') returns error
- Payment failure or insufficient USDC balance blocks request
- Non-GET method returns 405
- Service unreachable returns network timeout

## How this service works

Encode or decode URI components or full URI strings without calling an upstream model. Pay up to $0.001 per request with x402 USDC on Base. Public paid calls are limited to 1500 input characters and 128 output tokens.

## Output

Returns a JSON object with ok (boolean), tool name ('uriCodec'), and the encoded or decoded result string, plus a fetchedAt timestamp.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "mode": "encode",
   "text": "hello world & foo=bar",
   "component": true
  }
 }
}
```

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": true
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "mode": {
       "enum": [
        "encode",
        "decode"
       ],
       "type": "string"
      },
      "text": {
       "type": "string",
       "maxLength": 20000,
       "minLength": 1
      },
      "component": {
       "type": "boolean"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "tool": {
       "type": "string"
      },
      "fetchedAt": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uri-encode-decode-tool-x402-micro-payment-3c4a127a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
