$ man csv-to-jsonl
/csv-to-jsonl
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
utilities
STATUS
● live
NAME
csv-to-jsonl — converts csv or tsv data into json, jsonl/ndjson, or column-oriented arrays
SYNOPSIS
POST https://x402.agentutility.ai/csv-to-jsonl
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Converts CSV or TSV data into JSON, JSONL/NDJSON, or column-oriented arrays. RFC 4180 parser with type inference (booleans, integers, floats, ISO dates, null tokens) and configurable delimiter, quote char, header presence, column rename, drop columns, and whitespace trim. Outputs newline-delimited JSON (jsonl), a JSON array (json), or column-oriented arrays (ndarray). Use it as a CSV to JSON, CSV to NDJSON, TSV to JSON, or spreadsheet to JSON converter, data pipeline preprocessor, or LLM training-data prep step.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| csv | string | Raw CSV / TSV text. Up to ~1MB recommended. | required |
| format | string | Output shape. 'jsonl' (default, newline-delimited JSON objects), 'json' (single JSON array), 'ndarray' (column-oriented arrays). enum: jsonl · json · ndarray | optional |
| delimiter | string | Field delimiter. Default ','. Use '\t' for TSV, ';' for European CSV, '|' for pipe-delimited. | optional |
| quote_char | string | Quote character for fields containing the delimiter or newlines. Default '"'. | optional |
| has_header | boolean | Whether the first row is the header. Default true. If false, columns are named c1, c2, ... | optional |
| rename | object | Optional column-rename map, e.g. { 'first name': 'first_name', 'DOB': 'date_of_birth' }. | optional |
| drop_columns | array | Column names to drop from the output. | optional |
| infer_types | boolean | If true (default), parse booleans, integers, floats, ISO-8601 dates, and null tokens. If false, every value stays a string. | optional |
| null_values | array | Strings to coerce to JSON null. Default ['', 'null', 'NULL', 'NA', 'N/A']. | optional |
| trim | boolean | Trim leading/trailing whitespace from each field. Default true. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| jsonl | string | Newline-delimited JSON string with one parsed CSV row per line; present when output format is jsonl. |
| data | array | Array of parsed row objects keyed by column name, with values coerced via type inference. |
| mime_type | string | MIME type of the converted payload, e.g. application/json or application/x-ndjson. |
| row_count | number | Number of data rows parsed from the input CSV, excluding the header row. |
| column_count | number | Number of columns detected in the parsed CSV after any drop/rename operations. |
| columns | array | Ordered list of final column names after header parsing and any rename or drop transforms. |
| format | string | Output format selected for the conversion, either json or jsonl. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/csv-to-jsonl \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the csv-to-jsonl tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- csvjsonjsonldataconvert
- methods
- POST
- cluster
- mediakit
- price
- $0.02 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| add-watermark | Add watermark to PDF, image, or video. | $0.02 |
| audio-loudnorm | Audio loudness normalizer (EBU R128 LUFS). | $0.02 |
| image-translate | Image translator. | $0.02 |
| image-upscale | Upscales an image 2x or 4x via Venice's image/upscale endpoint (default model: venice-sd35). | $0.02 |
| image-watermark | Image watermark / add text or logo watermark to image files. | $0.02 |
| mp4-to-mp3 | Converts MP4, MOV, WebM, MKV, AVI, M4V, and FLV video files to MP3 via CloudConvert, with selectable bitrate (96/128/192 kbps). | $0.02 |
| mp4-to-mp3-api | Converts MP4, MOV, WEBM, MKV, AVI, M4V, or FLV URLs into hosted MP3 output with selectable 96, 128, or 192 kbps bitrate. | $0.02 |
| mp4-to-mp3-converter | Converts MP4 video URLs into hosted MP3 files with selectable bitrate; also accepts MOV, WEBM, MKV, AVI, M4V, or FLV URLs. | $0.02 |
SEE ALSO