{"uid":"cap_kyzj31737CLgTZut4Wm1j","slug":"url-percent-encoder-6b7f9b39","name":"URL Percent-Encoder","description":"Percent-encode a string for use in a URL","url":"https://x402render-u5vwpxpyua-uc.a.run.app/url-encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7GlfdReiZj4WU4A3ulkI4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 so it can be safely embedded in a URL","exampleAgentPrompt":"Can you percent-encode this string so I can safely put it in a URL: 'hello world & welcome to 2024!'?","exampleUseCases":[{"title":"Encode search query for HTTP request","prompt":"I need to embed the search phrase 'coffee & tea shop near me?' into a URL query string — can you percent-encode it for me?"},{"title":"Safely pass special characters in URL","prompt":"URL-encode this value for me so I can use it as a query parameter: 'user@example.com / role=admin&active=true'"},{"title":"Encode file path for REST API call","prompt":"I need to call a REST endpoint with a path segment that contains slashes and spaces — can you percent-encode 'reports/Q1 2024/summary & totals' for me?"}],"resultDescription":"A percent-encoded version of the input string where all characters that are not URL-safe (spaces, special characters, non-ASCII, etc.) are replaced with their %XX hexadecimal escape sequences.","failureModes":["Missing or empty 'text' field returns an error","Non-string input type may be rejected","Payment failure (402) if USDC balance is insufficient or x402 payment header is missing"],"whenToPreferThis":"Use this endpoint when you need server-side, reliable percent-encoding of a string and don't have access to a local encoding library, or when you want a consistent, standards-compliant result within an automated pipeline that already uses the x402render utility suite. Particularly handy when chaining with other endpoints on the same host (e.g. encode a value before embedding it in a JSON payload that is then minified).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:44:58.211Z","isFirstParty":false}