{"uid":"cap_SNSLPGVvAZDFCNeeGkQUz","slug":"delx-url-encode-component-f1c4e780","name":"Delx URL-Encode Component","description":"URL-encode a component. Use before building query strings or safe path segments. Returns encodeURIComponent-style output for the input text. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/url-encode-component","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_f4_XLeS8gtJcgQ8jbf6XV","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 a text string using encodeURIComponent-style encoding, suitable for safe query string values and URL path segments","exampleAgentPrompt":"URL-encode this text so I can safely use it as a query parameter: 'hello world & goodbye/world?yes=no'","exampleUseCases":[{"title":"Encoding search query for API call","prompt":"I need to embed the search term 'coffee & tea (hot)' into a URL query string — can you URL-encode it so it's safe to append after ?q=?"},{"title":"Safe path segment for dynamic URL","prompt":"I'm building a URL that includes a user-supplied filename like 'my report 2024/final.pdf' — please percent-encode it so it works as a URL path segment without breaking the URL structure."},{"title":"Encoding OAuth redirect URI","prompt":"I need to URL-encode my redirect URI 'https://myapp.com/callback?source=oauth' so I can pass it as a parameter in an authorization URL — can you encode it using encodeURIComponent-style encoding?"}],"resultDescription":"Returns a JSON object containing the percent-encoded version of the input text, applying encodeURIComponent-style encoding where characters like spaces, ampersands, slashes, question marks, and other special characters are replaced with their %XX hex equivalents, making the string safe for use as a URL query parameter or path segment.","failureModes":["Input text exceeds 100,000 character limit — request rejected with a validation error","Empty or missing 'text' field — returns a structured validation error without billing","Malformed JSON request body — returns a parsing error","Network or payment (x402) authentication failure — call not processed"],"whenToPreferThis":"Prefer this endpoint when you need encodeURIComponent-style encoding (i.e., encoding suitable for query parameter values and path segments, encoding characters like '/', '?', '&', '=', '#') rather than full URL encoding. Choose this over the sibling 'Delx URL Encode' endpoint when you specifically want component-level encoding rather than general URL encoding or decoding. Ideal for agents building dynamic URLs from user-supplied text without needing an API key or subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:26.435Z","isFirstParty":false}