{"uid":"cap_e97zneCNjCeT8bk8c-TIw","slug":"centralcity-ai-url-percent-encoder-decoder-21212a87","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_2bdw4roa6yezsspv?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_EMf0uKaCHch8T1Tvt4zoD","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 URL string back to plain text.","exampleAgentPrompt":"Can you percent-encode this text so I can safely include it in a URL: 'Hello World! This is a test: 50% off & more'?","exampleUseCases":[{"title":"Encoding query parameter values","prompt":"I need to URL-encode this string so I can use it as a query parameter in a link: 'search query: cats & dogs (2024)'"},{"title":"Decoding a received URL-encoded string","prompt":"Can you decode this percent-encoded text for me? It says: 'caf%C3%A9%20au%20lait%20%2650%25%20off'"},{"title":"Sanitizing user input for URL construction","prompt":"I'm building a URL and need to encode this user-submitted text to make it safe: 'John's report #3 — final version!'"}],"resultDescription":"A JSON response containing the transformed text — either the percent-encoded version of the input (e.g., spaces become %20, ampersands become %26) when mode is 'encode', or the decoded plain-text string when mode is 'decode'.","failureModes":["Text exceeds 64 KiB limit — request rejected","Invalid mode value (not 'encode' or 'decode') — validation error","Malformed percent-encoded input when decoding (e.g., incomplete %XX sequences) — may return error or partial result","Empty text input — may return empty string or error"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, pay-per-call URL percent-encoding or decoding utility without setting up a local library or runtime. Ideal for agents that need to construct or parse URLs dynamically, handle user-submitted text that must be embedded in URLs, or decode query parameters received from external sources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:36.115Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-url-percent-encoder-decoder-21212a87"}