{"uid":"cap_goIwAh05l1zwsAlPe2hQ4","slug":"fastx402-lab-csv-to-json-converter-1a724f4e","name":"FastX402 Lab CSV to JSON Converter","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/csv-to-json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string","description":"CSV text"},"header":{"enum":["true","false"],"type":"string","description":"true (default) when the first line is the header, else false"},"delimiter":{"enum":[",",";","tab","|"],"type":"string","description":"\",\" (default), \";\", \"tab\" or \"|\""}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"city":{"type":"string"},"name":{"type":"string"},"note":{"type":"string"}}}},"columns":{"type":"array","items":{"type":"string"}},"row_count":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"rows":[{"city":"İstanbul","name":"Ayşe","note":"likes \"tea\", coffee"},{"city":"Berlin","name":"Bob","note":"two\nlines"}],"columns":["name","city","note"],"row_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IVLtxzhERlKeFuc51_Tmq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts RFC 4180-compliant CSV text into structured JSON rows, supporting optional headers and multiple delimiters (comma, semicolon, tab, pipe).","exampleAgentPrompt":"Convert this CSV text to JSON for me — it uses semicolons as delimiters and the first line is a header: \"name;city;note\\nAyşe;İstanbul;likes tea\\nBob;Berlin;two lines\"","exampleUseCases":[{"title":"ETL pipeline CSV ingestion","prompt":"I have a CSV export from our database with pipe-delimited columns and a header row — can you parse it into JSON rows so I can feed it into our API? Here's the text: \"id|name|amount\\n1|Alice|100\\n2|Bob|200\""},{"title":"Spreadsheet data to JSON for frontend","prompt":"Turn this tab-separated spreadsheet data into JSON for me — the first line is the header: \"product\tprice\tstock\\nWidget A\t9.99\t50\\nWidget B\t14.99\t20\""},{"title":"No-header CSV parsing","prompt":"Parse this raw CSV into JSON rows — there's no header line, just data separated by commas: \"Alice,30,New York\\nBob,25,Berlin\""}],"resultDescription":"A JSON object containing: a 'rows' array of objects (each row mapped to its column keys if headers are used, or indexed otherwise), a 'columns' array of column names, and a 'row_count' integer indicating the total number of data rows parsed.","failureModes":["Malformed CSV that violates RFC 4180 quoting rules may produce incorrect row splits or parsing errors","Specifying the wrong delimiter results in unsplit columns returned as single fields","Passing header=false when the CSV has a header line will treat the header as a data row","Very large CSV inputs may exceed query parameter size limits","Non-UTF-8 encoded CSV text may cause character encoding issues"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call CSV-to-JSON conversion without setting up a local parser — especially useful in agent pipelines handling CSV exports from databases, spreadsheets, or APIs. It correctly handles RFC 4180 edge cases (quoted fields, escaped quotes, CRLF line endings, Unicode characters) and supports four common delimiters, making it more robust than naive string-splitting approaches.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:43.624Z","isFirstParty":false,"canonicalSlug":"fastx402-lab-csv-to-json-converter-1a724f4e"}