# Website Release Diff (`autosecurelogin/website-release-diff`) Actor

Compare two static-site ZIPs. Find newly broken links, lost anchors, removed pages and indexing changes. Download an HTML review and JSON findings.

- **URL**: https://apify.com/autosecurelogin/website-release-diff.md
- **Developed by:** [Hunter Melnick](https://apify.com/autosecurelogin) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.05 / actor start

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Release Diff

Compare two complete ZIP builds of a static website before deploying the candidate. A link on an unchanged page can break when its destination disappears. This Actor checks both site trees and reports which findings appeared, persisted or cleared.

**Try the example.** The prefilled ZIPs contain a small site. The candidate removes a linked page. Run the comparison, open **Report and downloads**, and open **REPORT.html** for a review grouped by regressions, inherited findings and resolved findings. **OUTPUT** contains the same findings as JSON, page counts, the pass flag, and the SHA-256 of each submitted ZIP. The summary dataset contains one row, including for a clean comparison.

**Use your own builds.** Supply each complete ZIP as standard base64 in the corresponding input field and set **Site origin** to the scheme and host your site uses for its canonical URLs. When your site is inside a folder such as `dist/`, set the corresponding root field to `dist`. Optional language tags and protected element IDs control the language and anchor checks. The default language tags are en, es, en-US and es-US.

To prepare a complete JSON input on Windows, run this PowerShell in the directory containing the ZIPs. Change the origin to your own site and paste the result into Apify's JSON input editor.

```powershell
@{
  baselineZip = [Convert]::ToBase64String([IO.File]::ReadAllBytes((Resolve-Path './baseline.zip').Path))
  candidateZip = [Convert]::ToBase64String([IO.File]::ReadAllBytes((Resolve-Path './candidate.zip').Path))
  origin = 'https://example.com'
} | ConvertTo-Json
```

For macOS or Linux with Python 3, this command produces the same input.

```sh
python3 -c 'import base64,json,pathlib; enc=lambda f: base64.b64encode(pathlib.Path(f).read_bytes()).decode(); print(json.dumps({"baselineZip":enc("baseline.zip"),"candidateZip":enc("candidate.zip"),"origin":"https://example.com"}))'
```

**Reading the report.** Regressions include new missing internal links or assets, removed pages or sitemap URLs, changed robots metadata, lost protected IDs and removed language alternates. Inherited findings occur in both builds. A resolved finding disappeared from the candidate and can also indicate that the affected page was removed. A passing comparison has zero regressions under these static checks. Review the report before making a deployment decision.

**Supported builds.** Supply UTF-8 `.html` files and an optional UTF-8 `urlset` sitemap. Each ZIP can contain up to 200 entries, 2 MiB compressed and 8 MiB expanded. Each entry is limited to 2 MiB and a 200-to-1 expansion ratio. Use stored or deflated ZIP entries, portable relative paths up to 240 bytes and at most 24 folder separators. The JSON input limit is 6 MiB. The Actor uses 256 MB of memory and a 60-second run timeout, including a 43-second comparison budget. JavaScript-rendered routes, external destinations and runtime behavior require separate tests.

**Price.** One Actor start costs $0.05 and includes both archives, both reports and platform usage. Set the maximum run cost to at least $0.05. Runs with invalid input and runs with zero findings also incur the start charge.

Apify stores your inputs and reports under its storage access and retention settings. Processing takes place in a temporary directory. The site origin is used to interpret links inside the supplied builds. Use archives you are authorized to process. For support, use this Actor's Issues tab with a run ID and a non-sensitive example.

# Actor input Schema

## `baselineZip` (type: `string`):

Paste the complete ZIP encoded as standard base64. Maximum decoded size is 2 MiB.

## `candidateZip` (type: `string`):

Paste the complete ZIP encoded as standard base64. Maximum decoded size is 2 MiB.

## `origin` (type: `string`):

Production scheme and host used by canonical and internal links.

## `baselineRoot` (type: `string`):

Optional relative folder inside the ZIP. Clear it for files at the archive root.

## `candidateRoot` (type: `string`):

Optional relative folder inside the ZIP. Clear it for files at the archive root.

## `languages` (type: `array`):

Accepted HTML language tags. Up to 100 strings.

## `protectedIds` (type: `array`):

Element IDs to preserve between releases. Up to 100 strings.

## Actor input object example

```json
{
  "baselineZip": "UEsDBBQAAAAIAAAAIQA2pB5ojQAAANEAAAAPAAAAZGlzdC9ndWlkZS5odG1sbY9BDgIhDEWvgj3ANG4NsDLxHBXqDLEDRGri3F6QrZvm9zf/v9SeYgl6VDab7uLtmEYorw44Q9+ZoreaVNjf3imy0WJeLEyNm8V5sJLyc7gOAuWSUyABs7344WBTre2CyB/aq/ASyo7rKFoGqhNwIu4lHh13/kfprq0mRQeRlZI08NcpLNbeMLP4++ALUEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAZGlzdC9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEANqQeaI0AAADRAAAADwAAAAAAAAAAAAAAgAEAAAAAZGlzdC9ndWlkZS5odG1sUEsBAhQDFAAAAAgAAAAhAODdkvmPAAAA1gAAAA8AAAAAAAAAAAAAAIABugAAAGRpc3QvaW5kZXguaHRtbFBLBQYAAAAAAgACAHoAAAB2AQAAAAA=",
  "candidateZip": "UEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAc2l0ZS9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEA4N2S+Y8AAADWAAAADwAAAAAAAAAAAAAAgAEAAAAAc2l0ZS9pbmRleC5odG1sUEsFBgAAAAABAAEAPQAAALwAAAAAAA==",
  "origin": "https://example.com",
  "baselineRoot": "dist",
  "candidateRoot": "site"
}
```

# Actor output Schema

## `files` (type: `string`):

Open REPORT.html for the review or OUTPUT for JSON.

## `summary` (type: `string`):

Baseline and candidate page counts, comparison result and finding counts.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "baselineZip": "UEsDBBQAAAAIAAAAIQA2pB5ojQAAANEAAAAPAAAAZGlzdC9ndWlkZS5odG1sbY9BDgIhDEWvgj3ANG4NsDLxHBXqDLEDRGri3F6QrZvm9zf/v9SeYgl6VDab7uLtmEYorw44Q9+ZoreaVNjf3imy0WJeLEyNm8V5sJLyc7gOAuWSUyABs7344WBTre2CyB/aq/ASyo7rKFoGqhNwIu4lHh13/kfprq0mRQeRlZI08NcpLNbeMLP4++ALUEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAZGlzdC9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEANqQeaI0AAADRAAAADwAAAAAAAAAAAAAAgAEAAAAAZGlzdC9ndWlkZS5odG1sUEsBAhQDFAAAAAgAAAAhAODdkvmPAAAA1gAAAA8AAAAAAAAAAAAAAIABugAAAGRpc3QvaW5kZXguaHRtbFBLBQYAAAAAAgACAHoAAAB2AQAAAAA=",
    "candidateZip": "UEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAc2l0ZS9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEA4N2S+Y8AAADWAAAADwAAAAAAAAAAAAAAgAEAAAAAc2l0ZS9pbmRleC5odG1sUEsFBgAAAAABAAEAPQAAALwAAAAAAA==",
    "origin": "https://example.com",
    "baselineRoot": "dist",
    "candidateRoot": "site"
};

