{"uid":"cap_VMsg3E8gcCPB4qkrDxIyz","slug":"csv-cleaner-merger-196f7ca4","name":"CSV Cleaner & Merger","description":"Fetch a CSV from a public URL, apply explicit cleaning and merging rules, and return both the cleaned CSV and a machine-readable JSON summary of every change (rows dropped, cells trimmed, duplicates collapsed, headers normalized, sources merged). Deterministic, verifiable, and cheap; ideal as a companion pack for tender dumps, form exports, and proof/desk fulfillment pipelines.","url":"https://openworker.etips.me/api/services/csv_cleaner_merger?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["source_url"],"properties":{"delimiter":{"type":"string","default":","},"merge_urls":{"type":"array","items":{"type":"string","format":"uri"},"default":[],"description":"Additional CSV URLs to fetch and merge by header name"},"source_url":{"type":"string","format":"uri","description":"Publicly reachable CSV URL to fetch"},"deduplicate_on":{"type":"array","items":{"type":"string"},"default":[],"description":"Column names that jointly identify a row; keep first occurrence"},"output_columns":{"type":"array","items":{"type":"string"},"description":"Explicit output column order/schema; missing columns become null"},"drop_empty_rows":{"type":"boolean","default":true},"max_input_bytes":{"type":"integer","default":5000000,"maximum":10000000},"trim_whitespace":{"type":"boolean","default":true},"normalize_headers":{"type":"boolean","default":true,"description":"Lowercase, snake_case, strip punctuation"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.3","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.3/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.3","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.3","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1GX1O96nEwAq_s0Vq7Yk1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.3","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a CSV from a public URL, applies configurable cleaning rules (whitespace trimming, header normalization, deduplication, empty-row removal), optionally merges additional CSVs, and returns both the cleaned CSV and a JSON change log.","exampleAgentPrompt":"Fetch the CSV at https://example.com/exports/tenders.csv, normalize all headers to snake_case, drop empty rows, deduplicate on 'vendor_id' and 'submission_date', and give me back the cleaned CSV plus a full JSON summary of every change made.","exampleUseCases":[{"title":"Tender dump deduplication pipeline","prompt":"Grab the tender export CSV from https://procurement.gov/dumps/q1_tenders.csv, deduplicate rows where both 'tender_id' and 'submission_date' match, drop any empty rows, and return the cleaned file along with a JSON log of what was removed."},{"title":"Merging multi-source form exports","prompt":"I have three form export CSVs at https://forms.example.com/export1.csv, https://forms.example.com/export2.csv, and https://forms.example.com/export3.csv — merge them all by matching headers, normalize the column names to snake_case, trim whitespace, and send me the combined CSV with a summary of every change."},{"title":"Proof fulfillment column standardization","prompt":"Fetch the CSV at https://desk.example.com/proof_runs/batch_42.csv, normalize all headers, enforce this output column order: ['case_id','claimant_name','status','amount'], fill any missing columns with null, and return the cleaned CSV plus a machine-readable JSON diff of all transformations."}],"resultDescription":"Returns two artifacts: (1) the cleaned, transformed CSV text ready for downstream use, and (2) a machine-readable JSON summary documenting every change — including rows dropped, cells trimmed, duplicate rows collapsed, headers renamed/normalized, and records merged from additional source URLs.","failureModes":["Source URL unreachable or returns non-CSV content — fetch error with URL details","CSV exceeds max_input_bytes limit (default 5MB, max 10MB) — size rejection error","Merge URLs return incompatible or missing headers — partial merge with warning in JSON log","Invalid URI format for source_url or merge_urls — schema validation error","deduplicate_on references column names not present in CSV — column-not-found error","Network timeout fetching remote CSV — timeout error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, auditable CSV cleaning and merging operation with a verifiable JSON change log — especially for tender dumps, form exports, government data releases, or any pipeline requiring proof of what changed. Prefer it over ad-hoc scripting when you need reproducible, cheap, per-call processing with explicit deduplication keys and column schema enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:51:13.494Z","isFirstParty":false,"canonicalSlug":"csv-cleaner-merger-196f7ca4"}