{"uid":"cap_YmTtS8uw2hyUltMx6hk2r","slug":"centralcity-ai-url-percent-encoder-decoder-40f30aec","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_zos6gngkl4sq7qfa?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_L0XV4em-Ii0dbYaOziMSg","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 URLs, or decodes a percent-encoded URL 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 & welcome to café!'","exampleUseCases":[{"title":"Encode query parameter for HTTP request","prompt":"I need to URL-encode this string so I can put it in a query parameter: 'search results for: coffee & tea (hot)'"},{"title":"Decode percent-encoded URL fragment","prompt":"Can you decode this percent-encoded URL string back to readable text? It looks like: 'hello%20world%26welcome%20to%20caf%C3%A9'"},{"title":"Sanitize user input for URL embedding","prompt":"I have this user-submitted text that I need to embed in a URL safely — can you percent-encode it? The text is: 'name=John Doe, age=30, city=São Paulo'"}],"resultDescription":"Returns the transformed text: either the percent-encoded version of the input (with special characters replaced by %XX sequences) or the decoded plain text version of a percent-encoded string, depending on the selected mode.","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 sequence) — may return error or partial result","Missing required fields — schema validation error"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, pay-per-call URL encoding or decoding operation without setting up a local library. Ideal for agents that need to encode dynamic user input into URLs or decode percent-encoded strings from web responses, especially in environments where string utility libraries are unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:05:19.320Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-url-percent-encoder-decoder-21212a87"}