# agent402.tools CSV to Markdown Table

> agent402.tools CSV to Markdown Table is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Converts a CSV string into a GitHub-flavored Markdown table, treating the first row as the header.

## Facts

- Endpoint: POST https://agent402.tools/api/csv-to-md
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-csv-to-markdown-table-fdc4dad2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I1T5lzXBJOVUq-90wOYrL

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 agent402-tools-csv-to-markdown-table-fdc4dad2 -d '<json body>'
```

Example prompt: Take this CSV and turn it into a GitHub-flavored Markdown table — the first row is the header: "Name,Age,City\nAlice,30,New York\nBob,25,San Francisco"

## When to prefer this

Use this endpoint when you need to quickly convert structured CSV or TSV data into a Markdown table suitable for GitHub READMEs, wikis, or documentation — especially when you need a hosted API rather than a local script, and you want reliable GFM-compliant output with header row detection.

## Known failure modes

- Malformed CSV input with inconsistent column counts may produce misaligned table columns
- Empty CSV string returns an error or empty output
- Incorrect delimiter specification causes columns to not be split properly
- Very large CSV payloads may time out or be rejected
- Non-UTF-8 encoded characters may cause parsing errors

## How this service works

Convert CSV into a GitHub-flavored Markdown table (first row is the header).

## Output

Returns a GitHub-flavored Markdown table string with the first CSV row rendered as the header row and subsequent rows as data rows, ready to paste into a GitHub README or any Markdown document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string"
  },
  "delimiter": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markdown": "| name | age |\n| --- | --- |\n| Ada | 36 |\n| Bob | 40 |"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-csv-to-markdown-table-fdc4dad2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
