{"uid":"cap_w_TN6Q6ZAZOWF84TILVcJ","slug":"delx-commerce-url-encode-component-78594a0e","name":"Delx Commerce URL Encode Component","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-component?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."}}},"responseSchema":{"type":"json","example":{"text":"hello%20agent%20world","action":"encode","schema":"delx/url-encode-component/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_jQVF7ilwCZOLQpHMqXEAJ","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 a text string using URL component encoding (encodeURIComponent semantics) and returns the encoded result","exampleAgentPrompt":"Can you URL-encode the string 'hello agent world' so I can safely use it as a query parameter in a URL?","exampleUseCases":[{"title":"Encoding search query for API call","prompt":"I need to embed the phrase 'coffee & tea shop (open now)' into a URL query string — can you percent-encode it so it's safe to use?"},{"title":"Sanitizing user input for URL","prompt":"A user typed 'New York, NY 10001 — 5th Ave' into my app and I need to put it in a URL. Can you URL-encode that text for me?"},{"title":"Preparing webhook payload parameter","prompt":"I have the text 'price=high&sort=asc&filter=active' that I need to pass as a single URL parameter value — please encode it so the ampersands and equals signs don't break the URL."}],"resultDescription":"A JSON object containing the percent-encoded version of the input text (e.g. spaces become %20, special characters become their percent-hex equivalents), the action name ('encode'), and the schema identifier 'delx/url-encode-component/v1'.","failureModes":["Input text exceeds 100,000 character limit — request rejected","Malformed JSON body — 400 error","Payment not provided or insufficient USDC — 402 Payment Required","Network timeout if Delx Commerce service is unavailable"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically URL-encode arbitrary text as part of an automated workflow, especially when no local encoding library is available or when a verifiable, pay-per-result model (USDC on Base/Solana via x402) is preferred over free self-hosted utilities. Useful in agent pipelines that construct dynamic URLs from user-supplied strings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:52.975Z","isFirstParty":false,"canonicalSlug":"delx-commerce-url-encode-component-78594a0e"}