Math

Deterministic data-format conversion — the shape work an LLM cannot do reliably token-by-token

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.

Price: $0.005 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/api/data/convert

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/data/convert
  • Auth: API key in header X-PAYMENT

Request body

datastring required

The dataset as a string (up to ~4MB)

fromstring

json (default), ndjson, csv, tsv, or sql

tostring

csv (default), tsv, json, ndjson, or sql

flattenboolean

Flatten nested objects to dot-notation columns (default true)

headerboolean

CSV/TSV input has a header row (default true)

infer_typesboolean

Convert numeric/boolean/null strings on input (default true); leading zeros stay strings

delimiterstring

Override the delimiter for csv/tsv

tablestring

Table name when to=sql (default 'data')

Response

Success

fromstring
tostring
rowsnumber
outputstring
bytesnumber

Changes

No recorded changes to this operation across all 1 revision of this API.