{"uid":"cap_BtC29HcZ9rqkWyQO5rBA3","slug":"yaml-to-csv-converter-886cf3d9","name":"YAML to CSV Converter","description":"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.","url":"https://toolshed.lemon-agent.dev/convert/yaml-csv?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CSqJstczwkLrZsjx6sshs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a YAML list of maps into a CSV file with a header row, flattening one level of nesting to dotted column names","exampleAgentPrompt":"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`","exampleUseCases":[{"title":"Export config records to spreadsheet","prompt":"I have a YAML list of server config records with nested fields like environment.name and environment.region — can you convert it to a CSV so I can open it in Excel?"},{"title":"Pipeline data format handoff","prompt":"My upstream service outputs a YAML list of maps and my downstream tool only accepts CSV — can you transform this YAML into a CSV file with a header row?"},{"title":"Flatten YAML dataset for analysis","prompt":"I've got a YAML document that's a list of user records with one level of nested fields like address.city. Convert it to CSV so I can load it into a data analysis tool."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:39:07.535Z","isFirstParty":false,"canonicalSlug":"yaml-to-csv-converter-886cf3d9"}