# AgentsTools Data Format Converter

> AgentsTools Data Format Converter is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts data between formats including JSON, CSV, YAML, TOML, Markdown, HTML, base64, hex, and plain text entirely client-side without network calls.

## Facts

- Endpoint: POST https://api.agentstools.dev/convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-data-format-converter-b83cbf5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RNNlYjjTqHJIKCQGLchtq

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 agentstools-data-format-converter-b83cbf5c -d '<json body>'
```

Example prompt: Convert this JSON data to CSV for me: '{"name":"Alice","age":30,"city":"NYC"}' — I need it in CSV format.

## When to prefer this

Use this endpoint when you need a fast, pure-compute format conversion with no side effects and no external data fetching — ideal for pipeline preprocessing steps, normalizing data before storage, or transforming documents between serialization formats. Prefer this over general-purpose code execution tools when the conversion is one of the supported format pairs and you want a cheap, deterministic, single-call transformation.

## Known failure modes

- Unsupported source/target format combination returns validation error
- Malformed source data (e.g. invalid JSON) causes parse failure and error response
- Missing required fields (data, from, to) returns schema validation error
- Incompatible conversion path (e.g. base64 to TOML) may return empty or error response

## How this service works

Pure-compute data format conversion (no network): JSON<->CSV, JSON<->YAML, JSON normalize/minify, Markdown->HTML (sanitized), HTML->Markdown/text, base64/hex, TOML->JSON. Operates only on the supplied data.

## Output

Returns the converted data as a string in the requested target format. For JSON targets this may include minified or normalized output depending on options passed. For Markdown-to-HTML the output is sanitized HTML. For base64/hex the output is the encoded or decoded string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "base64",
    "csv",
    "hex",
    "html",
    "json",
    "markdown",
    "text",
    "toml",
    "yaml"
   ],
   "type": "string",
   "description": "Target format"
  },
  "data": {
   "type": "string",
   "description": "The data to convert (the source document as a string)"
  },
  "from": {
   "enum": [
    "base64",
    "csv",
    "hex",
    "html",
    "json",
    "markdown",
    "text",
    "toml",
    "yaml"
   ],
   "type": "string",
   "description": "Source format"
  },
  "options": {
   "type": "object",
   "description": "Per-conversion options, e.g. {minify, sort_keys, indent, delimiter}"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstools-data-format-converter-b83cbf5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
