{"uid":"cap_Kk_efmJ_jQmVWJdpKM1X8","slug":"agent-data-tools-json-to-csv-converter-7c3cf543","name":"Agent Data Tools: JSON to CSV Converter","description":"Convert a JSON array of objects to CSV with a header row built from all keys. Nested values are written as JSON. Use to export API results to a spreadsheet.","url":"https://agent-data-tools.revmesh2074.workers.dev/json/to-csv?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"A JSON array of objects"}}},"responseSchema":{"type":"object","properties":{"csv":{"type":"string"},"rows":{"type":"number"},"columns":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oEGrWE02H61gqXBJZ8MFw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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-formatted string with row and column counts","exampleAgentPrompt":"Convert this JSON array to CSV for me: [{\"name\":\"Ada\",\"age\":36},{\"name\":\"Alan\",\"age\":41}]","exampleUseCases":[{"title":"Export API data to spreadsheet","prompt":"I just got a JSON array back from an API with user records — can you convert it to CSV so I can paste it into Google Sheets? Here's the data: [{\"id\":1,\"name\":\"Alice\",\"email\":\"alice@example.com\"},{\"id\":2,\"name\":\"Bob\",\"email\":\"bob@example.com\"}]"},{"title":"Prepare report data for download","prompt":"Turn this JSON list of sales records into a CSV file I can share with the finance team: [{\"product\":\"Widget A\",\"units\":120,\"revenue\":4800},{\"product\":\"Widget B\",\"units\":85,\"revenue\":2975}]"},{"title":"Format token portfolio for analysis","prompt":"I have wallet portfolio data as a JSON array — convert it to CSV rows so I can open it in Excel: [{\"token\":\"ETH\",\"balance\":1.5,\"valueUSD\":4200},{\"token\":\"USDC\",\"balance\":500,\"valueUSD\":500}]"}],"resultDescription":"Returns a JSON object containing a 'csv' field with the full CSV-formatted text (header row + data rows), a 'rows' field with the number of data rows, and a 'columns' field with the number of columns derived from the JSON object keys.","failureModes":["Missing or malformed 'text' query parameter returns an error","Input is not a valid JSON array (e.g. a plain object or primitive) causes a parse failure","Empty JSON array may return a CSV with only a header or an empty result","Deeply nested objects may not serialize correctly to flat CSV columns"],"whenToPreferThis":"Use this endpoint when you have a flat JSON array of objects and need a quick, cheap ($0.001) conversion to CSV format without setting up a local parser or importing a library. Ideal for agents that need to hand off data to spreadsheet tools, reporting systems, or data pipelines that expect CSV input. It requires no API key and charges only on success.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:36:45.904Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-json-to-csv-converter-7c3cf543"}