{"uid":"cap_ZDPF2_Hig5n74GYunw85w","slug":"x402-convert-csv-json-820964a1","name":"x402-convert CSV↔JSON","description":"Deterministic data-conversion API for AI agents. Pay-per-call in USDC on Base via x402 v2.","url":"https://x402-convert.arikanuk.workers.dev/csv-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV text with a header row (CSV to JSON)"},"json":{"type":"array","items":{"type":"object"},"description":"Array of objects (JSON to CSV)"}}},"responseSchema":{"type":"json","example":{"json":[{"a":"1","b":"2"}]}},"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_HL17r78lqcg6-cJrnfys_","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 CSV text to JSON or JSON arrays to CSV, billed per-call at $0.01 USDC via x402 on Base.","exampleAgentPrompt":"Convert this CSV into a JSON array — it has a header row with columns name, age, city followed by a few rows of data.","exampleUseCases":[{"title":"Ingest CSV report as structured data","prompt":"I have a CSV export from our analytics tool with a header row — columns are date, campaign, impressions, clicks — can you convert it to a JSON array so I can process it programmatically?"},{"title":"Export JSON records to CSV spreadsheet","prompt":"Take this JSON array of customer objects and turn it into CSV so I can open it in Excel and share it with the team."},{"title":"Normalize uploaded CSV for API pipeline","prompt":"Our users upload CSV files and we need to feed the data into a REST API that only accepts JSON — convert this CSV with headers into a JSON array of objects for me."}],"resultDescription":"A JSON response containing either a 'json' key with an array of objects (one per CSV row, keyed by header names) when converting CSV→JSON, or a 'csv' key with a CSV string when converting JSON→CSV.","failureModes":["Malformed CSV without a header row may produce unexpected keys or an error","JSON input that is not an array of flat objects may fail or produce incomplete CSV","Missing or empty 'csv'/'json' field in the request body returns an error","Payment failure or insufficient USDC balance blocks the request with a 402 response","Very large payloads may hit Cloudflare Workers size limits"],"whenToPreferThis":"Choose this endpoint when you need deterministic, stateless CSV↔JSON conversion billed per-call with no API key setup — ideal for AI agent workflows that handle tabular data and can pay micro-amounts in USDC on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:35:51.981Z","isFirstParty":false,"canonicalSlug":"x402-convert-csv-json-820964a1"}