{"uid":"cap_SIx-CEYIyUHXDSJC_NEqf","slug":"delx-commerce-url-safe-encode-40ddd2fb","name":"Delx Commerce — URL-Safe Encode","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/url-encode-safe?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"hello%20delx%20%26%20agents","schema":"delx/util-url-encode-safe/v1"}},"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_wIxSvGAjRXYYu2klGWUmo","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":"Encodes a text string into a URL-safe percent-encoded format, escaping special characters like spaces and ampersands.","exampleAgentPrompt":"Can you URL-encode the string 'hello delx & agents' so it's safe to use in a web request?","exampleUseCases":[{"title":"Encode search query for URL","prompt":"I need to URL-encode the search query 'coffee shops & bakeries near me' so I can safely append it to a URL — can you do that?"},{"title":"Sanitize user input for API call","prompt":"Take this user-submitted text 'John Doe <john@example.com> & friends' and encode it so I can safely pass it as a URL query parameter."},{"title":"Prepare dynamic link with special characters","prompt":"I'm building a share link and need to encode the title 'Free Tools & Resources for Agents 2024' into a URL-safe string — can you percent-encode it for me?"}],"resultDescription":"A JSON object containing the percent-encoded version of the input text (e.g. spaces become %20, ampersands become %26) plus a schema identifier string ('delx/util-url-encode-safe/v1') confirming the encoding standard used.","failureModes":["Missing or empty 'text' field returns an error response","Extremely long input strings may be rejected or truncated","Network timeouts if the service is temporarily unavailable","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use, no-signup URL-safe percent-encoding utility within an agent workflow, especially when already using the Delx Commerce x402 payment rail on Base or Solana. It is ideal for lightweight automation where spinning up a custom encoding library is overkill, or when operating in a sandboxed environment without access to native URL encoding functions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.427Z","isFirstParty":false,"canonicalSlug":"delx-commerce-url-safe-encode-40ddd2fb"}