# FastX402 XML to JSON Converter

> FastX402 XML to JSON Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Converts an XML string into an equivalent JSON object, returning a structured data representation of the XML content.

## Facts

- Endpoint: GET https://fastx402.tools/xml-to-json?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-xml-to-json-converter-802cf60f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wJZJY649bgzF1vfc2-8NH

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 fastx402-xml-to-json-converter-802cf60f
```

Example prompt: Convert this XML to JSON for me: '<rss version="2.0"><channel><title>My Feed</title><item><title>First Post</title><link>https://example.com/1</link></item></channel></rss>'

## When to prefer this

Choose this endpoint when you need a fast, no-setup, pay-per-call XML-to-JSON conversion without managing API keys or accounts. Ideal for one-off conversions in agent pipelines, processing RSS/Atom feeds, parsing SOAP responses, or transforming config files, especially when you want to pay per use in USDC on Base or Solana via x402 rather than maintaining a subscription.

## Known failure modes

- Malformed or invalid XML input returns an error — the xml query parameter must be well-formed XML
- Missing xml query parameter results in a 400-level error
- Very large XML payloads may be truncated or rejected
- XML with namespaces or special characters may not parse as expected

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object that structurally mirrors the input XML, with XML elements mapped to JSON keys, attributes preserved (prefixed with @_), and nested elements represented as nested objects. The response wraps the parsed data under a 'data' key.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "xml"
     ],
     "properties": {
      "xml": {
       "type": "string",
       "description": "XML text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "rss": {
         "type": "object",
         "properties": {
          "channel": {
           "type": "object",
           "properties": {
            "item": {
             "type": "object",
             "properties": {
              "link": {
               "type": "string"
              },
              "title": {
               "type": "string"
              }
             }
            },
            "title": {
             "type": "string"
            }
           }
          },
          "@_version": {
           "type": "string"
          }
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "rss": {
    "channel": {
     "item": {
      "link": "https://fastx402.tools/qr-code",
      "title": "New tool"
     },
     "title": "FastX402"
    },
    "@_version": "2.0"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-xml-to-json-converter-802cf60f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
