{"uid":"cap_BmKx28oyeQIS9skfdUr92","slug":"csv-to-json-converter-lin-desk-91683399","name":"CSV to JSON Converter (LIN Desk)","description":"Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.","url":"https://lin-desk-x402.lindesk.workers.dev/v1/dataformat/csv2json?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Payload text (CSV/JSON/YAML/XML); max 100 KiB"},"header":{"enum":["true","false"],"type":"string","description":"First row is header (default true)"},"delimiter":{"type":"string","description":"Force delimiter (default: sniff)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"cols":{"type":"array"},"rows":{"type":"integer"},"valid":{"type":"boolean"},"errors":{"type":"array"},"result":{},"encoding":{"type":"string"},"elapsed_ms":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"op":"csv2json","cols":["name","age"],"rows":2,"result":[{"age":"30","name":"alice"},{"age":"25","name":"bob"}],"encoding":"utf-8","elapsed_ms":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i7rGp-aw_Ud1Pnv617K8h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts CSV text into structured JSON array via a GET request with the CSV payload as a query parameter","exampleAgentPrompt":"Convert this CSV text to JSON for me — it has a header row and uses commas as the delimiter: 'name,age\\nalice,30\\nbob,25'","exampleUseCases":[{"title":"Pipeline data format conversion","prompt":"I have this CSV export from our database — 'id,product,price\\n1,Widget,9.99\\n2,Gadget,24.99' — can you convert it to JSON so I can feed it into our processing pipeline?"},{"title":"Spreadsheet data ingestion","prompt":"Here's a tab-separated export from Excel: 'employee\\tdepartment\\tsalary\\nJane\\tEngineering\\t95000\\nJohn\\tMarketing\\t72000'. Convert it to JSON — the first row is the header and the delimiter is a tab."},{"title":"Validate and parse user-uploaded CSV","prompt":"A user uploaded this CSV: 'city,population\\nNew York,8336817\\nLos Angeles,3979576'. Parse it into JSON and tell me if there are any errors or encoding issues."}],"resultDescription":"Returns a JSON object with fields: op (operation name 'csv2json'), cols (array of column header names), rows (integer count of parsed rows), result (array of JSON objects keyed by column headers), encoding (detected character encoding), elapsed_ms (processing time), and an errors array listing any parse issues encountered.","failureModes":["Input CSV exceeds 100 KiB limit — request rejected","Malformed CSV with inconsistent column counts — errors array populated, partial result may be returned","Undetectable delimiter when not specified — incorrect parsing or errors","Payment not included or insufficient USDC — 402 Payment Required response","Empty input string — zero rows returned with empty cols array","Network timeout on the Cloudflare Worker — connection error"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, pay-per-call CSV-to-JSON conversion without setting up an API key or account. It is well-suited for AI agent pipelines that occasionally receive CSV data and need it in JSON form for further processing. Prefer it over general-purpose parsing libraries when you want a hosted microservice with predictable per-call pricing via x402/USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:44:52.472Z","isFirstParty":false,"canonicalSlug":"csv-to-json-converter-lin-desk-91683399"}