{"uid":"cap_zXXz7zpM2ZSi_K0A8yk1y","slug":"json-to-csv-converter-83b30bdb","name":"JSON to CSV Converter","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/json2csv?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"},"delimiter":{"type":"string","description":"Output delimiter (default ,)"}}}},"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":"json2csv","cols":["name","age"],"rows":2,"result":"name,age\nalice,30\nbob,25\n","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__-bLLEZRnTVNFK-Zpx8wG","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 JSON (or other structured data formats) into CSV text with configurable delimiter, returning column names, row count, and the CSV result.","exampleAgentPrompt":"Take this JSON array — [{\"name\":\"alice\",\"age\":30},{\"name\":\"bob\",\"age\":25}] — and convert it to CSV with comma as the delimiter.","exampleUseCases":[{"title":"Prepare API data for spreadsheet","prompt":"I got a JSON response from an API with a list of orders — can you convert it to CSV so I can open it in Excel? Here's the JSON: [{\"order_id\":1,\"product\":\"widget\",\"qty\":5},{\"order_id\":2,\"product\":\"gadget\",\"qty\":3}]"},{"title":"Data pipeline format conversion","prompt":"I need to transform this JSON dataset into CSV format using a semicolon as the delimiter so my downstream ETL tool can ingest it: [{\"country\":\"US\",\"sales\":1200},{\"country\":\"UK\",\"sales\":850}]"},{"title":"Validate and flatten JSON records","prompt":"Can you convert this JSON to CSV and let me know if there are any errors or inconsistencies in the structure? Here's the data: [{\"user\":\"carol\",\"score\":88},{\"user\":\"dave\",\"score\":72}]"}],"resultDescription":"Returns a JSON object containing the operation name ('json2csv'), an array of column names, the number of rows converted, the resulting CSV text as a string, elapsed processing time in milliseconds, and any validation errors encountered.","failureModes":["Input payload exceeds 100 KiB limit — request rejected","Malformed or non-parseable JSON/CSV/YAML/XML input — errors array populated in response","Missing required 'input' query parameter — bad request error","Payment not provided or insufficient USDC — 402 Payment Required response","Deeply nested JSON that cannot be flattened to tabular CSV — partial or empty result"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call, no-signup conversion of JSON (or other structured formats) to CSV text — particularly in agentic workflows where you want to avoid managing API keys or subscriptions. Ideal for one-off data pipeline steps, agent-driven ETL tasks, or when preparing JSON API responses for spreadsheet consumption.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:45:50.003Z","isFirstParty":false,"canonicalSlug":"json-to-csv-converter-83b30bdb"}