🧩

YAML to JSON (URL)

Convert a remote YAML URL to a downloadable JSON file.

GET 1 credit /v1/convert/yaml-to-json-file
curl -OJ "https://convert.toolkitapi.io/v1/convert/yaml-to-json-file?url=https://toolkitapi.io/config.yaml"
import httpx

resp = httpx.get(
    "https://convert.toolkitapi.io/v1/convert/yaml-to-json-file?url=https://toolkitapi.io/config.yaml",
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/yaml-to-json-file?url=https://toolkitapi.io/config.yaml", {
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
Binary JSON file streamed as a download (Content-Type: application/json)

Description

Convert a remote YAML URL to a downloadable JSON file.

How to Use

1

1. GET with the YAML `url`.

2

2. Optionally set `document_index` and `filename`.

3

3. Save the streamed JSON.

About This Tool

Fetches YAML from a public URL and streams back a JSON file. URL-based counterpart to [YAML to JSON](/convert/tools/yaml-to-json).

Why Use This Tool

Frequently Asked Questions

Multi-document streams?
Use `document_index` to pick a specific document (0-indexed).
Are anchors and aliases expanded?
Yes — inline.
What YAML version?
YAML 1.2 with PyYAML's safe loader semantics.

Start using YAML to JSON (URL) now

Get your free API key and make your first request in under a minute.