Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man csv-to-jsonl

/csv-to-jsonl

agentutility / mediakit / csv-to-jsonl
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
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.

INPUTrequest schema
propertytypedescriptionreq?
csvstringRaw CSV / TSV text. Up to ~1MB recommended.required
formatstringOutput shape. 'jsonl' (default, newline-delimited JSON objects), 'json' (single JSON array), 'ndarray' (column-oriented arrays).
enum: jsonl · json · ndarray
optional
delimiterstringField delimiter. Default ','. Use '\t' for TSV, ';' for European CSV, '|' for pipe-delimited.optional
quote_charstringQuote character for fields containing the delimiter or newlines. Default '"'.optional
has_headerbooleanWhether the first row is the header. Default true. If false, columns are named c1, c2, ...optional
renameobjectOptional column-rename map, e.g. { 'first name': 'first_name', 'DOB': 'date_of_birth' }.optional
drop_columnsarrayColumn names to drop from the output.optional
infer_typesbooleanIf true (default), parse booleans, integers, floats, ISO-8601 dates, and null tokens. If false, every value stays a string.optional
null_valuesarrayStrings to coerce to JSON null. Default ['', 'null', 'NULL', 'NA', 'N/A'].optional
trimbooleanTrim leading/trailing whitespace from each field. Default true.optional
OUTPUTresponse shape
fieldtypedescription
jsonlstringNewline-delimited JSON string with one parsed CSV row per line; present when output format is jsonl.
dataarrayArray of parsed row objects keyed by column name, with values coerced via type inference.
mime_typestringMIME type of the converted payload, e.g. application/json or application/x-ndjson.
row_countnumberNumber of data rows parsed from the input CSV, excluding the header row.
column_countnumberNumber of columns detected in the parsed CSV after any drop/rename operations.
columnsarrayOrdered list of final column names after header parsing and any rename or drop transforms.
formatstringOutput format selected for the conversion, either json or jsonl.
EXAMPLEStwo 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
ADJACENTother endpoints in mediakit
endpointdescriptionprice
add-watermarkAdd watermark to PDF, image, or video.$0.02
audio-loudnormAudio loudness normalizer (EBU R128 LUFS).$0.02
image-translateImage translator.$0.02
image-upscaleUpscales an image 2x or 4x via Venice's image/upscale endpoint (default model: venice-sd35).$0.02
image-watermarkImage watermark / add text or logo watermark to image files.$0.02
mp4-to-mp3Converts 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-apiConverts 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-converterConverts MP4 video URLs into hosted MP3 files with selectable bitrate; also accepts MOV, WEBM, MKV, AVI, M4V, or FLV URLs.$0.02
SEE ALSO
agentutility · mediakit · x402 · mcp · llms.txt · registry.json · bazaar.x402.org