API · x402

JSON Patch diff — compare JSON documents for record updates and configuration synchroni…

JSON Patch diff — compare JSON documents for record updates and configuration synchronization; return a deterministic RFC 6902 patch with RFC 6901 pointers and exact decimal equality. Object removals precede changes; changed arrays are replaced whole, so the…

by data-tools.use.x402atlas.com · discovered, not yet claimed by its owner · updated 2026-10-09

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

JSON Patch diff — compare JSON documents for record updates and configuration synchronization; return a deterministic RFC 6902 patch with RFC 6901 pointers and exact decimal equality. Object removals precede changes; changed arrays are replaced whole, so the patch is bounded rather than guaranteed minimal.

Tags: json-diff · json-patch · rfc6902 · exact-decimal · structured-data · bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/34876.json for the price and payment options.
  3. Pay. Call GET https://data-tools.use.x402atlas.com/json-diff. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, Arbitrum One, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, Solana
Calls (30d)
3 · 2 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactPolygon
eip155:137
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactArbitrum One
eip155:42161
USDC$0.010x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.01ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "additionalProperties": false,
      "description": "Complete structured-data result",
      "properties": {
        "_atlas": {
          "additionalProperties": false,
          "description": "Optional Atlas documentation metadata injected by the platform",
          "properties": {
            "docs": {
              "description": "Documentation URL",
              "format": "uri",
              "maxLength": 512,
              "type": "string"
            },
            "related": {
              "description": "Related Atlas routes",
              "items": {
                "additionalProperties": false,
                "description": "Related route",
                "properties": {
                  "bridge": {
                    "description": "Bridge name",
                    "type": "string"
                  },
                  "docs": {
                    "description": "Documentation URL",
                    "type": "string"
                  },
                  "summary": {
                    "description": "Capability summary",
                    "type": "string"
                  },
                  "url": {
                    "description": "Paid route URL",
                    "type": "string"
                  }
                },
                "required": [
                  "bridge",
                  "url",
                  "docs",
                  "summary"
                ],
                "type": "object"
              },
              "maxItems": 3,
              "type": "array"
            }
          },
          "required": [
            "docs"
          ],
          "type": "object"
        },
        "algorithm_version": {
          "const": "json-patch-diff-v1",
          "description": "Pinned deterministic algorithm or profile",
          "type": "string"
        },
        "format": {
          "const": "rfc6902",
          "description": "JSON Patch wire format",
          "type": "string"
        },
        "input": {
          "additionalProperties": false,
          "description": "Normalized input summary",
          "properties": {
            "source_node_count": {
              "description": "Source nodes",
              "maximum": 50000,
              "minimum": 0,
              "type": "integer"
            },
            "target_node_count": {
              "description": "Target nodes",
              "maximum": 50000,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "source_node_count",
            "target_node_count"
          ],
          "type": "object"
        },
        "operation": {
          "const": "json-diff",
          "description": "Stable capability operation, identical across packaging variants",
          "type": "string"
        },
        "patch": {
          "description": "Deterministic patch <=10000 operations and <=1 MiB; removals before additions/changes, UTF-16 key order, arrays replaced whole",
          "items": {
            "description": "RFC 6902 operation",
            "oneOf": [
              {
                "additionalProperties": false,
                "description": "Removal operation",
                "properties": {
                  "op": {
                    "const": "remove",
                    "description": "Remove missing object member",
                    "type": "string"
                  },
                  "path": {
                    "description": "RFC 6901 target path",
                    "type": "string"
                  }
                },
                "required": [
                  "op",
                  "path"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "description": "Addition or replacement operation",
                "properties": {
                  "op": {
                    "description": "Addition or whole-value replacement",
                    "enum": [
                      "add",
                      "replace"
                    ],
                    "type": "string"
                  },
                  "path": {
                    "description": "RFC 6901 target path",
                    "type": "string"
                  },
                  "value": {
                    "description": "Exact target value; unique decoded keys, valid Unicode, depth <=64, finite JSON numeric tokens <=1024 bytes and exponent magnitude <=4096",
                    "type": [
                      "object",
                      "array",
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                },
                "required": [
                  "op",
                  "path",
                  "value"
                ],
                "type": "object"
              }
            ]
          },
          "maxItems": 10000,
          "type": "array"
        },
        "warnings": {
          "description": "Deterministic warnings; empty array when none",
          "items": {
            "description": "Warning message; no original cell or document values",
            "type": "string"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "algorithm_version",
        "format",
        "input",
        "operation",
        "patch",
        "warnings"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "_atlas": {
      "docs": "https://example.com",
      "related": [
        {
          "bridge": "string",
          "docs": "string",
          "summary": "string",
          "url": "string"
        }
      ]
    },
    "algorithm_version": "string",
    "format": "string",
    "input": {
      "source_node_count": 0,
      "target_node_count": 0
    },
    "operation": "string",
    "patch": [
      "value"
    ],
    "warnings": [
      "string"
    ]
  },
  "type": "string"
}

Examples

curl
curl "https://data-tools.use.x402atlas.com/json-diff"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://data-tools.use.x402atlas.com/json-diff");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://data-tools.use.x402atlas.com/json-diff")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
data-tools.use.x402atlas.com
Endpoint
https://data-tools.use.x402atlas.com/json-diff
Machine-readable
/resources/34876.json