{"uid":"cap_Di1J6e15s5-dMNPgxDDBG","slug":"one-engine-text-whitespace-normalizer-b4ab71c3","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/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Do4-r0XSmgqntWEWpWkyi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 cleaning whitespace characters up to 50,000 characters.","exampleAgentPrompt":"Clean up the whitespace in this text for me — it has a bunch of irregular spaces, tabs, and double spaces that need to be normalized into single spaces: 'Hello   world,\t\tthis   is   a   test.'","exampleUseCases":[{"title":"Clean scraped web page text","prompt":"I just scraped some text from a web page and it's full of irregular spacing, multiple consecutive spaces, and random tabs — can you normalize all the whitespace so it's clean and readable?"},{"title":"Preprocess text before NLP pipeline","prompt":"Before I run this customer feedback through my sentiment analysis model, I need to normalize all the whitespace in it — there are double spaces, trailing spaces, and mixed newlines that need cleaning up."},{"title":"Standardize pasted document content","prompt":"A user pasted this big block of text into our form and it has messy inconsistent spacing throughout. Can you clean up all the whitespace so it looks properly formatted?"}],"resultDescription":"Returns a JSON object containing the whitespace-normalized version of the input text, with irregular spacing, consecutive whitespace, tabs, and other whitespace characters cleaned and collapsed according to standard normalization rules.","failureModes":["Text exceeds 50,000 character limit — returns an error indicating input is too long","Empty text input — may return empty string or validation error","Malformed request body missing 'text' field — returns 400-level error","Payment failure via x402 protocol — returns 402 Payment Required if USDC payment not processed"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.0007 USDC), pay-per-call whitespace normalization step in an autonomous agent pipeline — especially useful for preprocessing scraped, pasted, or OCR-extracted text before downstream NLP tasks, storage, or display. Ideal for agents on Base using x402 micropayments who need deterministic text cleaning without standing up their own infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:07.275Z","isFirstParty":false,"canonicalSlug":"one-engine-text-whitespace-normalizer-25936721"}