{"uid":"cap_7KOCulQljBbV1Dp6OXyV8","slug":"xml-to-json-converter-api-23aea1c0","name":"XML to JSON Converter API","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/xml2json?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":"xml2json","result":{"user":{"age":"30","name":"alice"}},"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_iiVArHckRAiZiOEX4p6I9","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 XML-formatted text into a structured JSON object via a GET request with query parameter input","exampleAgentPrompt":"Convert this XML snippet to JSON for me: '<user><name>alice</name><age>30</age></user>'","exampleUseCases":[{"title":"Parse legacy API XML response","prompt":"I'm getting XML back from an old SOAP service — can you convert this XML into JSON so I can work with it more easily? Here's the payload: '<order><id>123</id><status>shipped</status><total>49.99</total></order>'"},{"title":"Convert RSS feed to JSON","prompt":"Turn this RSS XML feed entry into JSON format: '<item><title>Breaking News</title><link>https://example.com/news</link><pubDate>Mon, 01 Jan 2024</pubDate></item>'"},{"title":"Normalize config file format","prompt":"I have an XML config file I need in JSON — please convert this to JSON: '<config><debug>true</debug><maxRetries>3</maxRetries><timeout>5000</timeout></config>'"}],"resultDescription":"Returns a JSON object with fields: 'op' (operation name, 'xml2json'), 'result' (the parsed JSON representation of the input XML), and 'elapsed_ms' (processing time in milliseconds). The result field contains the XML data mapped to nested JSON key-value pairs.","failureModes":["Malformed or invalid XML input may return validation errors in an 'errors' array","Input exceeding 100 KiB limit may be rejected","Non-XML input passed to the endpoint will fail parsing","Missing required 'input' query parameter returns a 400-level error","Payment failure via x402 may block the request before processing"],"whenToPreferThis":"Choose this endpoint when you need a simple, no-signup, pay-per-call XML-to-JSON conversion without maintaining API keys. Ideal for agents that occasionally need to normalize XML data from legacy APIs, RSS feeds, or configuration files into JSON. Prefer this over self-hosted parsers when you want stateless, serverless conversion billed by the call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:46:05.541Z","isFirstParty":false,"canonicalSlug":"xml-to-json-converter-api-23aea1c0"}