// Run the Actor and wait for it to finish
const run = await client.actor("autosecurelogin/website-release-diff").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    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origin": "https://example.com",
    "baselineRoot": "dist",
    "candidateRoot": "site",
}

# Run the Actor and wait for it to finish
run = client.actor("autosecurelogin/website-release-diff").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "baselineZip": "UEsDBBQAAAAIAAAAIQA2pB5ojQAAANEAAAAPAAAAZGlzdC9ndWlkZS5odG1sbY9BDgIhDEWvgj3ANG4NsDLxHBXqDLEDRGri3F6QrZvm9zf/v9SeYgl6VDab7uLtmEYorw44Q9+ZoreaVNjf3imy0WJeLEyNm8V5sJLyc7gOAuWSUyABs7344WBTre2CyB/aq/ASyo7rKFoGqhNwIu4lHh13/kfprq0mRQeRlZI08NcpLNbeMLP4++ALUEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAZGlzdC9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEANqQeaI0AAADRAAAADwAAAAAAAAAAAAAAgAEAAAAAZGlzdC9ndWlkZS5odG1sUEsBAhQDFAAAAAgAAAAhAODdkvmPAAAA1gAAAA8AAAAAAAAAAAAAAIABugAAAGRpc3QvaW5kZXguaHRtbFBLBQYAAAAAAgACAHoAAAB2AQAAAAA=",
  "candidateZip": "UEsDBBQAAAAIAAAAIQDg3ZL5jwAAANYAAAAPAAAAc2l0ZS9pbmRleC5odG1sbY+xDsIwDER/JYS9Fitys7LzByYxbYSTVI2R6N+TtIwslnzWvTvjKRSv28Jm1iQO+zRCeRotZ9t2puBQowq7OwtTZVMpLdIMJTHCcUKJ+WVWltF6yiVHT2LNvPJztLPqUq8A/Nl9gy8JGhkO9KOErcVc/tObjvTjTO8YeOgFz4GVolTrbl1DoIY7QLC/8QVQSwECFAMUAAAACAAAACEA4N2S+Y8AAADWAAAADwAAAAAAAAAAAAAAgAEAAAAAc2l0ZS9pbmRleC5odG1sUEsFBgAAAAABAAEAPQAAALwAAAAAAA==",
  "origin": "https://example.com",
  "baselineRoot": "dist",
  "candidateRoot": "site"
}' |
apify call autosecurelogin/website-release-diff --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,autosecurelogin/website-release-diff"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IavT753ZPELk5EyF4/builds/Zu2iPpFBgPUCwZg5u/openapi.json
