Skip to content
developer · developer · research · json · yaml · diff · compare · config · change-review

Structured diff

Compare JSON or YAML deterministically and return source hashes plus machine-readable additions, removals, and replacements by path with explicit truncation evidence.

$0.01 USDCBase + Solanax402 v2POST
Pay $0.01 USDC and run in your browserView free result sample

Endpoint

https://apiacre.com/v1/developer/structured-diff

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Pay $0.01 USDC and run in your browser

Official Coinbase agent path

Coinbase Agentic Wallet can satisfy this x402 request in one command. Running it may pay automatically, so --max-amount is fixed to $0.01 USDC in atomic units. Copying the command does not install, authenticate, sign, or pay; review the request and use a separate low-value wallet before running it.

npx --yes awal@latest x402 pay https://apiacre.com/v1/developer/structured-diff \
  -X POST \
  -d '{"before":"{\"status\":\"draft\",\"features\":{\"export\":false}}","after":"{\"status\":\"approved\",\"features\":{\"export\":true}}","format":"json"}' \
  --max-amount 10000 \
  --json

Coinbase pay-for-service documentation · Buyer setup and wallet safety

Alternative third-party AgentCash commands

Run check first without payment. Its fetch command may automatically pay up to the exact listed price.

npx --yes agentcash@latest check https://apiacre.com/v1/developer/structured-diff
npx --yes agentcash@latest fetch https://apiacre.com/v1/developer/structured-diff \
  --method POST \
  --header 'content-type: application/json' \
  --body '{"before":"{\"status\":\"draft\",\"features\":{\"export\":false}}","after":"{\"status\":\"approved\",\"features\":{\"export\":true}}","format":"json"}' \
  --payment-protocol x402 \
  --payment-network base \
  --max-amount 0.010

AgentCash CLI documentation

Input example

{
  "before": "{\"status\":\"draft\",\"features\":{\"export\":false}}",
  "after": "{\"status\":\"approved\",\"features\":{\"export\":true}}",
  "format": "json"
}

Response shape

View free static sample JSON

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "developer.structured-diff",
  "version": "1",
  "data": {
    "beforeSha256": "242eb38c815b9bab51819f9aa7ebd832666455dbfce03671aae54cc93abafcdb",
    "afterSha256": "1491b575597fbdbb636572aa4cf9ac93e424273a4aa920242398844866dd2a0f",
    "format": "json",
    "changed": true,
    "changeCount": 2,
    "changesReturned": 2,
    "changesTruncated": false,
    "changes": [
      {
        "op": "replace",
        "path": "$.features.export",
        "before": false,
        "after": true
      },
      {
        "op": "replace",
        "path": "$.status",
        "before": "draft",
        "after": "approved"
      }
    ]
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": [],
    "next_actions": []
  }
}

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/developer/structured-diff' \
  -H 'content-type: application/json' \
  --data '{"before":"{\"status\":\"draft\",\"features\":{\"export\":false}}","after":"{\"status\":\"approved\",\"features\":{\"export\":true}}","format":"json"}'