{"uid":"cap_Ah_BpGnNhrQk0xRM_AbQS","slug":"pennyrail-url-encode-encodeuricomponent-31dca71b","name":"PennyRail URL Encode (encodeURIComponent)","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/encoding.url-encode--encode-uri-component","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_R52xjmibYYDGgTnbnsGRS","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":"URL-encodes an input string using JavaScript's encodeURIComponent semantics, escaping all characters except unreserved URI characters","exampleAgentPrompt":"Can you URL-encode this string for me so I can safely use it as a query parameter: 'hello world & goodbye=world'?","exampleUseCases":[{"title":"Encoding search query for URL","prompt":"I need to embed this search phrase into a URL query string — can you percent-encode 'coffee shops near me & open now' so it's URL safe?"},{"title":"Escaping user input for API call","prompt":"A user typed 'name=John Doe&age=30' into a form field and I need to pass it as a single query param value — please URL-encode it for me."},{"title":"Encoding file path for REST endpoint","prompt":"I have a file path '/reports/2024/Q1 summary (final).pdf' that I need to embed in a URL segment — can you encodeURIComponent it for me?"}],"resultDescription":"A JSON object containing the percent-encoded version of the input string, where all characters except A–Z, a–z, 0–9, -, _, ., and ~ are replaced with their %XX UTF-8 hex escape sequences, matching JavaScript's encodeURIComponent output.","failureModes":["Missing 'input' field in request body returns a validation error","Payment failure or insufficient USDC balance prevents the call from executing","Non-string input type may cause unexpected encoding or rejection","Empty string input returns an empty string result without error","Very long strings may hit payload size limits"],"whenToPreferThis":"Choose this endpoint when you need reliable, standards-compliant encodeURIComponent-style percent-encoding as a paid micro-service, particularly within x402 payment-enabled agent workflows where you want a simple, composable utility that handles encoding without running your own server-side code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:47.620Z","isFirstParty":false}