# AgentsToolsHub JSON Diff

> AgentsToolsHub JSON Diff is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Structurally compares two JSON documents and returns every added, removed, and changed value with its RFC 6901 JSON Pointer path.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/dev/json-diff?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-json-diff-07faa7b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4rjVUhX8GaCPw8NxorCaY

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 agentstoolshub-json-diff-07faa7b0
```

Example prompt: Can you compare these two JSON objects and tell me exactly what changed — added, removed, or modified — using JSON Pointer paths? Here's the before: {"name":"Alice","age":30} and the after: {"name":"Alice","age":31,"city":"NYC"}.

## When to prefer this

Choose this endpoint when you need deterministic, machine-readable JSON diffing with exact RFC 6901 JSON Pointer paths rather than a human-readable text diff. It is ideal for agents that need to programmatically process differences, audit configuration drift, or detect schema changes between two JSON states without ambiguity.

## Known failure modes

- Malformed JSON in query parameter 'a' or 'b' causes a parse error response
- Missing required query parameters 'a' or 'b' returns a validation error
- Very large JSON documents may hit query string length limits
- Empty string inputs may return an error or empty diff

## How this service works

Compare two JSON documents structurally — every added, removed and changed value reported with its RFC 6901 JSON Pointer path, not a text blob. Objects and arrays recurse; type changes (string → number) are flagged as changes. Deterministic, unlike eyeballing or text diffs. Use this when an agent needs to structural diff with exact JSON Pointer paths.

## Output

Returns a structured list of differences between the two JSON documents, each entry containing the RFC 6901 JSON Pointer path of the changed location and the nature of the change (added, removed, or changed), including type changes such as string to number. All nested objects and arrays are recursed.

## 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": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "JSON A (before)"
      },
      "b": {
       "type": "string",
       "description": "JSON B (after)"
      }
     }
    }
   },
   "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/agentstoolshub-json-diff-07faa7b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
