{"uid":"cap_KCc1KZF8-DSJ6XeLPqSMm","slug":"g-forge-json-to-csv-2305a8cf","name":"G-Forge JSON To CSV","description":"Turn API records into spreadsheet-ready CSV in one request. Convert flat JSON rows to correctly quoted CSV, including embedded commas and quotes, for reporting and data handoffs. Up to 5,000 rows and 32 columns; scalar cell values only.","url":"https://api.getretold.com/services/agent-json-to-csv/invoke?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"array","items":{"type":"object","maxProperties":32,"additionalProperties":{"type":["string","number","boolean","null"]}},"maxItems":5000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_0xQlViuZJeC1xk0FBaRSY","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 an array of flat JSON objects into correctly quoted, spreadsheet-ready CSV text, handling embedded commas and quotes, up to 5,000 rows and 32 columns.","exampleAgentPrompt":"Take these JSON records from the sales API response and convert them into a properly quoted CSV I can hand off to the finance team — make sure embedded commas and quotes in the values are handled correctly.","exampleUseCases":[{"title":"Export API data for stakeholder report","prompt":"I just pulled a list of 500 customer order records from our API as JSON — can you convert them into a CSV so I can attach it to the weekly report and share it with the operations team?"},{"title":"Prepare data handoff between systems","prompt":"Our inventory system outputs JSON rows but the warehouse tool only accepts CSV uploads — can you convert this flat JSON array into a properly quoted CSV file so I can feed it into the next step?"},{"title":"Download survey results as spreadsheet","prompt":"I have the survey response data as a JSON array with fields like name, score, and comments — some comments have commas in them, so I need a correctly quoted CSV that Excel can open without breaking the columns."}],"resultDescription":"A correctly RFC-4180-quoted CSV string where each JSON object becomes a row, headers are derived from field names, and all embedded commas, quotes, and special characters are properly escaped. Supports up to 5,000 rows and 32 columns with scalar cell values (string, number, boolean, or null).","failureModes":["Input array exceeds 5,000 items — request rejected","A record contains more than 32 fields — request rejected","A field value is a nested object or array (non-scalar) — request rejected","Malformed JSON input body — 400 parse error","Payment not provided or insufficient — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you have a flat array of JSON objects and need a standards-compliant CSV output in a single synchronous call, especially when field values may contain commas or quote characters that need proper escaping. Prefer it over manual string concatenation or custom serialization code when correctness of quoting is important and the dataset fits within 5,000 rows and 32 columns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:35:40.840Z","isFirstParty":false,"canonicalSlug":"g-forge-json-to-csv-2305a8cf"}