{"uid":"cap_uFj2c_u-L3oqGXtut8oDJ","slug":"mat-web-data-toolkit-text-encoder-0424c2e8","name":"Mat Web & Data Toolkit – Text Encoder","description":"Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.","url":"https://automatom.matt-d59.workers.dev/encode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"op":{"type":"string"},"text":{"type":"string"},"format":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"op":"encode","results":{"hex":"68656c6c6f20776f726c64","url":"hello%20world","html":"hello world","base64":"aGVsbG8gd29ybGQ=","base64url":"aGVsbG8gd29ybGQ"}}},"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_ugJlnoIo9refjEkn_4dPh","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":"Encodes a text string into multiple formats (hex, URL-encoding, HTML entities, base64, base64url) and returns all results as JSON.","exampleAgentPrompt":"Can you encode the text 'hello world' into base64, hex, and URL-safe formats all at once?","exampleUseCases":[{"title":"Prepare text for HTTP query string","prompt":"I need to URL-encode this string so I can safely include it in a query parameter: 'search query with spaces & special chars!'"},{"title":"Base64-encode credentials or tokens","prompt":"Can you base64-encode the string 'myuser:mypassword' so I can use it as a Basic Auth header value?"},{"title":"Debug hex representation of text","prompt":"What's the hex encoding of the string 'Hello, World!' — I need to verify the byte representation for a debugging session."}],"resultDescription":"A JSON object with an 'op' field set to 'encode' and a 'results' object containing the input text rendered in five formats: hex (e.g. '68656c6c6f'), url (percent-encoded), html (HTML entity encoded), base64 (standard), and base64url (URL-safe base64 without padding).","failureModes":["Missing required 'text' query parameter returns an error","Non-GET HTTP methods may return 405","Payment not provided or insufficient USDC results in 402 Payment Required","Very long text strings may hit Cloudflare Worker size or timeout limits","Invalid 'op' parameter value may produce unexpected or empty results"],"whenToPreferThis":"Choose this endpoint when you need a single call to get multiple common text encodings simultaneously (hex, URL, HTML, base64, base64url) without running separate encoding libraries. Ideal for lightweight agent workflows where installing or calling separate encoding utilities is impractical, or when you need a quick, consistent encoding reference across formats in one JSON response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:46:08.858Z","isFirstParty":false,"canonicalSlug":"mat-web-data-toolkit-text-encoder-0424c2e8"}