# Format Conversion API (CSV↔JSON, Markdown↔HTML)

> Format Conversion API (CSV↔JSON, Markdown↔HTML) is a paid API for AI agents from api-production-17e1.up.railway.app, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Converts data between CSV and JSON formats (bidirectionally) and between Markdown and HTML (and HTML to plain text), pay-per-call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://api-production-17e1.up.railway.app/convert
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/format-conversion-api-csv-json-markdown-html-35c432ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R1bYDlBB-bBN1JgMsZuJz

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 format-conversion-api-csv-json-markdown-html-35c432ce
```

Example prompt: Can you convert this CSV data to JSON for me? Here's the CSV: 'name,age,city\nAlice,30,NYC\nBob,25,LA' — I need it as a proper JSON array so I can feed it into the next step of my pipeline.

## When to prefer this

Use this endpoint when an AI agent pipeline needs lightweight, pay-per-use format glue between steps — especially when no API key or signup is desired and the conversion is simple (CSV↔JSON or Markdown↔HTML). Prefer it over heavier ETL services for small, single-shot transformations in automated workflows.

## Known failure modes

- Malformed CSV or JSON input returns a parse error
- Unsupported conversion direction (e.g. JSON to HTML) returns an error or unsupported response
- Payment not included or invalid x402 header results in 402 Payment Required
- Missing required query parameters (source format, target format, or data) returns a 400 error
- Very large payloads may time out or be rejected

## How this service works

Format conversion for AI agents — convert between csv↔json, markdown→html, and html→markdown/text. Pay-per-call in USDC via x402 — no signup, no API key. Use as glue between pipeline steps so an agent can transform data formats on the fly.

## Output

Returns the input data reformatted in the target format: a JSON array/object when converting from CSV, a CSV string when converting from JSON, an HTML string when converting from Markdown, or a Markdown/plain-text string when converting from HTML.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "The page URL to unfurl."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/format-conversion-api-csv-json-markdown-html-35c432ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api-production-17e1.up.railway.app](https://www.zero.xyz/host/api-production-17e1.up.railway.app/llms.txt)
