{"uid":"cap_1QIXl5KlW29PNw32GZ9ed","slug":"machine-shop-normalize-text-3223ef8d","name":"Machine Shop – Normalize Text","description":"Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.","url":"https://api.pay-forge.online/v1/normalize-text?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","title":"Text","maxLength":50000}}},"responseSchema":{"type":"json","example":{"text":"Hello world"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WU7SEQdA0PwitcVcQEZfE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and cleans text from supplied documents, stripping formatting noise to prepare for further extraction or comparison tasks.","exampleAgentPrompt":"Can you normalize this messy pasted text for me — it has inconsistent spacing, weird characters, and mixed encoding — so it's clean and ready to extract structured fields from: 'Hello   world\\n\\nThis is a  test...'","exampleUseCases":[{"title":"Clean OCR output before field extraction","prompt":"I just ran OCR on a scanned invoice and the text is full of weird spacing and garbage characters. Can you normalize it so I can reliably pull out the line items and totals?"},{"title":"Standardize document text for snapshot comparison","prompt":"I have two versions of a contract and I want to compare them, but they were exported differently so the formatting is all over the place. Can you normalize the text of this version first so the diff is meaningful?"},{"title":"Prepare API response text for JSON extraction","prompt":"This API returned a big blob of text with inconsistent encoding and newlines everywhere. Can you normalize it so I can extract the typed JSON fields from it cleanly?"}],"resultDescription":"Returns a JSON object containing the normalized version of the input text, with whitespace standardized, encoding cleaned, and formatting noise removed, ready for downstream extraction or comparison tasks.","failureModes":["Text exceeds 50,000 character limit — request rejected with validation error","Empty or missing text field — returns error indicating required field","Malformed JSON body — returns 400 bad request","Payment not attached or insufficient — returns HTTP 402 with x402 payment quote"],"whenToPreferThis":"Choose this endpoint when you need to clean and standardize raw text before feeding it into extraction, comparison, or analysis workflows — especially when dealing with OCR output, inconsistently formatted pastes, or documents exported from different systems. It is a low-cost preprocessing step ($0.004 USDC) and previewing inputs and cost is free, making it safe to call speculatively before committing to heavier downstream operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:40:19.562Z","isFirstParty":false,"canonicalSlug":"machine-shop-normalize-text-3223ef8d"}