{"uid":"cap_RG5zm-uUKJer8QLNqhFL1","slug":"one-engine-text-whitespace-normalizer-e4f4547c","name":"ONE Engine Text Whitespace Normalizer","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/text-normalize/whitespace/t7?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ySst6ZmMvR13WZ2RL5UTI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes whitespace in a given text string, collapsing or standardizing spaces, tabs, and newlines.","exampleAgentPrompt":"Can you clean up the whitespace in this text for me? It has a bunch of irregular spaces, tabs, and extra line breaks that need to be collapsed into single spaces: 'This   is   some   messy    text with\t\ttabs and  irregular   spacing.'","exampleUseCases":[{"title":"Cleaning scraped web content","prompt":"I scraped some text from a website and it has tons of irregular whitespace and tab characters everywhere — can you normalize all the spacing so it reads cleanly?"},{"title":"Preprocessing text before NLP analysis","prompt":"Before I run sentiment analysis on this customer feedback batch, I need to normalize all the whitespace in each entry so there are no double spaces or stray tabs messing up the tokenizer."},{"title":"Sanitizing user-submitted form input","prompt":"A user just submitted a long form field with a lot of weird spacing — multiple spaces between words and random newlines mid-sentence. Can you clean it up so it's properly formatted before I save it?"}],"resultDescription":"Returns a JSON object containing the whitespace-normalized version of the input text, with irregular spaces, tabs, and redundant whitespace collapsed or standardized according to the endpoint's whitespace normalization rules.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty or missing 'text' field — validation error returned","Payment failure via x402 on Base — 402 response, call not processed","Network timeout on Cloudflare Worker — transient 5xx error","Malformed JSON request body — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step without spinning up your own string processing pipeline. It is ideal for agents that occasionally need to clean text (e.g., scraped content, user input, LLM outputs) before further processing, and where cost per call ($0.0065 USDC) is acceptable. Prefer this over a full text-cleaning library when you want a managed, stateless microservice invocable from any environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:36:09.278Z","isFirstParty":false,"canonicalSlug":"one-engine-text-whitespace-normalizer-25936721"}