# apiacre.com Data Format Converter

> apiacre.com Data Format Converter is a paid API for AI agents from apiacre.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Converts data between CSV, JSON, and YAML formats via a single POST endpoint.

## Facts

- Endpoint: POST https://apiacre.com/v1/data/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-data-format-converter-20d8baf1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nKtiEFTf115R3BCkzzFzq

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 apiacre-com-data-format-converter-20d8baf1 -d '<json body>'
```

Example prompt: I have this CSV data and need it converted to JSON — can you send it through apiacre's data converter and give me back the JSON output?

## When to prefer this

Choose this endpoint when you need a fast, programmatic, pay-per-use conversion between CSV, JSON, and YAML without setting up a local parsing library. It is well-suited for agents that need on-demand format bridging across different systems as part of a data pipeline.

## Known failure modes

- Invalid or malformed source data causes a parse error and returns an error response
- Unsupported or mismatched source/target format combination
- Empty input body results in an error
- Data with complex nested structures may not map cleanly to flat CSV format
- Payment failure via x402 protocol prevents the call from completing

## How this service works

Convert caller-supplied CSV, TSV, JSON, JSON Lines (NDJSON), or YAML with optional root preservation, deterministic integrity hashes, JSON-encoded nested tabular cells, and explicit rejection of ambiguous duplicate keys or non-finite numbers.

## Output

The endpoint returns the input data reformatted in the requested target format (CSV, JSON, or YAML), ready for immediate use or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "csv",
    "tsv",
    "json",
    "jsonl",
    "yaml"
   ],
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "root_mode": {
   "enum": [
    "records",
    "preserve"
   ],
   "type": "string"
  },
  "target_format": {
   "enum": [
    "csv",
    "tsv",
    "json",
    "jsonl",
    "yaml"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "rows": 1,
   "format": "json",
   "content": "[\n  {\n    \"name\": \"Ada\",\n    \"score\": \"98\"\n  }\n]",
   "warnings": [],
   "conversion": {
    "version": "apiacre-data-convert/3",
    "rootMode": "records",
    "sourceRoot": "array",
    "nodesProcessed": 4,
    "nonStringKeysNormalized": 0
   },
   "inputSha256": "bae2475f86fa2343a9611424d3c2475e454b639c71da96a788602528e0937bea",
   "outputSha256": "faeabfb2a327ba5d4ad8496da70414d873499b57241fab51fe88c705617410bd",
   "sourceFormat": "csv"
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": [
    {
     "path": "/v1/data/schema",
     "title": "JSON Schema generator",
     "method": "POST",
     "reason": "Infer a reusable Draft 2020-12 contract from the converted records.",
     "service": "data.schema"
    }
   ]
  },
  "service": "data.convert",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

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