{"uid":"cap_wC6K_dl6PeoBe4d_VizeG","slug":"swift-bot-labs-toolbox-json-to-csv-converter-041b4e11","name":"Swift Bot Labs Toolbox – JSON to CSV Converter","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/json/to-csv?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"description":"Array of objects (a JSON value, or a string containing JSON)"},"flatten":{"type":"boolean","default":true},"delimiter":{"enum":[",",";","\t","|"],"type":"string","default":","}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"json-to-csv","result":{"csv":"id,user.name,tags\r\n1,Ann,\r\n2,Bo,\"[\"\"x\"\"]\"\r\n","rows":2,"columns":["id","user.name","tags"]}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-kClqYnaYdZ5QuDa_Dr64","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON array of objects into a CSV string, with optional nested-key flattening and configurable delimiter, paid per-call via x402/USDC.","exampleAgentPrompt":"Convert this JSON array into a CSV using a comma delimiter and flatten any nested keys — the data is [{\"id\":1,\"user\":{\"name\":\"Ann\"},\"tags\":[]},{\"id\":2,\"user\":{\"name\":\"Bo\"},\"tags\":[\"x\"]}].","exampleUseCases":[{"title":"Export API results to spreadsheet","prompt":"I have this JSON array from an API response and I need to turn it into a CSV so I can open it in Excel — please flatten any nested objects and use a comma as the delimiter."},{"title":"Generate tab-separated data file","prompt":"Take this list of JSON objects and convert them to a tab-separated values file — I need it as TSV so I can paste it directly into a Google Sheet."},{"title":"Flatten and export nested JSON records","prompt":"I've got nested JSON records with sub-objects like address.city and address.zip — can you flatten them and convert the whole array to a semicolon-delimited CSV?"}],"resultDescription":"Returns a JSON object with ok:true, the tool name, and a result object containing: the full CSV string (with headers and rows, RFC 4180-compliant quoting), the number of data rows, and an array of column names (using dot-notation for flattened nested keys).","failureModes":["Input is not a valid JSON array of objects — returns error","JSON string cannot be parsed — returns parse error","Unsupported delimiter value — returns validation error","Payment not included or insufficient USDC — returns 402 Payment Required","Empty array input — may return headers-only CSV with zero rows"],"whenToPreferThis":"Choose this endpoint when you need a quick, serverless, no-account JSON-to-CSV conversion with optional nested-key flattening and configurable delimiters, and you want to pay per call in USDC without API key management. Prefer it over custom code or heavyweight ETL services for simple one-off or agent-driven tabular export tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:15.523Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-json-to-csv-converter-041b4e11"}