Diff
Track changes between two snapshots of a web page. Scrape a URL now, compare it against a previous extraction result, and get a unified diff of what changed.
POST
/v1/diffCompare a URL's current content against a previous extraction snapshot.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL to scrape for the current version. |
previous | object | Yes | A previous ExtractionResult (the output from a prior /v1/scrape call). |
Tip
Save the full JSON response from
/v1/scrape as your baseline snapshot. Pass it as the previous field in subsequent diff requests to track changes over time.Response
| Field | Type | Description |
|---|---|---|
status | string | "Changed" or "Unchanged". |
text_diff | string | Unified diff of the text content. |
metadata_changes | array | List of metadata fields that changed, with old and new values. |
links_added | string[] | URLs present in the current version but not the previous. |
links_removed | string[] | URLs present in the previous version but removed. |
word_count_delta | number | Difference in word count (positive = content added). |