# Citiview Data Format Converter and Validator

> Citiview Data Format Converter and Validator is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-14).

Converts data between CSV, TSV, JSON, XML, and YAML formats (up to 1 MB) and optionally validates it against a JSON Schema, returning a list of all validation errors.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/convert?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-data-format-converter-and-validator-073a0d58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8V3pAsg7sgzE_ecb1kCP3

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 citiview-data-format-converter-and-validator-073a0d58
```

Example prompt: Can you convert this CSV data to JSON format for me: 'name,age\nAlice,30\nBob,25'? Also validate it against this schema: {"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer"}}}}

## When to prefer this

Choose this endpoint when you need to programmatically convert between common data serialization formats (CSV, TSV, JSON, XML, YAML) in a single call, especially when you also need JSON Schema validation in the same request. Ideal for ETL pipelines, data ingestion preprocessing, and validating structured data before storage or API submission. Prefer this over generic code execution when you want a lightweight, deterministic conversion without spinning up a runtime environment.

## Known failure modes

- Data exceeds 1 MB limit — request rejected
- Invalid or malformed source data that cannot be parsed — parse error returned
- Unsupported format specified for 'from' or 'to' — error response
- Invalid JSON Schema provided — schema parse error
- Data is valid but empty — may return empty structure
- XML namespace or complex XML structures may not round-trip cleanly

## How this service works

Data conversion and checking: convert between CSV, TSV, JSON, XML and YAML (typed CSV values), and optionally validate the data against a JSON Schema with a list of every error. Up to 1 MB. Also callable as GET with the same fields as query parameters.

## Output

Returns the data reformatted in the target format (CSV, TSV, JSON, XML, or YAML), with typed values where applicable (e.g., booleans and numbers inferred from CSV). If a JSON Schema was provided, also returns a structured list of every validation error found in the data.

## 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": [
      "data",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "data": {
       "type": "string"
      },
      "from": {
       "type": "string",
       "description": "csv | tsv | json | xml | yaml"
      },
      "schema": {
       "type": "string",
       "description": "Optional JSON Schema"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-data-format-converter-and-validator-073a0d58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
