# FastX402 JSON to YAML Converter

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

Converts a JSON string into equivalent YAML format via a pay-per-call GET request.

## Facts

- Endpoint: GET https://fastx402.tools/json-to-yaml?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-json-to-yaml-converter-8c3d1b9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yFTpDYPMJtlLrHvYp7UOM

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-json-to-yaml-converter-8c3d1b9a
```

Example prompt: Convert this JSON to YAML for me: {"name": "fastx402", "tools": ["dns", "qr-code"], "price": 0.001, "live": true}

## When to prefer this

Choose this endpoint when you need a simple, no-account, no-API-key JSON-to-YAML conversion paid per call with USDC via x402 micropayments. Ideal for AI agents that need lightweight, stateless format conversion without managing API credentials or subscriptions. Best for one-off or infrequent conversions where a pay-per-use model ($0.001/call) is more economical than a subscription service.

## Known failure modes

- Invalid or malformed JSON input results in a conversion error
- Missing required 'json' query parameter returns a 400-style error
- Payment failure (insufficient USDC balance) returns HTTP 402 before processing
- Extremely large JSON payloads may hit size limits or timeout
- Non-UTF-8 encoded input may cause parsing errors

## 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 YAML-formatted string that is the semantic equivalent of the input JSON. The response is a JSON object with a single 'yaml' key containing the YAML text, preserving all data types, nesting, and array structures from the original JSON.

## 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": [
      "json"
     ],
     "properties": {
      "json": {
       "type": "string",
       "description": "JSON text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "yaml": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "yaml": "name: fastx402\ntools:\n  - dns\n  - qr-code\nprice: 0.001\nlive: true\n"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-json-to-yaml-converter-8c3d1b9a/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)
