# OpenVerbs Format Converter

> OpenVerbs Format Converter is a paid API for AI agents from format.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Converts structured documents between 14 formats (JSON, YAML, XML, CSV, TOML, and more) using JSON as an intermediate hub

## Facts

- Endpoint: POST https://format.openverbs.com/v1/convert
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openverbs-format-converter-9b99f9c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S5_1FVLPfvkEYvIh7UkCA

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 openverbs-format-converter-9b99f9c7 -d '<json body>'
```

Example prompt: Convert this YAML config string to TOML: the document is '---\nname: myapp\nport: 8080\ndebug: true', pretty-print the output with 2-space indentation.

## When to prefer this

Choose this endpoint when you need reliable, bidirectional conversion between any of 14 popular structured data formats in a single call, without standing up your own parsing pipeline. It is especially useful for agent workflows that receive data in one format (e.g. YAML from a config file) and need it in another (e.g. JSON for downstream API consumption). The pay-per-call x402 micropayment model suits sporadic or low-volume conversion tasks where running a dedicated service is overkill. Prefer this over DIY parsing when format correctness and rejection of malformed input before charging are important.

## Known failure modes

- Malformed or unparseable source document rejected with error before payment
- Source-to-target structural mismatch (e.g. nested object to CSV) rejected with error
- Unsupported format enum value rejected by schema validation
- Document exceeds 1,000,000 character limit
- Missing required fields (from, to, data) cause validation error
- XML output attempted on data with non-string keys incompatible with XML element names

## How this service works

Transcode a document between json, json5, jsonc, yaml, xml, csv, tsv, toml, ndjson, ini, env, properties, plist and querystring. Any source converts to any target through a JSON hub. Malformed input or a target that cannot represent the structure is rejected before payment.

## Output

A JSON response containing the converted document as a string in the requested target format. The output reflects any specified options like pretty-printing, indentation width, CSV header treatment, or custom XML root element name. Malformed input or structurally incompatible source-to-target combinations are rejected before any payment is charged.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "from",
      "to",
      "data"
     ],
     "properties": {
      "to": {
       "enum": [
        "json",
        "json5",
        "jsonc",
        "yaml",
        "xml",
        "csv",
        "tsv",
        "toml",
        "ndjson",
        "ini",
        "env",
        "properties",
        "plist",
        "querystring"
       ],
       "type": "string",
       "description": "Target format to convert to."
      },
      "data": {
       "type": "string",
       "maxLength": 1000000,
       "minLength": 1,
       "description": "The document to convert, as a string in the `from` format."
      },
      "from": {
       "enum": [
        "json",
        "json5",
        "jsonc",
        "yaml",
        "xml",
        "csv",
        "tsv",
        "toml",
        "ndjson",
        "ini",
        "env",
        "properties",
        "plist",
        "querystring"
       ],
       "type": "string",
       "description": "Source format of `data`."
      },
      "options": {
       "type": "object",
       "properties": {
        "header": {
         "type": "boolean",
         "description": "For csv/tsv, use the first row as a header. Default true."
        },
        "indent": {
         "type": "integer",
         "maximum": 10,
         "minimum": 0,
         "description": "Indent width for pretty json/xml. Default 2."
        },
        "pretty": {
         "type": "boolean",
         "description": "Pretty-print json/xml output. Default true."
        },
        "rootName": {
         "type": "string",
         "maxLength": 64,
         "minLength": 1,
         "description": "Root element name when wrapping a non-object value into xml. Default \"root\"."
        }
       },
       "additionalProperties": false
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openverbs-format-converter-9b99f9c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from format.openverbs.com](https://www.zero.xyz/host/format.openverbs.com/llms.txt)
