---
title: Convert XML to JSON API
slug: xml-to-json
url: https://apyverse.com/apyhub/service/xml-to-json
provider: ApyHub
categories: [Developer Tools, File Conversion]
tags: [xml-to-json, xml-conversion, json-conversion, data-transformation, file-conversion, developer-tools]
auth: api_key
---

# Convert XML to JSON API

Convert raw XML, XML files, or XML URLs into inline JSON, downloadable files, or pre-signed S3 URLs. Useful for feeds and backends that need JSON output.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/xml-url/json-url` | What it does Converts the XML document available at a public URL into JSON and returns a pre-signed… | 50 |
| POST | `/convert/xml-file/json-raw` | What it does Converts an uploaded XML file into JSON and returns the result inline. The request sen… | 50 |
| POST | `/convert/xml-file/json-url` | What it does Converts an uploaded XML file into JSON and returns a pre-signed S3 URL for the genera… | 50 |
| POST | `/convert/xml-raw/json-raw` | What it does Converts a raw XML request body into JSON. The endpoint accepts the XML as a string in… | 50 |
| POST | `/convert/xml-raw/json-file` | What it does Converts a raw XML request body into a downloadable JSON file. The request sends XML a… | 50 |
| POST | `/convert/xml-url/json-raw` | What it does Converts the XML file available at the provided URL into JSON and returns the result.… | 50 |
| POST | `/convert/xml-url/json-file` | What it does Converts the XML file available at a public URL into a downloadable JSON file. The req… | 50 |
| POST | `/convert/xml-file/json-file` | What it does Converts an uploaded XML file into a downloadable JSON file. The request sends the XML… | 50 |
| POST | `/convert/xml-raw/json-url` | What it does Converts a raw XML request body into JSON and returns a pre-signed S3 URL for the gene… | 50 |

## About

## What it does
XML to JSON Converter turns XML into JSON from a raw XML body, an uploaded XML file, or a publicly accessible XML URL. You can get the converted result inline, as a downloadable JSON file, or as a pre-signed S3 URL depending on how your workflow needs to consume the output.

Send raw XML in the request body with `xml-raw-json-raw`, or upload a file with `xml-file-json-raw`. If your source lives elsewhere, use the URL-based endpoints and pass the XML file location in `url`. For file and URL workflows, you can also set an `output` query value to name the generated JSON file.

The inline response variants return a JSON object with the converted data. The file variants return downloadable JSON output. The S3 URL variants return a `data` field containing a pre-signed URL valid for 5 minutes.

Use XML to JSON Converter when you need to normalize XML feeds, move XML content into a JavaScript backend, or hand off XML exports to systems that expect JSON instead of nested markup.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/xml-to-json
