---
title: Convert YAML to JSON API
slug: convert-yaml-to-json
url: https://apyhub.com/apyhub/service/convert-yaml-to-json
provider: ApyHub
categories: [Developer Tools, File Conversion]
auth: api_key
---

# Convert YAML to JSON API

Convert raw YAML, uploaded files, or YAML at a URL into inline JSON, a downloadable file, or a signed S3 URL.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/convert/yaml-url/json-url` | What it does Converts a YAML file fetched from a publicly accessible URL into JSON and returns a pr… | 50 |
| POST | `/convert/yaml-raw/json-file` | What it does Converts a raw YAML string into a downloadable JSON file. The request sends the YAML c… | 50 |
| POST | `/convert/yaml-raw/json-raw` | What it does Converts a raw YAML string in the request body into JSON. The response is either a JSO… | 50 |
| POST | `/convert/yaml-raw/json-url` | What it does Converts a raw YAML string in the request body into JSON and returns a pre-signed S3 U… | 50 |
| POST | `/convert/yaml-file/json-file` | What it does Converts an uploaded YAML file into a downloadable JSON file. The request uploads the… | 50 |
| POST | `/convert/yaml-file/json-raw` | What it does Converts an uploaded YAML file into JSON and returns the converted content inline in t… | 50 |
| POST | `/convert/yaml-file/json-url` | What it does Converts an uploaded YAML file into JSON and returns a pre-signed S3 URL for the gener… | 50 |
| POST | `/convert/yaml-url/json-file` | What it does Converts a YAML file fetched from a public URL into a downloadable JSON file. You send… | 50 |
| POST | `/convert/yaml-url/json-raw` | What it does Converts a YAML file fetched from a publicly accessible URL into inline JSON. The resp… | 50 |

## About

## What it does
YAML to JSON Converter turns YAML into JSON from a raw request body, an uploaded file, or a public URL. You can receive the result inline, as a downloadable JSON file, or as a pre-signed S3 URL.

Use it when your app needs to ingest YAML config, migration data, or partner files and hand back JSON to another service. Send raw YAML in `content`, or provide a YAML `file` upload, or pass a public `url` to a YAML document. For URL- and file-based flows, you can also set the optional `output` query parameter to name the generated artifact.

The inline endpoints return parsed JSON as an object or array. The file endpoints return a downloadable JSON file. The URL endpoints return a `data` field containing a pre-signed S3 URL that points to the converted JSON file and expires after 5 minutes.

YAML to JSON Converter is a fit for build pipelines, content ingestion, and backend tooling where you need a predictable JSON form of YAML without writing your own parser.

## Usage

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