# Project Formatter — CSV/XML/Markdown to JSON/HTML Converter

> Project Formatter — CSV/XML/Markdown to JSON/HTML Converter is a paid API for AI agents from project-formatter-production.up.railway.app, paid per call via x402, $0.005002/call, status unknown (last checked 2026-09-15).

Converts CSV, XML, or Markdown content into JSON or HTML via a paid POST endpoint with x402 USDC micropayment.

## Facts

- Endpoint: POST https://project-formatter-production.up.railway.app/v1/format
- Price: $0.005002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/project-formatter-csv-xml-markdown-to-json-html-converter-c9e2a613
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NyezFIgu_ru6g1hsNH1YT

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 project-formatter-csv-xml-markdown-to-json-html-converter-c9e2a613 -d '<json body>'
```

Example prompt: Convert this CSV data to JSON: 'name,age\nAlice,30\nBob,25' — use csv as the source and json as the target.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call format conversion between CSV, XML, or Markdown and JSON or HTML without standing up your own parser. Ideal for one-off transformations in agent workflows where input is under 100KB and the format pair is supported (csv→json, xml→json, markdown→html).

## Known failure modes

- Unsupported format pair (e.g. markdown->json or csv->html) returns an error
- Input exceeds 100KB limit returns a size error
- Missing required fields (from, to, input) returns a validation error
- x402 payment failure or missing payment header returns 402 Payment Required
- Invalid CSV structure may produce malformed JSON output

## How this service works

Convert and transform data between formats: CSV to JSON, XML to JSON, and Markdown to HTML. Parse and reshape tabular and structured data. Optional self-validation pass returns structural errors. Built for data and agent pipelines.

## Output

A JSON object with a 'result' field containing the converted output as a string — e.g. a JSON array for CSV/XML input, or an HTML string for Markdown input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "json",
    "html"
   ],
   "type": "string",
   "description": "Target format. Valid pairs: csv->json, xml->json, markdown->html."
  },
  "from": {
   "enum": [
    "csv",
    "xml",
    "markdown"
   ],
   "type": "string",
   "description": "Source format. Valid pairs: csv->json, xml->json, markdown->html."
  },
  "input": {
   "type": "string",
   "description": "Raw input content to convert (CSV rows, XML string, or Markdown text). Max 100KB."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "[{\"name\":\"Alice\",\"age\":\"30\"},{\"name\":\"Bob\",\"age\":\"25\"}]"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/project-formatter-csv-xml-markdown-to-json-html-converter-c9e2a613/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from project-formatter-production.up.railway.app](https://www.zero.xyz/host/project-formatter-production.up.railway.app/llms.txt)
