{"uid":"cap_9JFa6xnS2b-0nyfl-CNJf","slug":"scrape402-xyz-diff-snapshot-13994a80","name":"scrape402.xyz Diff Snapshot","description":"Pay-per-request web extraction API for AI agents. Uses x402 HTTP 402 micropayments (USDC on Base mainnet). No API keys — payment IS the auth. Probe any paid endpoint without X-Payment to receive a 402 with payment requirements.","url":"https://scrape402.xyz/diff/snapshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url_a":{"type":"string","format":"uri","maxLength":2048},"url_b":{"type":"string","format":"uri","maxLength":2048,"description":"Mutually exclusive with snapshot_id"},"format":{"enum":["json","markdown"],"type":"string"},"snapshot_id":{"type":"string","description":"Mutually exclusive with url_b"}}},"responseSchema":{"type":"json","example":{"url_a":"https://example.com/v1","url_b":"https://example.com/v2","changes":[{"type":"modified","content":"Updated text","section":"intro","position":0}],"latency_ms":580,"compared_at":"2026-01-01T00:00:00Z","is_identical":false,"content_hash_a":"sha256:...","content_hash_b":"sha256:...","new_snapshot_id":"snap_abc123"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OMZRuJI3ROGCTPrYzjSG9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two web pages (or a URL against a saved snapshot) and returns a structured diff of content changes, using x402 micropayment authentication","exampleAgentPrompt":"Compare https://example.com/v1 and https://example.com/v2 and show me exactly what content changed between them — return the diff as JSON.","exampleUseCases":null,"resultDescription":"A JSON object listing each detected change with its type (added, removed, modified), the affected content and section, content hashes for both pages, whether the pages are identical, comparison timestamp, latency, and a new snapshot ID for future comparisons.","failureModes":["Missing X-Payment header returns HTTP 402 with payment requirements","Invalid or unreachable URL returns an error","Providing both url_b and snapshot_id simultaneously is rejected (mutually exclusive)","Payment insufficient or malformed USDC transaction fails auth","URL exceeds 2048 character limit","Timeout fetching one or both URLs"],"whenToPreferThis":"Use this endpoint when you need to compare two specific web pages or a live URL against a previously saved snapshot to detect content changes, especially when you want structured, machine-readable diff output (JSON or markdown) and are operating in a pay-per-use context without API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:36:56.054Z","isFirstParty":false,"canonicalSlug":"scrape402-xyz-diff-snapshot-13994a80"}