{"slug":"wealth-agent-wealthagent-app-workers-dev-api-x402-data-clean-b0f16c","title":"Cleans a CSV/TSV/JSON table","host":"wealth-agent.wealthagent-app.workers.dev","method":"POST","resource":"https://wealth-agent.wealthagent-app.workers.dev/api/x402/data-clean","category":"other","description":"Cleans a CSV/TSV/JSON table: removes duplicate and empty rows, trims whitespace, and returns the cleaned CSV with before/after quality checks and per-column stats. Call it before analysing or importing messy tabular data. Input: {\"data\": \"<csv text>\"}.","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":583,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"data":"name,price\nA,100\nA,100\nB,"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"data":{"description":"Table as CSV / TSV text or a JSON array of objects (max 60,000 chars)","type":"string"},"format":{"description":"Optional input format; auto-detected when omitted","enum":["csv","tsv","json"],"type":"string"}},"required":["data"],"type":"object"},"bodyType":{"enum":["json"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"deliverable":{"properties":{"changes":{"properties":{"cells_trimmed":{"type":"integer"},"duplicates_removed":{"type":"integer"},"empty_rows_removed":{"type":"integer"}},"type":"object"},"csv":{"type":"string"},"kind":{"type":"string"},"summary":{"type":"string"}},"required":["kind","summary"],"type":["object","null"]},"error":{"type":["string","null"]},"job_id":{"type":["string","null"]},"note":{"type":"string"},"ok":{"type":"boolean"},"receipt_id":{"type":["string","null"]},"resource":{"type":"string"},"status":{"enum":["delivered","paid_not_delivered"],"type":"string"},"tx":{"type":["string","null"]}},"required":["ok","resource","status","deliverable"],"type":"object"},"type":{"type":"string"}},"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":583,"error":null}],"description_full":"Cleans a CSV/TSV/JSON table: removes duplicate and empty rows, trims whitespace, and returns the cleaned CSV with before/after quality checks and per-column stats. Call it before analysing or importing messy tabular data. Input: {\"data\": \"<csv text>\"}.","last_updated":"2026-10-19T12:40:02.1Z","schemes":["exact"]}