# 24K Labs Data Format Converter

> 24K Labs Data Format Converter is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Converts structured data between formats (e.g. CSV to JSON, JSON to CSV) and returns the transformed result with a row count.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/data-format-convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-data-format-converter-3b213a09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pz9jSt69eSmfwUVWD7tmU

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 24k-labs-data-format-converter-3b213a09 -d '<json body>'
```

Example prompt: Convert this CSV data to JSON for me: 'name,age\nAnn,30\nBob,25' — I need it as a JSON object.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call serverless conversion between common structured data formats (CSV/JSON) without standing up your own parsing logic. Ideal for lightweight agent pipelines that occasionally need to reformat data on the fly, especially within the x402 micropayment ecosystem at $0.002 per call.

## Known failure modes

- Malformed input data (e.g. inconsistent CSV columns) may cause parse errors
- Unsupported format pair returns an error response
- Empty input data may return rows:0 with empty result
- Mismatched delimiters or encoding issues can cause garbled output

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

Returns a JSON object containing the number of rows processed ('rows' integer) and a 'result' field with the converted data as a string in the target format (e.g. a JSON string representation of the converted records).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 2,
  "result": "{\"name\": \"Ann\", \"age\": \"30\"}"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-data-format-converter-3b213a09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
