{"uid":"cap_R-9NRGVlaiLHRrXdaiy5J","slug":"wealth-agent-csv-json-converter-a09db354","name":"Wealth Agent CSV↔JSON Converter","description":"Convert tabular data between CSV/TSV and a JSON array of objects, in either direction, with detected delimiter and typed columns. Use it when a tool returns CSV but your pipeline needs JSON (or the reverse) and you do not want to run a parser yourself.","url":"https://wealth-agent.wealthagent-app.workers.dev/api/x402/csv-json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"to":{"enum":["json","csv"],"type":"string","description":"Target format (optional; inferred when omitted)"},"data":{"type":"string","description":"CSV/TSV text or a JSON array of objects"}}}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","resource","status","deliverable"],"properties":{"ok":{"type":"boolean"},"tx":{"type":["string","null"]},"note":{"type":"string"},"error":{"type":["string","null"]},"job_id":{"type":["string","null"]},"status":{"enum":["delivered","paid_not_delivered"],"type":"string"},"resource":{"type":"string"},"receipt_id":{"type":["string","null"]},"deliverable":{"type":["object","null"],"required":["kind","summary"],"properties":{}}}}}}}},"responseSchema":{"type":"json","example":{"json":[{"name":"A","price":100}],"kind":"csv-json","rows":2,"columns":["name","price"],"direction":"to-json"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vMLup_iG1OJ3hseHhB7QM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts CSV/TSV text to JSON or JSON arrays to CSV format via a paid API endpoint","exampleAgentPrompt":"Convert this CSV text into a JSON array: 'name,price\\nApple,1.50\\nBanana,0.75'","exampleUseCases":[{"title":"Spreadsheet data into API payload","prompt":"I have this CSV export from my spreadsheet — 'id,name,score\\n1,Alice,92\\n2,Bob,85\\n3,Carol,78' — can you convert it to a JSON array so I can feed it into another API?"},{"title":"JSON records back to CSV download","prompt":"I've got a JSON array like [{\"product\":\"Widget\",\"qty\":10,\"price\":4.99},{\"product\":\"Gadget\",\"qty\":3,\"price\":12.00}] and I need it converted to CSV so I can open it in Excel."},{"title":"TSV log file to structured JSON","prompt":"Here's a tab-separated log dump: 'timestamp\\tuser\\tevent\\n2024-01-01T00:00Z\\talice\\tlogin\\n2024-01-01T00:05Z\\tbob\\tpurchase' — please parse it into a JSON array of objects for me."}],"resultDescription":"Returns a JSON object containing the converted data (a JSON array when converting from CSV, or CSV text when converting from JSON), along with metadata including the kind of conversion performed ('csv-json'), the number of rows, the column names, and the direction of conversion.","failureModes":["Malformed or unparseable CSV/TSV input returns an error field in the response","Missing required 'data' query parameter causes a validation error","Mismatched or ambiguous format when 'to' is omitted may result in incorrect direction inference","Payment failure or insufficient USDC balance causes a 402 response before processing begins","Empty data input may return zero rows with no useful output"],"whenToPreferThis":"Choose this endpoint when you need a simple, paid-per-call microservice to convert between CSV/TSV and JSON without setting up your own parsing logic. It is well-suited for agent workflows that occasionally need tabular data reformatting as part of a larger pipeline, especially when the x402 micropayment model is already in use. Prefer a local library if you are doing high-volume batch conversions where per-call costs would accumulate significantly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:33:35.956Z","isFirstParty":false,"canonicalSlug":"wealth-agent-csv-json-converter-a09db354"}