# Web2Markdown JSON Schema Validator

> Web2Markdown JSON Schema Validator is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Validates CSV, JSON, YAML, or XML input data against a JSON schema, returning validation results and errors

## Facts

- Endpoint: GET https://lin-desk-x402.lindesk.workers.dev/v1/dataformat/json_schema?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web2markdown-json-schema-validator-e23622e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kFR94KoiuQZaLCQf1-sPv

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 web2markdown-json-schema-validator-e23622e4
```

Example prompt: Can you validate this JSON payload against a schema and tell me if there are any errors: {"name": "Alice", "age": "thirty"}?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call data validation service with no API key or signup, especially for quick one-off checks of CSV, JSON, YAML, or XML payloads against a schema. Suitable for AI agents that need programmatic data quality checks in automation pipelines.

## Known failure modes

- Input exceeds 100 KiB limit — request rejected
- Malformed options JSON string causes parsing failure
- Unsupported data format returns error
- Network timeout on the workers.dev edge function
- Payment failure via x402 protocol blocks the request

## How this service works

Pay-per-call API for AI agents: turn any public web page or PDF into clean, LLM-ready Markdown. $0.002 per call in USDC on Base via x402. No API key, no signup.

## Output

Returns a JSON object with fields: 'op' (operation name, e.g. 'json_schema'), 'valid' (boolean indicating whether input passed validation), 'errors' (array of validation error messages), and 'elapsed_ms' (processing time in milliseconds).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Payload text (CSV/JSON/YAML/XML); max 100 KiB"
      },
      "options": {
       "type": "string",
       "description": "JSON object string, e.g. {\"schema\":{...}}"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "op": {
       "type": "string"
      },
      "cols": {
       "type": "array"
      },
      "rows": {
       "type": "integer"
      },
      "valid": {
       "type": "boolean"
      },
      "errors": {
       "type": "array"
      },
      "result": {},
      "encoding": {
       "type": "string"
      },
      "elapsed_ms": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "json_schema",
  "valid": true,
  "errors": [],
  "elapsed_ms": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web2markdown-json-schema-validator-e23622e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
