{"uid":"cap_bs-HV_5U-10Xtvb3FvX4f","slug":"webbersites-data-format-converter-0c51376c","name":"WebberSites Data Format Converter","description":"Deterministic data-format conversion — the shape work an LLM cannot do reliably token-by-token. POST {data, from, to}: JSON, NDJSON, CSV, TSV, or a SQL INSERT dump in; any of the same out. Handles RFC 4180 quoting (commas, quotes, newlines in values), flattens nested objects to dot-notation columns, unions ragged records into a stable column set, and parses SQL string literals with '' and \\' escapes. No AI, no network — same input, same bytes, every time.","url":"https://api.webbersites.com/api/data/convert","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":{"required":["data"],"properties":{"to":{"type":"string","description":"csv (default), tsv, json, ndjson, or sql"},"data":{"type":"string","description":"The dataset as a string (up to ~4MB)"},"from":{"type":"string","description":"json (default), ndjson, csv, tsv, or sql"},"table":{"type":"string","description":"Table name when to=sql (default 'data')"},"header":{"type":"boolean","description":"CSV/TSV input has a header row (default true)"},"flatten":{"type":"boolean","description":"Flatten nested objects to dot-notation columns (default true)"},"delimiter":{"type":"string","description":"Override the delimiter for csv/tsv"},"infer_types":{"type":"boolean","description":"Convert numeric/boolean/null strings on input (default true); leading zeros stay strings"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"rows":{"type":"number"},"bytes":{"type":"number"},"output":{"type":"string"},"columns":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"to":"csv","from":"json","rows":2,"bytes":26,"output":"id,user.name\n1,Ann\n2,Bo","columns":["id","user.name"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_El_4ktisCe1fuU4rAT71K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically converts tabular data between JSON, NDJSON, CSV, TSV, and SQL INSERT dump formats with correct quoting, nesting, and schema unification.","exampleAgentPrompt":"Convert this JSON array to CSV for me — it has nested objects that should be flattened to dot-notation columns: [{\"user\":{\"id\":1,\"name\":\"Alice\"},\"score\":99},{\"user\":{\"id\":2,\"name\":\"Bob\"},\"score\":87}]","exampleUseCases":[{"title":"Convert SQL dump to CSV","prompt":"I've got a SQL INSERT dump from our legacy database export and I need it turned into a CSV file I can open in Excel — can you convert it for me? Here's the dump: INSERT INTO users VALUES ('O\\'Brien', 'Dublin'), ('Smith, Jr.', 'New York');"},{"title":"Flatten ragged JSON records to TSV","prompt":"These JSON records don't all have the same fields — some are missing keys others have — but I need them unified into a single TSV with a consistent column set: [{\"id\":1,\"name\":\"Alice\",\"email\":\"alice@example.com\"},{\"id\":2,\"name\":\"Bob\"},{\"id\":3,\"email\":\"carol@example.com\",\"role\":\"admin\"}]"},{"title":"Turn CSV into SQL INSERT statements","prompt":"Can you take this CSV data and convert it into SQL INSERT statements I can run against my database? The values include commas and quotes inside some fields so make sure the escaping is handled correctly: name,city\n\"Smith, John\",\"New York\"\n\"O'Brien\",Dublin"}],"resultDescription":"Returns the input data reformatted in the requested target format as a string. JSON output is a well-formed array or object; CSV/TSV output uses RFC 4180 quoting; NDJSON is one record per line; SQL output is syntactically valid INSERT statements. Nested JSON fields are flattened to dot-notation column names, and ragged record sets are unified into a consistent column schema.","failureModes":["Unsupported format value in 'from' or 'to' field — returns 400 with error message","Malformed SQL string literals that don't match '' or \\' escape conventions — parse may fail or produce garbled output","Deeply nested JSON beyond supported flattening depth — may produce unexpected column names","Missing required fields (data, from, to) — returns 400","Payment not provided or insufficient — returns 402 requiring x402 payment of $0.005 USDC"],"whenToPreferThis":"Choose this endpoint when you need reliable, deterministic tabular data format conversion without the nondeterminism of LLM-based approaches. Ideal for ETL pipelines, data preprocessing, or whenever RFC 4180 compliance, nested-object flattening, ragged-record unification, or SQL literal parsing is required. Prefer this over general-purpose LLM text transformation when byte-for-byte consistency across repeated calls matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:55.153Z","isFirstParty":false}