{"uid":"cap_Mbi2xkadZutz4MFrOmEf0","slug":"centralcity-ai-url-percent-encoder-decoder-8ca3f71a","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_q2vh2anmjnh25gie?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_kAIaFbFQ-oqD5jMOqmCC4","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 in a URL: 'hello world & welcome to café'? Use encode mode.","exampleUseCases":[{"title":"Encoding query parameter with special characters","prompt":"I need to put the string 'price >= 100 & category=shoes' into a URL query parameter — can you percent-encode it for me?"},{"title":"Decoding a garbled URL string","prompt":"I got this percent-encoded string from a URL and I can't read it: 'caf%C3%A9%20au%20lait%20%26%20croissant' — can you decode it back to plain text?"},{"title":"Sanitizing user input for URL slug construction","prompt":"I need to safely embed a user-submitted name 'O'Brien & Sons LLC' into a URL path — please percent-encode it for me."}],"resultDescription":"Returns the transformed text: either a percent-encoded version of the input (all special and non-ASCII characters replaced with %XX sequences) or the decoded plain-text version of a percent-encoded input string.","failureModes":["Input text exceeds 64 KiB limit — request rejected","Invalid mode value (not 'encode' or 'decode') — validation error","Malformed percent-encoded input provided to decode mode — may return error or partial result","Missing required fields (mode or text) — schema validation error"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable, pay-per-use URL percent-encoding or decoding operation without setting up a local library. Ideal for agents operating in environments where code execution is unavailable or undesirable, or when encoding/decoding needs to be auditable and delegated to an external service. Supports up to 64 KiB of text per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:42.776Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-url-percent-encoder-decoder-21212a87"}