{"uid":"cap_IgYNuHxTSxkOl-pJomT64","slug":"pastable-x402-json-diff-66ad5eef","name":"pastable-x402 JSON Diff","description":"Pay-per-call utility APIs for agents: EVM helpers (checksum, unit conversion, keccak), data transforms (CSV to JSON, JSON diff, URL canonicalisation), text tools (hashing, JWT decode), and Bazaar market intelligence. x402 on Base mainnet.","url":"https://pastable-x402.pages.dev/data/json-diff","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","description":"json"},"b":{"type":"string","description":"json"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object"}}},"responseSchema":{"type":"json","example":{"diffs":[{"to":2,"from":1,"path":".n"}],"truncated":false,"differences":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YC1dZvKSAz0mvjFkfsW1Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two JSON objects and returns a structured list of differences (added, removed, changed fields) with path information.","exampleAgentPrompt":"Compare these two JSON objects and show me what changed: A is {\"n\":1,\"name\":\"Alice\"} and B is {\"n\":2,\"name\":\"Alice\"} — list every field that differs with the old and new values.","exampleUseCases":[{"title":"API response drift detection","prompt":"I have two JSON responses from the same API endpoint taken a week apart — can you diff them and tell me which fields changed, were added, or were removed?"},{"title":"Config change auditing","prompt":"Here are two versions of a JSON config file: the old one is {\"timeout\":30,\"retries\":3} and the new one is {\"timeout\":60,\"retries\":3,\"debug\":true} — what exactly changed between them?"},{"title":"Data pipeline output validation","prompt":"My ETL pipeline produced two JSON records that should be identical but I think there's a bug — compare {\"id\":101,\"status\":\"active\",\"score\":0.9} with {\"id\":101,\"status\":\"inactive\",\"score\":0.9} and list any differences."}],"resultDescription":"Returns a JSON object containing a 'diffs' array where each element describes one change with 'path' (dot-notation field path), 'from' (old value), and 'to' (new value). Also returns a 'differences' integer count and a 'truncated' boolean indicating if the diff was too large to return in full.","failureModes":["Malformed JSON in 'a' or 'b' query params returns an error response","Missing required 'a' or 'b' query parameters results in a 400-style error","Very large JSON objects may produce a truncated diff (truncated: true in response)","Payment failure or insufficient USDC balance blocks the call via x402 protocol"],"whenToPreferThis":"Use this endpoint when you need a structured, machine-readable field-level diff between two JSON documents — especially when you need path notation and old/new values programmatically rather than a human-readable text diff. Ideal for agents monitoring API response drift, auditing config changes, or validating data pipeline outputs. Prefer over text-based diff tools when the input is guaranteed JSON and you need to parse the results downstream.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:24.826Z","isFirstParty":false}