{"uid":"cap_cgtD-pGS9OR46dVd0mk6O","slug":"kosoyy-tools-url-code-encoder-decoder-parser-9721774f","name":"kosoyy tools — URL Code Encoder/Decoder/Parser","description":"Deterministic utility tools, paid per call in USDC (Solana or Base). Unpaid requests return a 402 offer.","url":"https://alert-woodpecker-2022.kosoyyagent.deno.net/api/url-code?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["data"],"properties":{"op":{"enum":["encode","decode","parse"],"type":"string"},"data":{"type":"string"}}},"responseSchema":{"type":"object","properties":{"ok":{"type":"boolean"},"route":{"type":"string"},"result":{"type":"object"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I1eBNJ4agBOgVUgcvG_vv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes, decodes, or parses URL-safe strings/codes using deterministic utility operations, paid $0.001 USDC per call via x402.","exampleAgentPrompt":"Can you URL-encode this string for me: 'hello world & foo=bar'? Use the encode operation.","exampleUseCases":[{"title":"Encode string for safe URL embedding","prompt":"I need to URL-encode this text so I can safely put it in a query parameter: 'search query: cats & dogs (2024)'. Please encode it."},{"title":"Decode a percent-encoded URL string","prompt":"Can you decode this URL-encoded string back to plain text for me? Here it is: 'hello%20world%20%26%20foo%3Dbar'"},{"title":"Parse a URL code into components","prompt":"I have this URL code 'path%2Fto%2Fresource%3Fid%3D42' — can you parse it and show me its structured components?"}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:31:19.290Z","isFirstParty":false,"canonicalSlug":"kosoyy-tools-url-code-encoder-decoder-parser-9721774f"}