$ man webpage-diff
/webpage-diff(1)
PRICE / CALL
$0.04
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
utilities
STATUS
● live
NAME
webpage-diff — webpage change detection / website monitor / content diff
SYNOPSIS
POST https://x402.org/v1/webpage-diff
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Webpage change detection / website monitor / content diff. Cleans HTML to text + SHA-256 hash. Pass previous hash/text to get added/removed line lists. Price + policy + status-page monitoring.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| url | string | Page URL to fetch (http or https). Server follows redirects and reports the final_url. | required |
| previous_hash | string | SHA-256 hex from a previous call. | optional |
| previous_text | string | Previous cleaned text. Triggers a line diff. | optional |
| selector | string | Optional CSS selector to limit content scope. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| url | string | Original URL requested for monitoring. |
| final_url | string | URL after following redirects to the actual fetched page. |
| status_code | number | HTTP status code returned by the target server. |
| current_text | string | Cleaned plain-text extracted from the page HTML. |
| current_hash | string | SHA-256 hash of the cleaned text for fast change detection. |
| char_count | number | Length of the cleaned text in characters. |
| selector | string | CSS selector used to scope extraction, or empty if full page was used. |
| changed | boolean | True when the current hash differs from the previous hash passed in. |
| diff | object | Object with added and removed line arrays comparing current text to previous text. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/webpage-diff \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the webpage-diff tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- diffmonitorchange-detectionscrapehtml
- methods
- POST
- cluster
- webprobe
- price
- $0.04 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| arxiv-summarize | arXiv paper summarizer / research-paper TLDR. | $0.04 |
| rss-from-anything | RSS feed generator / HTML to RSS converter. | $0.04 |
| scrape | Web scraper / HTML extractor. | $0.04 |
| scrape-website | Web scraper / HTML to text / website content extractor. | $0.04 |
| screenshot | Website screenshot / URL to PNG/JPG. | $0.04 |
| website-screenshot | URL to PNG / JPG / website screenshot tool. | $0.04 |
| arxiv-search | arXiv full-text search. | $0.03 |
| domain-suggest | Brandable domain suggester / startup-name brainstormer / product-name proposer / domain candidate generator. | $0.05 |
SEE ALSO