{"uid":"cap_arvRj7lOoIdnQk3iVWGmg","slug":"one-engine-text-whitespace-normalizer-f6440cb9","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/t3?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y1pPkSguOjGpW6fm4Ajrt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 spacing, tabs, and line breaks.","exampleAgentPrompt":"Can you normalize the whitespace in this text for me — collapse any extra spaces, tabs, or stray line breaks into single spaces: 'Hello   world!   This   is   a   test.'","exampleUseCases":[{"title":"Clean scraped web content","prompt":"I just scraped some text from a webpage and it's full of weird spacing and tabs everywhere. Can you clean up all the whitespace so it reads normally?"},{"title":"Prepare text for NLP pipeline","prompt":"Before I run sentiment analysis on this customer review, I need to normalize the whitespace — there are tons of extra spaces and newlines in it. Can you fix that for me?"},{"title":"Fix copy-paste formatting issues","prompt":"I copied some text from a PDF and the spacing is all messed up with random double and triple spaces throughout. Can you clean it up so it looks like normal text?"}],"resultDescription":"Returns an object containing the whitespace-normalized version of the input text, with extraneous spaces, tabs, and line breaks collapsed or standardized according to 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 — 402 response before processing begins","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a lightweight, low-cost ($0.001 USDC) pay-per-call solution for whitespace normalization, especially in agentic pipelines on Base that already use x402 for micropayments. Ideal for cleaning scraped, copy-pasted, or OCR-extracted text before further processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:28.301Z","isFirstParty":false,"canonicalSlug":"one-engine-text-whitespace-normalizer-25936721"}