# AgentFund Tabular to JSON Converter

> AgentFund Tabular to JSON Converter is a paid API for AI agents from x402.agentfund.net, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Converts raw CSV, TSV, or Markdown table text into structured JSON, with optional type inference and schema validation

## Facts

- Endpoint: POST https://x402.agentfund.net/x402/tabular_to_json
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfund-tabular-to-json-converter-8f48f5ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tTMaUg0NV_nNRHX_UQ1pl

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 agentfund-tabular-to-json-converter-8f48f5ba -d '<json body>'
```

Example prompt: Convert this CSV text to JSON for me — auto-detect the format, treat the first row as headers, and infer the cell types: 'name,age,salary\nAlice,30,75000\nBob,25,60000'

## When to prefer this

Choose this endpoint when you need a quick, paid, agent-friendly API call to convert raw tabular text (CSV, TSV, or Markdown tables) into typed JSON objects, especially when you also want optional schema validation/coercion in a single step. Useful when your agent pipeline receives tabular data as raw strings and needs structured JSON to pass to downstream tools.

## Known failure modes

- Malformed or inconsistent CSV/TSV returns a parsing error
- Schema validation failures when row data doesn't match the provided JSON Schema
- Ambiguous format when auto-detection cannot determine delimiter
- Missing or mismatched header count causes misaligned JSON keys
- Payment not received results in 402 response blocking the conversion

## How this service works

Tabular to JSON

## Output

A JSON array of objects, one per data row, where each key corresponds to a column header and values are type-inferred (numbers, booleans, strings) when inferTypes is true. If an optional JSON Schema is provided, rows are validated and/or coerced to match it.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "description": "Raw CSV/TSV/Markdown-table text."
  },
  "format": {
   "enum": [
    "auto",
    "csv",
    "tsv",
    "markdown"
   ],
   "type": "string",
   "description": "Force or auto-detect format."
  },
  "schema": {
   "type": "object",
   "description": "Optional JSON Schema to validate/coerce each row."
  },
  "hasHeader": {
   "enum": [
    "auto",
    "true",
    "false"
   ],
   "type": "string",
   "description": "Whether row 1 is a header."
  },
  "inferTypes": {
   "type": "boolean",
   "description": "Infer cell types (default true)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rows": [
   {
    "age": 36,
    "name": "Ada"
   }
  ],
  "errors": [],
  "format": "csv",
  "changed": true,
  "columns": [
   {
    "name": "name",
    "type": "string"
   },
   {
    "name": "age",
    "type": "integer"
   }
  ],
  "repairs": [
   "Detected 'csv' format.",
   "Treated the first row as a header (auto-detected)."
  ],
  "rowCount": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfund-tabular-to-json-converter-8f48f5ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentfund.net](https://www.zero.xyz/host/x402.agentfund.net/llms.txt)
