{"uid":"cap_vkmU2z-yGrysvPdKMDnbY","slug":"api-x402node-dev-ab7f8ea4","name":"URL Encoder/Decoder (Percent Encoding)","description":"URL encoder/decoder, percent encoding, RFC 3986, query string escape, form data, encodeURIComponent, decodeURIComponent. Safely escape URLs for HTTP. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/encode/url","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"mode":{"type":"string","description":"Operation mode (optional)"},"text":{"type":"string","description":"Input text (required)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"text":"hello world & goodbye=true","operation":"encode"},"response":{"mode":"encode","_hint":"x402 paid endpoints for AI agents — x402node.dev (utilities) · cn402.com (Chinese culture)","input":"hello world & goodbye=true","output":"hello%20world%20%26%20goodbye%3Dtrue"}},"exampleRequest":{"text":"hello world & goodbye=true","operation":"encode"},"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rD3ggHAfxkUu-o7abpZgB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes URLs using percent encoding (RFC 3986), equivalent to encodeURIComponent/decodeURIComponent for safe HTTP transmission.","exampleAgentPrompt":"Can you percent-encode this string so it's safe to use as a URL query parameter: 'hello world & goodbye=true'?","exampleUseCases":null,"resultDescription":"Returns the percent-encoded or decoded version of the input string, with special characters properly escaped or unescaped per RFC 3986 / encodeURIComponent semantics.","failureModes":["Empty or missing input string returns an error","Malformed percent-encoded sequences when decoding may return an error or partial result","Payment failure returns HTTP 402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need server-side, RFC 3986-compliant URL encoding or decoding without relying on client-side JavaScript functions like encodeURIComponent; useful in agent pipelines where JavaScript is unavailable and a trusted remote conversion is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:51.158Z","isFirstParty":false}