# kosoyy tools — URL Code Encoder/Decoder/Parser

> kosoyy tools — URL Code Encoder/Decoder/Parser is a paid API for AI agents from alert-woodpecker-2022.kosoyyagent.deno.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-16).

Encodes, decodes, or parses URL-safe strings/codes using deterministic utility operations, paid $0.001 USDC per call via x402.

## Facts

- Endpoint: POST https://alert-woodpecker-2022.kosoyyagent.deno.net/api/url-code?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kosoyy-tools-url-code-encoder-decoder-parser-9721774f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cgtD-pGS9OR46dVd0mk6O

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 kosoyy-tools-url-code-encoder-decoder-parser-9721774f -d '<json body>'
```

Example prompt: Can you URL-encode this string for me: 'hello world & foo=bar'? Use the encode operation.

## When to prefer this

Choose this endpoint when you need a quick, deterministic, pay-per-use URL encoding, decoding, or parsing operation without spinning up local utilities — especially in agent workflows that already use the x402 micropayment protocol on Solana or Base and want a hosted, stateless transformation service.

## Known failure modes

- 402 Payment Required returned when no valid USDC micropayment is attached to the request
- Missing required 'data' field returns a validation error
- Invalid 'op' enum value (not encode/decode/parse) returns an error
- Malformed or incompatible data string for the chosen operation may produce an error result
- Network/server timeouts from Deno Deploy infrastructure

## How this service works

Deterministic utility tools, paid per call in USDC (Solana or Base). Unpaid requests return a 402 offer.

## Output

Returns a JSON object with an 'ok' boolean indicating success, a 'route' string identifying which operation was run, and a 'result' object containing the transformed or parsed output data (encoded string, decoded string, or parsed URL components depending on the operation).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "op": {
   "enum": [
    "encode",
    "decode",
    "parse"
   ],
   "type": "string"
  },
  "data": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ok": {
   "type": "boolean"
  },
  "route": {
   "type": "string"
  },
  "result": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kosoyy-tools-url-code-encoder-decoder-parser-9721774f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alert-woodpecker-2022.kosoyyagent.deno.net](https://www.zero.xyz/host/alert-woodpecker-2022.kosoyyagent.deno.net/llms.txt)
