{"uid":"cap_nQjjR_81PR2_vkMpij6em","slug":"json-to-yaml-converter-6cb112dd","name":"JSON to YAML Converter","description":"Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.","url":"https://lin-desk-x402.lindesk.workers.dev/v1/dataformat/json2yaml?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["input"],"properties":{"input":{"type":"string","description":"Payload text (CSV/JSON/YAML/XML); max 100 KiB"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"op":{"type":"string"},"cols":{"type":"array"},"rows":{"type":"integer"},"valid":{"type":"boolean"},"errors":{"type":"array"},"result":{},"encoding":{"type":"string"},"elapsed_ms":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"op":"json2yaml","result":"name: alice\ntags:\n- a\n- b\n","elapsed_ms":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ej9zTc2g6pUZhE1wpmH0A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a JSON payload into equivalent YAML-formatted text via a pay-per-call GET endpoint.","exampleAgentPrompt":"Convert this JSON to YAML for me: {\"name\": \"alice\", \"tags\": [\"a\", \"b\"]}.","exampleUseCases":[{"title":"Kubernetes config YAML generation","prompt":"I have a JSON object defining a Kubernetes deployment and I need it as YAML — can you convert {\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"name\":\"my-app\"}} to YAML for me?"},{"title":"CI/CD pipeline config reformatting","prompt":"My pipeline config is stored as JSON but the CI tool requires YAML. Can you convert this JSON to YAML: {\"steps\":[{\"name\":\"build\",\"run\":\"npm install\"}]}?"},{"title":"API response to YAML for documentation","prompt":"Take this JSON API response and give it to me as clean YAML so I can paste it into our docs: {\"status\":\"ok\",\"version\":\"2.1\",\"features\":[\"search\",\"export\"]}."}],"resultDescription":"Returns a JSON object containing the operation name ('json2yaml'), the resulting YAML-formatted string under 'result', and the processing time in milliseconds under 'elapsed_ms'.","failureModes":["Invalid or malformed JSON input returns a validation error or empty result","Input exceeding 100 KiB limit may be rejected","Non-JSON input (e.g. CSV or XML) passed as 'input' may fail silently or return an error","Payment failure (x402) prevents the call from being processed","Network timeouts on the Cloudflare Worker edge"],"whenToPreferThis":"Choose this endpoint when you need a simple, stateless, pay-per-call JSON-to-YAML conversion without API keys or account setup. Ideal for agents that occasionally need to reformat configuration or data payloads on the fly using USDC micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:46:32.776Z","isFirstParty":false,"canonicalSlug":"json-to-yaml-converter-6cb112dd"}