# FastX402 YAML to JSON Converter

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

Converts a YAML string to its equivalent JSON representation via a pay-per-call GET request.

## Facts

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

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

Example prompt: Can you convert this YAML to JSON for me? Here it is: 'name: fastx402\nprice: 0.001\ntools:\n  - dns\n  - qr-code'

## When to prefer this

Choose this endpoint when you need a lightweight, instant, no-account YAML-to-JSON conversion paid per-call in USDC via x402 — ideal for AI agents that don't want to manage API keys or subscriptions and only occasionally need format conversion.

## Known failure modes

- Invalid or malformed YAML input returns an error response
- Missing required 'yaml' query parameter results in a 400-level error
- Extremely large YAML documents may time out or be rejected
- YAML with tabs instead of spaces may fail to parse correctly

## 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

A JSON object containing a 'data' field with the converted JSON representation of the input YAML, plus metadata fields like 'live' (boolean), 'name' (service name), and 'price' (cost per call).

## 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": [
      "yaml"
     ],
     "properties": {
      "yaml": {
       "type": "string",
       "description": "YAML text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "live": {
         "type": "boolean"
        },
        "name": {
         "type": "string"
        },
        "price": {
         "type": "number"
        },
        "tools": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "live": true,
   "name": "fastx402",
   "price": 0.001,
   "tools": [
    "dns",
    "qr-code"
   ]
  }
 }
}
```

## More

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