# fastapi.online YAML to JSON Converter

> fastapi.online YAML to JSON Converter is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-15).

Converts a YAML string into its JSON equivalent, paying per call with crypto via x402.

## Facts

- Endpoint: POST https://api.fastapi.online/yaml-to-json
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-yaml-to-json-converter-6d41070e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ESUxcaPzs43h14aT4M74W

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 fastapi-online-yaml-to-json-converter-6d41070e -d '<json body>'
```

Example prompt: Can you convert this YAML to JSON for me? Here's the content: 'name: Alice\nage: 30\nroles:\n  - admin\n  - editor'

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call YAML-to-JSON conversion without signing up for an account, especially useful in automated pipelines or agentic workflows where you need on-demand format conversion billed via crypto.

## Known failure modes

- Invalid or malformed YAML returns a parse error
- YAML exceeding 100,000 characters is rejected
- YAML with tab indentation issues may fail parsing
- Payment not provided or insufficient USDC balance results in 402 response

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

A JSON-formatted string equivalent of the provided YAML input, preserving all keys, values, nesting, and data types from the original YAML document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "yaml": {
   "type": "string",
   "maxLength": 100000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-yaml-to-json-converter-6d41070e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
