{"uid":"cap_9MT-0hbx6iJsDH4C-hFql","slug":"centralcity-ai-json-to-csv-converter-b7e473cd","name":"centralcity.ai JSON-to-CSV Converter","description":"Writes a JSON array of flat objects as CSV, with a header of every key.","url":"https://centralcity.ai/api/public/x402/off_ii5tqhzpcepsikfq?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"A JSON array of objects whose values are text, numbers, true, false or null, at most 64 KiB."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I-yrrvevJ1KB21QxRE5uD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 flat objects into CSV format with an auto-generated header row containing every key.","exampleAgentPrompt":"Can you convert this JSON array into a CSV file? Here's the data: [{\"name\":\"Alice\",\"age\":30,\"city\":\"Boston\"},{\"name\":\"Bob\",\"age\":25,\"city\":\"Denver\"}]","exampleUseCases":[{"title":"Export API data for spreadsheet analysis","prompt":"I pulled a list of customer records as JSON — [{\"id\":1,\"name\":\"Jane\",\"email\":\"jane@example.com\",\"plan\":\"pro\"},{\"id\":2,\"name\":\"Tom\",\"email\":\"tom@example.com\",\"plan\":\"free\"}] — can you turn that into a CSV so I can open it in Excel?"},{"title":"Prepare dataset for download","prompt":"I have a JSON array of product inventory — [{\"sku\":\"A100\",\"name\":\"Widget\",\"stock\":42,\"price\":9.99},{\"sku\":\"B200\",\"name\":\"Gadget\",\"stock\":7,\"price\":24.99}] — convert it to CSV format with a proper header row so I can share it with the warehouse team."},{"title":"Format survey results for reporting","prompt":"My survey tool gives me responses as a JSON array like [{\"respondent\":\"user1\",\"score\":8,\"comment\":\"Great\"},{\"respondent\":\"user2\",\"score\":5,\"comment\":\"Okay\"}] — please write that out as a CSV with column headers so I can drop it into our reporting dashboard."}],"resultDescription":"Returns a CSV-formatted text string where the first row is a header containing every key found across all objects, and subsequent rows contain the corresponding values for each object in the input array.","failureModes":["Input is not a valid JSON array — returns an error indicating malformed JSON","Input contains nested objects or arrays as values (non-flat structure) — may produce unreadable or incorrect CSV cells","Input exceeds the 64 KiB size limit — returns an error or truncation","Empty JSON array input — returns only a header row or empty output","Input is a JSON object rather than a JSON array — returns an error"],"whenToPreferThis":"Choose this endpoint when you have a JSON array of flat objects and need a quick, deterministic CSV conversion without setting up a local parser or library. It is ideal for lightweight data-pipeline steps, exporting API responses to spreadsheets, or preparing tabular data for downstream tools that require CSV input. Best suited for flat (non-nested) data under 64 KiB.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:26.810Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-json-to-csv-converter-b7e473cd"}