{"uid":"cap_y2QzCaCI7rdafb_znc2AV","slug":"fastx402-url-encoder-decoder-d36dbf4f","name":"FastX402 URL Encoder/Decoder","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/url-encode?utm_source=zero.xyz","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","mode"],"properties":{"mode":{"enum":["component","uri","form","decode_component","decode_form"],"type":"string","description":"component, uri, form, decode_component or decode_form"},"text":{"type":"string","description":"Text to encode or decode"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mode":{"type":"string"},"output":{"type":"string"},"input_length":{"type":"integer"},"output_length":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"mode":"component","output":"a%20b%26c%3Dd%2F%C3%A9%3F%F0%9F%98%80","input_length":12,"output_length":37}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cXPu6ET0eePOM1Lx8oqxK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Percent-encodes or decodes text using one of four URL encoding modes: encodeURIComponent, encodeURI, application/x-www-form-urlencoded, or their decoders.","exampleAgentPrompt":"Can you URL-encode the string 'hello world & more=fun' using the component mode so I can safely use it as a query parameter?","exampleUseCases":[{"title":"Encoding query parameters for API calls","prompt":"I need to encode the string 'search?q=hello world&lang=en' using encodeURIComponent mode so I can embed it safely in a URL query parameter — can you do that?"},{"title":"Fixing a broken OAuth signature","prompt":"My OAuth request is failing because of bad escaping. Can you percent-encode the string 'client_id=my app&redirect_uri=https://example.com/callback' using component encoding so the signature is correct?"},{"title":"Decoding a form-encoded payload","prompt":"I received this form-encoded string 'first+name=John+Doe&city=New+York' — can you decode it using the decode_form mode so I can read the original values?"}],"resultDescription":"Returns the encoded or decoded string along with the encoding mode used, the character length of the input, and the character length of the output.","failureModes":["Missing required 'text' query parameter returns an error","Invalid or unsupported 'mode' enum value returns a validation error","Very large input strings may be rejected or truncated","Payment failure via x402 protocol will block the call"],"whenToPreferThis":"Use this endpoint when you need a reliable, deterministic URL encoding or decoding operation for any of the four standard flavours (encodeURIComponent, encodeURI, form-encoding, or their decoders) and want a simple API call rather than running local code. Especially useful for AI agents that cannot safely execute arbitrary JavaScript or need to ensure correct escaping for OAuth signatures, query strings, or form submissions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:30:32.398Z","isFirstParty":false,"canonicalSlug":"fastx402-url-encoder-decoder-d36dbf4f"}