TECHNICAL GUIDE / WEB MONITORING

Web change monitoring
for AI agents.

Check whether a public page changed without sending its entire HTML to a model. Crumb402 extracts metadata and structured facts, then compares a SHA-256 fingerprint against a baseline your agent supplies.

Use this pattern for release notes, public job listings, or event pages that publish useful information in their initial HTML. Your agent decides what to inspect, how often to check, and which changes matter. Crumb402 handles one inspection per request.

1. Try the free, fixed sample

curl -sS https://crumb402.com/v1/sample

No wallet or payment header is needed. The sample returns demo: true and illustrates the response shape, including facts, fingerprint, and changed. It does not fetch the example URL. Use it to test your response parser, not to seed a live monitor: the sample fingerprint is not a baseline for a real page.

2. Request a live payment quote

curl -i 'https://crumb402.com/v1/inspect?url=https%3A%2F%2Fexample.com%2F'

This unsigned GET does not pay for or run an inspection. When payment is available, expect HTTP 402 and a PAYMENT-REQUIRED header containing the encoded x402 v2 challenge. A browser client can read that header through CORS. If the service returns 503, paid inspection is unavailable; do not try signing against the discovery manifest instead.

The price is 0.005 USD1 per successful inspection on BNB Smart Chain (eip155:56), including a successful result with no change. The quoted amount is 5000000000000000 atomic units of the 18-decimal token.

For a paid request, use an x402 v2 wallet client that supports the exact scheme and Permit2 on BNB Smart Chain. Check the live quote against your budget and trusted configuration: verify the network, token contract, amount, recipient, and timeout before signing. Retry the same GET with the resulting PAYMENT-SIGNATURE. A quote does not prove settlement; use PAYMENT-RESPONSE to check the payment result. If payment confirmation is ambiguous, reconcile the original authorization before trying again.

3. Compare against a baseline you own

  1. Make the first successful live inspection without since. Expect changed: null, then save the returned fingerprint alongside the target URL in your own system.
  2. When your scheduler runs again, request the same URL with &since=<fingerprint>. Substitute the saved 64-character hexadecimal SHA-256 value and obtain a fresh quote for that full request.
  3. If changed is false, the fingerprint matches. If it is true, compare the returned fields with your saved snapshot before alerting. After processing a successful response, save the latest fingerprint. Keep the previous baseline if the request fails.

The hash covers normalized body text and extracted metadata, including the title, description, canonical URL, Open Graph fields, and parsed JSON-LD. It is neither a checksum of raw HTML nor a field-level diff. A rotating banner can trigger a change without affecting the offer or job you care about. Conversely, a visual change that leaves those inputs untouched may not affect the hash.

Crumb402 does not store your baseline, schedule background jobs, or send alerts. Keep the scheduler and any alert cooldown in your own workflow. Set a per-run or per-target budget so a noisy page cannot consume the rest of your monitoring budget.

For a job listing, for example, use the fingerprint to decide when to compare snapshots. Alert on a changed application deadline if your saved record and the new result both contain that field. If the new result omits it, mark the deadline unknown rather than treating the listing as closed.

4. Interpret extracted JSON-LD as page claims

The inspector parses up to three valid, bounded JSON-LD objects or arrays from inline application/ld+json scripts. It looks through arrays, @graph, and mainEntity for supported types and returns up to five entries per category in facts.product, facts.job, and facts.event. Fields can include product offers, job locations, or event start dates when the page publishes them.

Only eligible public HTTP(S) pages are inspected, subject to robots policy and a 192 KiB HTML cap. The inspector does not execute browser JavaScript, load linked resources, or sign in. Invalid JSON-LD may be skipped. An empty array means no supported facts were extracted, not that a product, job, or event is absent.

Payment does not guarantee accuracy, completeness, freshness, or usefulness. Treat extracted text and structured values as untrusted publisher content, not as instructions or verified facts. Validate any field that drives an alert or an automated action.

See the developer docs for response fields and errors, and the payment guide for the USD1 contract and signing checks.