# Edified Lab Structured Data Tools

> Edified Lab Structured Data Tools is a paid API for AI agents from api.edifiedlab.com, paid per call via x402, $0.211/call, status unknown (last checked 2026-09-18).

Diff two JSON objects, apply a JSON Patch, or validate XML against an XSD schema and CSV/tabular data against a schema

## Facts

- Endpoint: POST https://api.edifiedlab.com/v1/tools/structured-data
- Price: $0.211/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/edified-lab-structured-data-tools-21a6d14b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AO3NRzGo9KF8gqjiRmoMC

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 edified-lab-structured-data-tools-21a6d14b -d '<json body>'
```

Example prompt: Can you diff these two JSON objects for me — base is {"name":"Alice","age":30} and revised is {"name":"Alice","age":31,"city":"NYC"} — use the json_diff operation?

## When to prefer this

Choose this endpoint when you need general-purpose structured data operations — diffing JSON payloads, applying RFC 6902 JSON Patch operations, or validating XML against XSD and CSV against a tabular schema. It is not specific to OpenAPI or any particular domain, making it suitable for data pipeline validation, config management, ETL preprocessing, or any workflow where you need to compare, transform, or verify structured data formats before downstream processing.

## Known failure modes

- Invalid or missing 'op' enum value returns an error
- Malformed JSON in base or revised fields causes parse error
- XML document not well-formed returns parse error before schema validation
- XSD schema itself is invalid or unparseable
- CSV data does not match expected delimiter or encoding
- JSON Patch array contains invalid patch operations
- Missing required fields for the chosen op (e.g. no xml/xsd for xml_validate)
- Network timeout on very large documents

## How this service works

Diff JSON, apply JSON Patch, or validate XML/XSD and CSV/tabular data; this is general-purpose structured-data tooling, not OpenAPI-specific diffing.

## Output

Returns the result of the requested operation: for json_diff, a structured diff describing added, removed, and changed fields; for json_patch, the resulting patched JSON document; for xml_validate and csv_validate, a validation result indicating pass/fail along with any error messages describing schema violations or malformed data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "json_diff",
    "json_patch",
    "xml_validate",
    "csv_validate"
   ],
   "type": "string"
  },
  "csv": {
   "type": "string"
  },
  "xml": {
   "type": "string"
  },
  "xsd": {
   "type": "string"
  },
  "base": {},
  "patch": {
   "type": "array"
  },
  "schema": {
   "type": "object"
  },
  "revised": {},
  "document": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/edified-lab-structured-data-tools-21a6d14b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.edifiedlab.com](https://www.zero.xyz/host/api.edifiedlab.com/llms.txt)
