{"uid":"cap_nGrAjp9VG8P-e6YElAFbC","slug":"one-engine-text-whitespace-normalizer-t9-fee719ce","name":"ONE Engine Text Whitespace Normalizer (T9)","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/t9?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.018","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.018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AT9QpY3vBtuF3LOqOpTYK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.018","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 text string, collapsing or standardizing irregular spacing, tabs, and line breaks.","exampleAgentPrompt":"Can you clean up the whitespace in this text? It has a bunch of irregular spaces, tabs, and double spaces scattered throughout: 'The  quick   brown\t\tfox  jumped   over  the lazy   dog.'","exampleUseCases":[{"title":"Clean scraped web content","prompt":"I just scraped a bunch of text from a webpage and it's full of weird spacing, tabs, and double spaces — can you normalize all the whitespace so it reads cleanly?"},{"title":"Prepare text for NLP pipeline","prompt":"Before I run this document through my NLP model, can you normalize the whitespace so there are no inconsistent spaces or stray tabs messing up the tokenization?"},{"title":"Fix copy-pasted document text","prompt":"I copied some text out of a PDF and it came out with crazy spacing everywhere — can you clean it up so it has proper single spaces and no extra line breaks?"}],"resultDescription":"A JSON object containing the whitespace-normalized version of the input text, with irregular spaces, tabs, and extra line breaks collapsed or standardized.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty or missing 'text' field — validation error returned","Payment failure via x402 — 402 response if USDC payment is not provided","Network timeout on the Cloudflare Workers endpoint","Unexpected characters or binary content causing processing errors"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step for text preprocessing — especially in agent pipelines where text is extracted from web scraping, PDF parsing, or OCR and contains irregular spacing. Ideal when you want a cheap ($0.018 USDC), stateless, single-purpose utility without building your own normalization logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:39.820Z","isFirstParty":false,"canonicalSlug":"one-engine-text-whitespace-normalizer-t9-fee719ce"}