{"uid":"cap_F1c3fBcstYfYPVGhCgrIW","slug":"fresh402-web-change-monitor-832cd6ae","name":"Fresh402 Web Change Monitor","description":"Check whether public HTML, JSON or text changed; optional html_attributes on a new URL watch detects same-text link and selected attribute changes without altering older watches; use for on-demand freshness checks and a compact deterministic text diff, not background monitoring. Supply exactly one of url or watch_id. A URL-based paid Check can create a watch; an ID reuses its saved URL/rules, so omit all content-rule fields. Reuse returned watch_id/hash for later checks; first URL check without prior state reports changed:null. Optional cache reuse still costs $0.005 USDC per call on Base mainnet (eip155:8453). Requires an x402-capable MCP payment client and funded native-USDC payer; an ordinary MCP client receives a payment challenge, not a paid result. Alternatively use prepaid credits through REST or this MCP tool: X-Fresh402-API-Key in HTTP, with params._meta[\"fresh402/prepaid\"] containing idempotency_key, tariff_version and max_credits. When root mpp_payments.enabled is true, native MPP EVM charge is another option at the same USDC price: use an authorized Base EIP-712 signer and official mppx client, org.paymentauth/credential metadata and a persisted private recovery token. MPP receipt: org.paymentauth/receipt; see docs/MPP.md. Never combine MPP, prepaid and x402. Discover packages at /v2/prepaid/plans; see docs/AGENT_PREPAID.md for browserless wallet enrollment, bounded early credits and recovery. No JavaScript execution. Optional Circle Gateway x402 is available only when root circle_gateway.enabled is true. Use the GatewayWalletBatched quote, a funded Base Gateway EOA and a persisted private recovery token. Pending batches return 409; replay the original proof/input/token after 60 seconds. Results require Gateway confirmed/completed evidence; never mix providers. No Circle prepaid funding. See docs/CIRCLE_GATEWAY.md.","url":"https://fresh402.kirilllabs.workers.dev/v1/check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","maxLength":4096,"description":"Supply exactly one of url or watch_id. URL must be absolute public HTTPS on port 443, at most 4096 characters, with no credentials/private targets, e.g. 'https://example.com/docs'. Fresh402's own service URLs, including its discovery /openapi.json, cannot be targets; choose an external public document. With url, optional content rules identify the watch; an existing watch is reused or a new one is created by this paid Check. Separate registration is not required. No JavaScript rendering."},"selector":{"type":"string","maxLength":256,"minLength":1,"description":"Optional HTML CSS scope, 1-256 characters, e.g. 'main'; accepted only with url. Omit for the page after built-in noise removal. No match returns 422; not supported for JSON/plain text. With watch_id, omit this field: the saved selector is reused."},"watch_id":{"type":"string","pattern":"^w_[a-f0-9]{32}$","description":"Supply exactly one of watch_id or url. An existing ID returned by fresh402_register (free), POST /v1/register, or a URL-based Check: 'w_' followed by 32 lowercase hexadecimal characters. Reuses that watch's stored URL and rules. When supplied, omit selector, ignore_selectors and ignore_json_paths entirely, even empty arrays. Do not invent an ID."},"include_diff":{"type":"boolean","description":"Optional boolean; runtime default: true. Request a compact deterministic text diff when content changed and compatible prior text is retained. False omits the diff; true cannot recover unavailable old content and does not enable Smart Diff's structural analysis."},"previous_hash":{"type":"string","pattern":"^[a-fA-F0-9]{64}$","description":"Optional previous Fresh402 content hash: exactly 64 hexadecimal characters, case-insensitive. Overrides comparison with the watch's current stored hash. Omit to use that stored hash; a new URL watch without a prior hash returns changed:null. Hash comparison does not require retained old text, but a text diff does; a hash cannot reconstruct missing content."},"html_attributes":{"type":"array","items":{"enum":["alt","aria-label","href","title"],"type":"string","description":"One explicitly observed HTML attribute: href (a/area only),title,alt or aria-label. No class/style/event attributes; links are inert evidence and never fetched."},"maxItems":4,"description":"Optional HTML-only watch rule: up to4 of href,title,alt,aria-label; default[] retains existing text-only normalization. Distinct names are sorted; nonempty rules create a separate version1 watch/baseline. Records bounded meaningful attributes within the saved selector or filtered page, including same-text link destination changes. Cannot be supplied with watch_id, even[]. Unsafe hrefs are hashed, never fetched. Limits:200 elements,2048 characters/value,32768 evidence bytes; excess fails, never clips silently."},"max_age_seconds":{"type":"integer","maximum":86400,"minimum":0,"description":"Optional integer cache age in seconds, 0-86400; runtime default: 0. A positive value permits reuse of a sufficiently recent watch result without fetching. Zero contacts the source (conditional HTTP may return 304). Cached Checks still require payment; this does not schedule background polling."},"ignore_selectors":{"type":"array","items":{"type":"string","maxLength":256,"minLength":1,"description":"HTML element(s) to remove before normalization: a supported CSS selector, 1-256 characters, e.g. '.timestamp' or 'nav'."},"maxItems":20,"description":"Optional HTML-only exclusion array, up to 20 supported CSS selectors of 1-256 characters each, e.g. ['.timestamp']. Accepted only with url; default []. With watch_id, omit the field entirely (including []): saved exclusions are reused."},"ignore_json_paths":{"type":"array","items":{"type":"string","pattern":"^\\/","maxLength":256,"minLength":1,"description":"JSON Pointer-style path, 1-256 characters, starting with '/'. Decode '~0' as '~' and '~1' as '/'; '*' matches all object keys or array elements. Example: '/items/*/updated_at'."},"maxItems":20,"description":"Optional JSON-only exclusions, up to 20 paths of 1-256 characters starting with '/'; '~0'/'~1' escapes and '*' segments are supported. Example: ['/updated_at']. Accepted only with url; default []. With watch_id, omit entirely (including []): saved paths are reused."}}},"responseSchema":{"type":"json","example":{"url":"https://example.com/","diff":{"changed":false,"available":true,"change_ratio":0},"hash":"1111111111111111111111111111111111111111111111111111111111111111","cached":false,"changed":false,"watch_id":"w_0123456789abcdef0123456789abcdef","content_kind":"html","network_fetched":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z9ZedMjreGXC4_2uq00eT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether a web page has materially changed since its last snapshot, filtering out common page noise, and updates the stored snapshot.","exampleAgentPrompt":"Check if the page at https://example.com/pricing has materially changed since the last time Fresh402 snapshotted it — ignore things like timestamps or ad banners and just tell me if the real content is different.","exampleUseCases":[{"title":"Competitor pricing page tracker","prompt":"Keep an eye on https://competitor.com/pricing for me — check if the actual pricing content has changed since the last snapshot, filtering out any noise like timestamps or rotating banners."},{"title":"News article update detection","prompt":"Has the article at https://news-site.com/story/breaking-update been meaningfully updated since you last checked it? Ignore minor stuff like ad changes and just tell me if the real content shifted."},{"title":"Government regulation page monitoring","prompt":"Check whether https://agency.gov/regulations/new-rules has had any material changes to its content since the last Fresh402 snapshot — I need to know if the actual regulatory text has been updated."}],"resultDescription":"Returns whether the target web page has materially changed since its previous Fresh402 snapshot, with noise (dynamic elements like timestamps, ads, session tokens) filtered out. The snapshot is updated on each call so subsequent checks compare against the latest version.","failureModes":["URL is unreachable or returns a non-200 status — endpoint may return an error or indicate the page could not be fetched","First call for a URL has no prior snapshot to compare against — may return a baseline-established response rather than a change signal","Page blocks automated access (bot detection, CAPTCHA) — content may be unavailable for comparison","Network timeouts for slow-loading pages","Overly aggressive noise filtering may miss subtle but meaningful changes"],"whenToPreferThis":"Choose this endpoint when you need to detect meaningful content changes on a web page over repeated visits while suppressing common dynamic noise (timestamps, ads, session data). It is ideal for monitoring competitor pages, regulatory publications, news articles, or any URL where you care about substantive content updates rather than cosmetic or technical churn. Prefer it over generic scraping tools when you want built-in change-diffing with snapshot management rather than raw HTML retrieval.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T06:36:23.273Z","isFirstParty":false,"canonicalSlug":"fresh402-web-change-monitor-832cd6ae"}