{"uid":"cap_oXZ5qKafsZJXKpykEjG8N","slug":"x402-tools-data-format-converter-8e22e897","name":"x402-tools Data Format Converter","description":"Pay-per-call utility APIs for AI agents, settled in USDC via the x402 protocol.","url":"https://x402.nichospt.net/convert-data?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"enum":["json","yaml","toml","csv"],"type":"string"},"data":{"type":"string","maxLength":2000000,"description":"Source document as a string"},"from":{"enum":["json","yaml","toml","csv"],"type":"string"}}},"responseSchema":{"type":"json","example":{"to":"yaml","from":"json","result":"name: Ada\nlangs:\n  - ALGOL\n  - Ada\n"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RZXELwXUB--CNIR9pvPHL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts structured data documents between JSON, YAML, TOML, and CSV formats, billed at $0.01 USDC per call via x402.","exampleAgentPrompt":"Convert this JSON string to YAML for me: '{\"name\":\"Ada\",\"langs\":[\"ALGOL\",\"Ada\"]}'","exampleUseCases":[{"title":"Configuration migration for deployment pipeline","prompt":"I have a TOML config file for our staging environment, but the production system only accepts YAML. Can you convert it for me?"},{"title":"Data export format for external analytics platform","prompt":"Our analytics tool needs CSV input, but we're working with JSON data right now. Transform our JSON records into CSV so we can upload them."},{"title":"API response standardization across microservices","prompt":"One of our services returns data in YAML, but the rest of our pipeline expects JSON. Please convert this YAML response into JSON format so everything stays consistent."}],"resultDescription":"A JSON object containing the converted document as a string in the target format, plus the source and target format labels (e.g. {\"from\":\"json\",\"to\":\"yaml\",\"result\":\"name: Ada\\nlangs:\\n  - ALGOL\\n  - Ada\\n\"}).","failureModes":["Invalid or malformed source document returns a parse error","Unsupported format enum value returns a validation error","Document exceeds 2,000,000 character limit returns a size error","Payment failure (insufficient USDC balance) returns HTTP 402","Conversion semantics mismatch (e.g. CSV to TOML with nested structures) may return an error or lossy result"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically reformat structured data between JSON, YAML, TOML, and CSV as part of a workflow — especially when a pay-per-call micropayment model (x402/USDC) is acceptable and no local conversion library is available or desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:32:11.256Z","isFirstParty":false,"canonicalSlug":"x402-tools-data-format-converter-8e22e897"}