# Yog x402 CSV↔JSON Converter

> Yog x402 CSV↔JSON Converter is a paid API for AI agents from api.gosyog.lol, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-29).

Converts data between CSV and JSON formats using an LLM-backed service, paid via x402 USDC on Base.

## Facts

- Endpoint: POST https://api.gosyog.lol/api/service/yog/csv_json_convert?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yog-x402-csv-json-converter-fd2e6ea7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ew0PJ1riqcy173R5Nodf3

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 yog-x402-csv-json-converter-fd2e6ea7 -d '<json body>'
```

Example prompt: Convert this CSV data to JSON for me — the source_format is csv and I want the target_format as json: 'name,hp\nSutt,12\nAra,8'

## When to prefer this

Use this endpoint when you need a quick, pay-per-call CSV↔JSON conversion without standing up your own parsing infrastructure, especially within an agent workflow that already uses x402 USDC payments on Base. It is well-suited for single-shot format handoffs in data pipelines where you need a reliable row count confirmation in the response.

## Known failure modes

- Invalid or mismatched source_format / target_format enum values causing a schema validation error
- Malformed input data that cannot be parsed as the declared source format
- Payment failure via x402 if USDC balance is insufficient or transaction is rejected
- Empty data input returning zero rows
- Network timeout on the gosyog.lol API

## How this service works

Yog x402 is a paid LLM-as-a-service API with three text capabilities plus a free-tier liveness ping, all paid via x402 USDC on Base. classify_text ($0.01) classifies text into one of your supplied labels — sentiment tagging, routing support tickets, labeling data for ML pipelines. json_repair ($0.02) fixes malformed/messy text into valid JSON — cleaning up LLM output or scraped JSON that's slightly malformed before further processing. extract_fields ($0.03) pulls named fields from source text and will not fabricate values — structured extraction from unstructured text (name/date/amount from invoices or emails).

## Output

A JSON object with ok: true, plus a result containing the converted rows as an array of objects, the output format name, and the total row_count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {},
  "source_format": {
   "enum": [
    "csv",
    "json"
   ]
  },
  "target_format": {
   "enum": [
    "csv",
    "json"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "result": {
   "rows": [
    {
     "hp": "12",
     "name": "Sutt"
    }
   ],
   "format": "json",
   "row_count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/yog-x402-csv-json-converter-fd2e6ea7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gosyog.lol](https://www.zero.xyz/host/api.gosyog.lol/llms.txt)
