# G-Forge JSON To CSV

> G-Forge JSON To CSV is a paid API for AI agents from api.getretold.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-24).

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.

## Facts

- Endpoint: POST https://api.getretold.com/services/agent-json-to-csv/invoke?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/g-forge-json-to-csv-2305a8cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KCc1KZF8-DSJ6XeLPqSMm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability g-forge-json-to-csv-2305a8cf -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "array",
   "items": {
    "type": "object",
    "maxProperties": 32,
    "additionalProperties": {
     "type": [
      "string",
      "number",
      "boolean",
      "null"
     ]
    }
   },
   "maxItems": 5000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/g-forge-json-to-csv-2305a8cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getretold.com](https://www.zero.xyz/host/api.getretold.com/llms.txt)
