JSON array to CSV
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.
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | A JSON array of objects |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/json/to-csv?text=%5B%7B%22name%22%3A%22Ada%22%2C%22age%22%3A36%7D%2C%7B%22name%22%3A%22Alan%22%2C%22age%22%3A41%7D%5D"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/json/to-csv?text=%5B%7B%22name%22%3A%22Ada%22%2C%22age%22%3A36%7D%2C%7B%22name%22%3A%22Alan%22%2C%22age%22%3A41%7D%5D&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.
Example result
{
"csv": "name,age\nAda,36\nAlan,41",
"rows": 2,
"columns": 2
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is json_to_csv, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp