{"uid":"cap_IuOYZFxEEMm7dRySS-am4","slug":"one-engine-text-whitespace-normalizer-69b8af4f","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jiMfJr6U8E_RCfctW9nFm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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, cleaning up irregular spacing, tabs, and line breaks.","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 I need standardized: 'Hello   world,\t\tthis   is   a   test.'","exampleUseCases":[{"title":"Cleaning scraped web content","prompt":"I just scraped some text from a website and it's full of random double spaces and tab characters — can you normalize all the whitespace so it reads cleanly?"},{"title":"Preprocessing user input for NLP pipeline","prompt":"Before I run this user-submitted paragraph through my sentiment analyzer, can you strip out all the irregular spacing and extra whitespace so it's properly formatted?"},{"title":"Fixing copy-pasted document text","prompt":"I pasted some text from a PDF and it came out with weird spacing all over the place — can you normalize the whitespace so it looks normal again?"}],"resultDescription":"Returns the input text with whitespace normalized — extra spaces collapsed, irregular tabs and line breaks standardized — as a JSON object containing the cleaned text.","failureModes":["Text exceeds 50000 character limit — request rejected","Empty text field — may return error or empty result","Payment failure via x402 protocol — call blocked","Malformed JSON input — 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call whitespace normalization step in an automated pipeline without spinning up your own text preprocessing service. Ideal for agents that occasionally need to clean text as part of a larger workflow and want to pay only for what they use at $0.0015 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:37.820Z","isFirstParty":false,"canonicalSlug":"one-engine-text-whitespace-normalizer-25936721"}