# WebberSites Data Format Converter

> WebberSites Data Format Converter is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Deterministically converts tabular data between JSON, NDJSON, CSV, TSV, and SQL INSERT dump formats with correct quoting, nesting, and schema unification.

## Facts

- Endpoint: POST https://api.webbersites.com/api/data/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/webbersites-data-format-converter-0c51376c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bs-HV_5U-10Xtvb3FvX4f

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability webbersites-data-format-converter-0c51376c -d '<json body>'
```

Example prompt: 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}]

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "data": {
       "type": "string",
       "description": "The dataset as a string (up to ~4MB)"
      },
      "from": {
       "type": "string",
       "description": "json (default), ndjson, csv, tsv, or sql"
      },
      "to": {
       "type": "string",
       "description": "csv (default), tsv, json, ndjson, or sql"
      },
      "flatten": {
       "type": "boolean",
       "description": "Flatten nested objects to dot-notation columns (default true)"
      },
      "header": {
       "type": "boolean",
       "description": "CSV/TSV input has a header row (default true)"
      },
      "infer_types": {
       "type": "boolean",
       "description": "Convert numeric/boolean/null strings on input (default true); leading zeros stay strings"
      },
      "delimiter": {
       "type": "string",
       "description": "Override the delimiter for csv/tsv"
      },
      "table": {
       "type": "string",
       "description": "Table name when to=sql (default 'data')"
      }
     },
     "required": [
      "data"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "from": {
       "type": "string"
      },
      "to": {
       "type": "string"
      },
      "rows": {
       "type": "number"
      },
      "columns": {
       "type": "array"
      },
      "output": {
       "type": "string"
      },
      "bytes": {
       "type": "number"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "csv",
  "from": "json",
  "rows": 2,
  "bytes": 26,
  "output": "id,user.name\n1,Ann\n2,Bo",
  "columns": [
   "id",
   "user.name"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/webbersites-data-format-converter-0c51376c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
