{"uid":"cap_EAVBB7eTPtNKv-946cKsr","slug":"centralcity-ai-url-percent-encoder-decoder-fa3df613","name":"centralcity.ai URL Percent-Encoder/Decoder","description":"Percent-encodes a text for a URL, or decodes a percent-encoded text.","url":"https://centralcity.ai/api/public/x402/off_rusq4ijknusdlwss?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["encode","decode"],"type":"string","description":"encode or decode the text."},"text":{"type":"string","description":"The text, at most 64 KiB."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AoEepWj0T27ImXquFHfRN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Percent-encodes a plain text string for safe use in a URL, or decodes a percent-encoded string back to plain text.","exampleAgentPrompt":"Can you percent-encode this text for me so I can use it safely in a URL: 'Hello World! This is a test & demo'?","exampleUseCases":[{"title":"Encoding query parameter values","prompt":"I need to URL-encode this string to use it as a query parameter: 'search results for: coffee & tea (hot)'"},{"title":"Decoding a percent-encoded URL fragment","prompt":"Can you decode this percent-encoded text back to plain text: 'caf%C3%A9%20au%20lait%20%26%20croissants'?"},{"title":"Preparing text for a REST API path segment","prompt":"I need to encode the string 'John Doe / Product Manager' so I can safely embed it in a URL path segment."}],"resultDescription":"A JSON object containing the transformed text — either the percent-encoded version of the input (e.g. spaces become %20, ampersands become %26) when encoding, or the decoded plain-text string when decoding. The result is ready to use directly in URL construction or display.","failureModes":["Input text exceeds 64 KiB limit — request rejected","Invalid percent-encoding sequences in decode mode (malformed %XX tokens) may cause errors","Missing or invalid 'mode' enum value (must be 'encode' or 'decode') causes a 400-level error","Empty text input may return an empty string or error depending on API behavior"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable, pay-per-call URL percent-encoding or decoding operation without setting up a local library. It is especially useful in agentic pipelines where text must be sanitized for embedding in URLs, query strings, or REST API paths, and you want a hosted utility rather than executing code yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:31:08.581Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-url-percent-encoder-decoder-21212a87"}