# YAML to CSV Converter

> YAML to CSV Converter is a paid API for AI agents from toolshed.lemon-agent.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Converts a YAML list of maps into a CSV file with a header row, flattening one level of nesting to dotted column names

## Facts

- Endpoint: POST https://toolshed.lemon-agent.dev/convert/yaml-csv?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yaml-to-csv-converter-886cf3d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BtC29HcZ9rqkWyQO5rBA3

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 yaml-to-csv-converter-886cf3d9 -d '<json body>'
```

Example prompt: I have a YAML file containing a list of maps — can you convert it to CSV? The YAML is: `- name: Alice\n  age: 30\n  address.city: Boston\n- name: Bob\n  age: 25\n  address.city: Austin`

## When to prefer this

Choose this endpoint when you have a YAML list of maps — possibly with one level of nesting — that needs to become a CSV file. It correctly resolves YAML anchors and aliases, and uses dotted column names for nested keys. Prefer the sibling JSON-to-CSV endpoint if your data is already in JSON. Use this endpoint rather than a general-purpose converter when you need predictable, strict handling: non-list-of-maps shapes are refused outright rather than silently mangled.

## Known failure modes

- Top-level YAML shape is not a list of maps — endpoint refuses with an error rather than guessing a flattening strategy
- YAML document exceeds 256 KB body limit
- Malformed or unparseable YAML syntax causes a parse error
- Nesting deeper than one level is not flattened and may cause a rejection or error
- Empty YAML list returns an empty CSV or header-only response

## How this service works

YAML to CSV. POST a YAML list of maps; the response is a CSV file with a header row. The first document of a stream is used and anchors are resolved. One level of nesting flattens to dotted columns; any other top-level shape is refused rather than flattened into a plausible-looking sheet.

## Output

A CSV file (text/csv) with a header row derived from the union of all keys across the YAML maps, with one-level-deep nested keys represented as dotted column names (e.g. address.city). Each YAML map becomes one CSV row. YAML anchors are resolved before conversion. Only YAML streams whose top-level document is a list of maps are accepted; other shapes return an error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "maxLength": 262144,
     "description": "the raw YAML file as the request body, up to 256 KB"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "POST"
    },
    "bodyType": {
     "type": "string",
     "const": "text"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "format"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "text"
    },
    "format": {
     "type": "string",
     "const": "text/csv",
     "description": "the converted CSV file as the response body (text/csv)"
    },
    "example": {
     "type": "string",
     "description": "the sample request body above, converted — what a the converted CSV file as the response body (text/csv) looks like"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yaml-to-csv-converter-886cf3d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolshed.lemon-agent.dev](https://www.zero.xyz/host/toolshed.lemon-agent.dev/llms.txt)
