{"uid":"cap_Odk05WaNd9RDiuGiC79Vb","slug":"molcloud-data-transform-json-csv-converter-18e04b08","name":"MolCloud Data Transform: JSON ↔ CSV Converter","description":"41 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.","url":"https://api.molcloud.net/api/data/transform?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"description":"JSON array or CSV string to convert"},"toFormat":{"enum":["csv","json"],"type":"string","description":"Target output format"}}},"responseSchema":{"type":"json","example":{"data":{"output":"token,chain\nUSDC,Base","rowCount":1},"status":"success","endpoint":"/api/data/transform"}},"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_2eeZINuAux7fh-ODD46DF","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 JSON arrays to CSV or CSV strings to JSON, returning the transformed data with a row count.","exampleAgentPrompt":"Convert this JSON array to CSV format: [{\"token\":\"USDC\",\"chain\":\"Base\"},{\"token\":\"ETH\",\"chain\":\"Ethereum\"}]","exampleUseCases":[{"title":"Export agent memory to spreadsheet","prompt":"I have a JSON array of transaction records from my agent — convert it to CSV so I can open it in Google Sheets: [{\"date\":\"2024-01-15\",\"amount\":50,\"token\":\"USDC\"}]"},{"title":"Ingest CSV data feed as JSON","prompt":"Turn this CSV string into a JSON array so I can process it programmatically: 'name,price,volume\\nETH,3200,1000000\\nBTC,65000,500000'"},{"title":"Reformat pipeline output for downstream API","prompt":"My pipeline just produced a JSON array of user events and I need it as a CSV string to send to a reporting tool — can you convert [{\"user\":\"alice\",\"event\":\"login\",\"ts\":\"2024-06-01\"}] to CSV?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the converted output string (CSV or JSON) and a row count indicating how many rows were processed, plus a status field confirming success and the endpoint path.","failureModes":["Invalid JSON input (malformed JSON array returns error)","CSV input with inconsistent columns may produce unexpected JSON structure","Missing required 'toFormat' enum value causes request rejection","Unsupported format value outside 'csv' or 'json' enum returns validation error","Payment failure via x402/USDC on Base blocks request processing"],"whenToPreferThis":"Choose this endpoint when an AI agent needs lightweight, pay-per-use JSON↔CSV conversion without standing up a local parser or importing libraries — especially useful in serverless or edge agent contexts where USDC micropayments via x402 are already in use. Prefer it over general-purpose code execution endpoints when the sole goal is format conversion of tabular data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:47.626Z","isFirstParty":false,"canonicalSlug":"molcloud-data-transform-json-csv-converter-18e04b08"}