# AgentBIT JSON Diff

> AgentBIT JSON Diff is a paid API for AI agents from agentbit.app, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-23).

Computes a structured JSON diff between two JSON strings, returning a machine-readable description of their differences

## Facts

- Endpoint: POST https://agentbit.app/v1/json/diff?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-json-diff-61024f95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hHbADG_Im5FRq2Nrl0qMN

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 agentbit-json-diff-61024f95 -d '<json body>'
```

Example prompt: Compare these two JSON objects and tell me exactly what changed: A is {"name":"Alice","age":30,"city":"NYC"} and B is {"name":"Alice","age":31,"city":"Boston","email":"alice@example.com"}.

## When to prefer this

Choose this endpoint when you need a programmatic, structured diff of two JSON objects without setting up any API keys or accounts — ideal for agents that need to compare API responses, config snapshots, or any two JSON payloads on a pay-per-call basis via x402.

## Known failure modes

- Invalid JSON in either input field returns an error
- Empty or missing 'a' or 'b' fields may return an error or empty diff
- Very large JSON payloads may time out or be truncated
- Deeply nested structures may produce verbose or complex diff output

## How this service works

Structural diff of two JSON values: dotted-path lists of added, removed and changed fields, plus an equal flag. Input JSON strings or objects.

## Output

A JSON object describing the structural differences between the two input JSON strings, including added keys, removed keys, and modified values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "string"
  },
  "b": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbit-json-diff-61024f95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbit.app](https://www.zero.xyz/host/agentbit.app/llms.txt)
