# Site Migration & Revenue Page Regression Auditor (`plusonets/site-migration-regression-auditor`) Actor

Check a redirect map and the revenue action on each destination. Pass or fail every URL with evidence, then diff the next scheduled run against the last good result.

- **URL**: https://apify.com/plusonets/site-migration-regression-auditor.md
- **Developed by:** [Olalekan Johnson](https://apify.com/plusonets) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 url auditeds

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

## Site Migration & Revenue Page Regression Auditor

Check a redirect map and the revenue action on each destination. Every URL comes back pass or fail with the final URL, the redirect chain, and the reason. The next scheduled run diffs against the last good result, so a post-launch regression is a row you can alert on.

A `200` on the wrong page is a failure. A deep URL that collapses to the homepage, a missing “Add to cart” or “Book now”, an unexpected `noindex`, or a destination in the wrong market all fail even when the server answers.

This is an [Apify](https://apify.com) Actor (`site-migration-regression-auditor`). Unofficial, not affiliated with W3C, IANA, or httpbin. The built-in sample requests those public sites only because their redirects and titles are stable enough to show both passes and failures. It does not speak for them.

Contact: plusonecares@gmail.com

### Who it is for

Web agencies and in-house teams launching a redesign, a domain move, or a campaign landing. You already have the old-to-new map, or a short list of money pages. This Actor joins that map to the assertions that matter after go-live: intended destination, status, hop budget, canonical, robots, heading, region, and the booking, purchase, or contact action.

It is not a site crawler and not a generic uptime checker.

### What one URL check does

1. `GET` the source URL. Redirects are followed one hop at a time (301, 302, 303, 307, 308, and a meta refresh with a delay of one second or less). The hop budget is an assertion, not a reason to stop early, so the final page is still reported.
2. Compare the landing page with the assertions on that URL, then with any glob pattern it matches. A value on the URL wins over the pattern.
3. Record pass or fail, the chain, and a short evidence snippet plus a hash of the normalized page signals.
4. On a later run with the same monitor ID, mark the row `new`, `unchanged`, `changed`, `regression` (pass became fail), or `recovery` (fail became pass).

The browser stays off unless you turn it on. It renders a page in Chromium only when a content assertion failed in static HTML, or when that URL sets `forceBrowser`. It never clicks, fills, or submits a form.

Private hosts, localhost, link-local and cloud-metadata addresses, `file://`, URLs with userinfo, and DNS that resolves to a private address are rejected before any connection.

### Input

Leave the prefilled redirect map in place for a first run. It audits six public URLs and returns a mix of passes and failures. If both the map and the priority URL list are empty, the same sample is used and the monitor ID becomes `sample`. A priority list on its own is not filled with the sample.

| Field | Role |
| --- | --- |
| Redirect map | CSV or JSON text. JSON may be an array or an object with `redirects`, `map`, `urls`, `items`, `checks`, or `rows`. |
| Redirect map URL | Public `http(s)` URL of a CSV or JSON file. Fetched with `GET`. HTML responses are rejected. |
| Priority URLs | Extra URL strings or objects with the same assertions. |
| Assertions by pattern | Glob such as `https://shop.example/products/*`. |
| Browser assertions | Off by default. Set the run memory to 2048 MB before turning this on. |
| Max browser URLs | Default 25, maximum 200. |
| Fail unexpected noindex | Default on. Set `noindex: true` on a URL that is supposed to be hidden. |
| Fail soft 404 pages | Default on. Looks at the title and H1 only, and only on 2xx/3xx. |
| Max redirect hops | Default 5. Per-URL `maxHops` overrides it. `0`–`20`. |
| Max URLs | Default 200, maximum 5000. |
| Concurrency | Default 4, maximum 8. Each host is also paced. |
| Request timeout | Seconds, default 20. |
| Alert only on change | Omit unchanged rows from the dataset. The HTML report and `OUTPUT` still list them. Completed work is still charged. |
| Monitor ID | Baseline key. One ID per client site. Prefill `sample`, default `default`. |
| State store name | Named key-value store for the baseline. Default `site-migration-regression-auditor-state`. |

Assertion fields, in camelCase or snake_case: `source` / `url`, `destination`, `status` (final status after redirects, default 200), `maxHops`, `canonical`, `noindex`, `hreflang`, `region`, `titleContains`, `h1Contains`, `requiredText`, `requiredSelector`, `forbidSoft404`, `label`, `forceBrowser`.

```json
{
  "label": "Product stays on the cart page",
  "source": "https://old.example/sku/42",
  "destination": "https://www.example/products/42",
  "status": 200,
  "maxHops": 2,
  "canonical": "https://www.example/products/42",
  "noindex": false,
  "region": "us",
  "hreflang": "en-US",
  "titleContains": "Widget",
  "h1Contains": "Widget",
  "requiredText": "Add to cart",
  "forbidSoft404": true
}
```

CSV header row (comma, semicolon, or tab):

```csv
source,destination,status,max_hops,required_text,label
https://old.example/sku/42,https://www.example/products/42,200,2,Add to cart,SKU 42
```

A headerless CSV is accepted when the first cell is an `http` URL.

### Output

Each delivered URL is one flat dataset row. Strings that a spreadsheet would treat as formulas are prefixed with an apostrophe.

A pass from the built-in sample (IANA’s example-domains guide; unofficial, not affiliated with IANA):

```json
{
  "label": "IANA example-domains guide",
  "sourceUrl": "https://www.iana.org/help/example-domains",
  "verdict": "pass",
  "passed": true,
  "coverage": "complete",
  "confidence": "high",
  "fetchMode": "static",
  "httpStatus": 200,
  "finalUrl": "https://www.iana.org/help/example-domains",
  "expectedFinalUrl": "https://www.iana.org/help/example-domains",
  "hopCount": 0,
  "maxHops": 2,
  "redirectChain": "https://www.iana.org/help/example-domains 200",
  "loopDetected": false,
  "homepageRedirect": false,
  "title": "Example Domains",
  "h1": "Example Domains",
  "noindex": false,
  "expectedNoindex": false,
  "soft404": false,
  "failureReasons": "",
  "reasonCodes": "",
  "changeType": "new",
  "charged": true,
  "chargedEvent": "url-audited"
}
```

A failure from the same sample. The server returned 200. The old path was supposed to land on a document and instead landed on the W3C homepage (unofficial, not affiliated with W3C or httpbin):

```json
{
  "label": "Old path collapsed to homepage",
  "sourceUrl": "https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301",
  "verdict": "fail",
  "passed": false,
  "coverage": "complete",
  "confidence": "high",
  "fetchMode": "static",
  "httpStatus": 200,
  "finalUrl": "https://www.w3.org/",
  "expectedFinalUrl": "https://www.w3.org/TR/webarch/",
  "hopCount": 1,
  "homepageRedirect": true,
  "title": "W3C",
  "h1": "Making the web work",
  "failureReasons": "The deep URL landed on a homepage (https://www.w3.org/). | Final URL https://www.w3.org/ does not match expected https://www.w3.org/TR/webarch/.",
  "reasonCodes": "generic_homepage_redirect,destination_mismatch",
  "changeType": "new",
  "charged": true,
  "chargedEvent": "url-audited"
}
```

The default key-value store also holds:

- `OUTPUT` — counts (pass, fail, coverage, change type), charged events, the failure list, and whether the baseline was saved.
- `REPORT.html` — failures first, then changes, then every audited URL.
- `DIFF` — the same change list, including URLs that disappeared from the map when a new baseline is saved.

The named state store holds `baseline-{monitorId}`. That file is written last, and only when the run finished, the charge limit was not hit, every planned URL was audited, and (once four or more URLs were attempted) at least half of them were actually observed. A crashed, charge-limited, or mostly blocked run keeps the previous baseline.

`coverage` is `complete`, `partial`, `empty`, `blocked`, or `unsupported`. `confidence` is `high`, `medium`, or `low`. `changeType` is `new`, `unchanged`, `changed`, `regression`, or `recovery`.

Reason codes you will see: `destination_mismatch`, `generic_homepage_redirect`, `status_mismatch`, `too_many_redirects`, `redirect_loop`, `title_mismatch`, `h1_missing`, `h1_mismatch`, `cta_missing`, `selector_invalid`, `canonical_missing`, `canonical_mismatch`, `hreflang_missing`, `wrong_market`, `soft_404`, `unexpected_noindex`, `missing_noindex`, `empty_body`, plus `unsafe_url`, `dns_error`, and `fetch_failed` / `fetch_blocked` when the URL was not retrieved.

### Pricing

This Actor uses pay-per-event pricing with two events. There is no charge per dataset item. The platform start event ($0.005 per run) is separate and is not part of the examples below.

| Event | When it is charged | Price |
| --- | --- | --- |
| `url-audited` | A static check finished with an HTTP status and coverage `complete` or `partial`. | $0.003 |
| `browser-audit` | The same URL was rendered in the browser and that result was delivered. This replaces `url-audited` for that URL. | $0.03 |

Not charged: rejected private or invalid URLs, DNS failures, timeouts, HTTP 401/403/407, and 429 after retries. An empty body is not charged when the check needed page content. A retry of the same run does not charge a URL that was already delivered. When the charge limit is reached, the run stops and does not keep fetching unpaid URLs.

| Job | Events | Events cost |
| --- | --- | --- |
| Built-in sample, browser off | 6 × `url-audited` | $0.018 |
| Launch-day map, 400 static URLs | 400 × `url-audited` | $1.20 |
| Agency month, 10,000 static and 1,000 browser | 10,000 × $0.003 + 1,000 × $0.03 | $60.00 |

Count a browser URL only once, at the browser price.

### Scheduling

Set a schedule in the Apify console and keep `monitorId` stable. The first run marks every row `new` and fills the dataset. Later runs compare verdict, final URL, and the evidence hash.

`alertOnlyOnChange` drops `unchanged` rows from the dataset so a webhook stays quiet. Those URLs are still audited and still charged. `OUTPUT` records how many were omitted.

### Integrations

Dataset rows are flat and CSV-friendly, so an Apify-to-Google-Sheets integration can append them without a transform. `OUTPUT` is one JSON object for a webhook: pass and fail counts, charged events, and the failure list capped at 100.

In n8n or Make, trigger on the Actor run finishing, then read the default dataset items and the `OUTPUT` record. Branch on `changeType` equal to `regression` if you only want a page that used to pass. `REPORT.html` is the link to hand a client.

### Run locally

Python 3.12.

```bash
pip install -r requirements.txt pytest
python -m pytest tests
python -m src
```

An empty input uses the built-in sample. Pay-per-event charging is inactive locally unless you set `ACTOR_TEST_PAY_PER_EVENT=true`. The dataset is still written.

Default memory is 512 MB, which is enough for static checks. Browser mode needs 2048 MB. The Actor logs a warning if browser mode is on and the allocated memory is under 1024 MB.

### FAQ

**Why did a 200 fail?** The final URL, hop count, title, H1, canonical, robots, region, or CTA did not match. Read `reasonCodes` and `failureReasons` on that row.

**Why was a URL missing from the dataset?** It was rejected as unsafe, the fetch was blocked, the body was empty while content assertions were required, the charge limit stopped the run, or alert-only mode omitted an unchanged row. `OUTPUT` explains which.

**Why did the baseline stay put?** The run failed, hit the charge limit, did not finish every URL, or too many fetches were blocked. The previous good baseline is still the one later runs diff against.

**Does the browser add a second charge?** No. A completed browser audit is billed only as `browser-audit`.

**Will it submit my checkout form?** No. Requests are `GET`. In the browser, document navigations that are not `GET` are aborted, including form posts. The Actor does not click, fill, or transact.

**How accurate is the soft-404 and market check?** Both are heuristics. Soft-404 looks for not-found phrasing in the title or H1. Market uses the URL, `html lang`, and a self `hreflang`. A bare language tag such as `en` is not treated as a country. Confidence drops to `medium` when the region signal is thin.

### Limits

- Static HTML is the default. A call to action injected by JavaScript needs browser mode and 2048 MB.
- There is no login and no cookie jar shared across URLs. A fresh browser context is used per page.
- Datacenter IP addresses, and Chromium’s default `en-US` locale, can see a different market page than a shopper in another country.
- The absolute redirect cap is 20 hops. Loops stop when a URL identity repeats.
- Response bodies are read up to 1.5 MB. A redirect-map file is read up to 2 MB.
- Hosts are paced (about 0.2 seconds between requests to the same host when more than one URL is in the run). Retries cover 429, 502, 503, 504, and transport errors.
- Playwright’s locale is `en-US`. The Actor does not send `Accept-Language`, so it does not force a market on the HTTP request itself.

# Actor input Schema

## `redirectMap` (type: `string`):

Old-to-new map as CSV or JSON. CSV columns include source, destination, status, max_hops, canonical, noindex, hreflang, region, title_contains, h1_contains, required_text, required_selector, and label. JSON is an array of those fields in camelCase or snake_case. Leave this empty and leave priority URLs empty to run the built-in public sample.

## `redirectMapUrl` (type: `string`):

Optional public http(s) URL of a CSV or JSON redirect map. Private hosts, localhost, and link-local addresses are rejected. The file is read with GET and is never treated as a form.

## `priorityUrls` (type: `array`):

Extra URLs to audit. Each item is a URL string or an object with url plus the same assertions as the redirect map (expected final URL, status, max hops, canonical, noindex, hreflang, region, title or H1 text, required text or CSS selector).

## `patternAssertions` (type: `array`):

Assertions applied to every source URL that matches a glob such as https://shop.example/products/\*. A value set on the URL itself wins over the pattern.

## `useBrowser` (type: `boolean`):

Off by default. When on, a URL whose static HTML fails a content assertion (or sets forceBrowser) is rendered in Chromium. The browser never clicks, fills, or submits a form. Set run memory to 2048 MB. A completed browser audit is billed as browser-audit instead of url-audited.

## `maxBrowserUrls` (type: `integer`):

Cap on pages rendered in the browser during one run. Further content failures stay on the static result.

## `flagUnexpectedNoindex` (type: `boolean`):

When a URL does not set its own noindex expectation, treat a noindex robots directive as a failure. Set noindex true on a URL that is supposed to be hidden.

## `forbidSoft404` (type: `boolean`):

Fail a 2xx page whose title or H1 looks like a not-found page. This is a heuristic, not a guarantee that the page is a real error.

## `maxHops` (type: `integer`):

Fail a URL whose redirect chain is longer than this. The final status below is the page after redirects, not the first hop. Per-URL maxHops overrides this.

## `maxUrls` (type: `integer`):

Maximum URLs audited in one run. Extra rows are counted in the summary and not fetched.

## `concurrency` (type: `integer`):

How many URLs to fetch at once. Each host is also paced so the run does not burst a single site.

## `requestTimeoutSecs` (type: `integer`):

Seconds to wait for one response before retrying.

## `alertOnlyOnChange` (type: `boolean`):

Keep unchanged URLs out of the dataset. The HTML report and OUTPUT summary still include every audited URL. The first run treats every URL as new, so the dataset is still filled. Completed audits are charged even when the row is omitted.

## `monitorId` (type: `string`):

Separates saved baselines. Use one ID per client site so a later run diffs against that site only.

## `stateStoreName` (type: `string`):

Named key-value store that keeps the last good baseline across runs. A failed or mostly blocked run does not replace it.

## Actor input object example

```json
{
  "redirectMap": "[\n  {\n    \"label\": \"W3C homepage HTTP to HTTPS\",\n    \"source\": \"http://www.w3.org/\",\n    \"destination\": \"https://www.w3.org/\",\n    \"status\": 200,\n    \"maxHops\": 3,\n    \"titleContains\": \"W3C\",\n    \"noindex\": false,\n    \"forbidSoft404\": true\n  },\n  {\n    \"label\": \"IANA example-domains guide\",\n    \"source\": \"https://www.iana.org/help/example-domains\",\n    \"destination\": \"https://www.iana.org/help/example-domains\",\n    \"status\": 200,\n    \"maxHops\": 2,\n    \"titleContains\": \"Example Domains\",\n    \"h1Contains\": \"Example Domains\",\n    \"noindex\": false,\n    \"forbidSoft404\": true\n  },\n  {\n    \"label\": \"Missing purchase CTA\",\n    \"source\": \"https://www.iana.org/help/example-domains\",\n    \"destination\": \"https://www.iana.org/help/example-domains\",\n    \"status\": 200,\n    \"titleContains\": \"Example Domains\",\n    \"requiredText\": \"Add to cart\"\n  },\n  {\n    \"label\": \"Old path collapsed to homepage\",\n    \"source\": \"https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301\",\n    \"destination\": \"https://www.w3.org/TR/webarch/\",\n    \"status\": 200,\n    \"maxHops\": 5\n  },\n  {\n    \"label\": \"Redirect chain over hop budget\",\n    \"source\": \"https://httpbin.org/redirect/2\",\n    \"destination\": \"https://httpbin.org/get\",\n    \"status\": 200,\n    \"maxHops\": 1\n  },\n  {\n    \"label\": \"German market expected\",\n    \"source\": \"https://www.iana.org/help/example-domains\",\n    \"status\": 200,\n    \"region\": \"de\",\n    \"hreflang\": \"de-DE\"\n  }\n]",
  "patternAssertions": [
    {
      "pattern": "https://www.iana.org/help/*",
      "forbidSoft404": true,
      "noindex": false
    }
  ],
  "useBrowser": false,
  "maxBrowserUrls": 25,
  "flagUnexpectedNoindex": true,
  "forbidSoft404": true,
  "maxHops": 5,
  "maxUrls": 200,
  "concurrency": 4,
  "requestTimeoutSecs": 20,
  "alertOnlyOnChange": false,
  "monitorId": "sample",
  "stateStoreName": "site-migration-regression-auditor-state"
}
```

# Actor output Schema

## `results` (type: `string`):

One flat row per delivered URL, including the verdict, evidence, and change versus the previous successful run.

## `report` (type: `string`):

Summary report with failures first and changes since the saved baseline.

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

Counts, charged events, dropped URLs, and whether the baseline was updated.

# 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 = {
    "redirectMap": `[
  {
    "label": "W3C homepage HTTP to HTTPS",
    "source": "http://www.w3.org/",
    "destination": "https://www.w3.org/",
    "status": 200,
    "maxHops": 3,
    "titleContains": "W3C",
    "noindex": false,
    "forbidSoft404": true
  },
  {
    "label": "IANA example-domains guide",
    "source": "https://www.iana.org/help/example-domains",
    "destination": "https://www.iana.org/help/example-domains",
    "status": 200,
    "maxHops": 2,
    "titleContains": "Example Domains",
    "h1Contains": "Example Domains",
    "noindex": false,
    "forbidSoft404": true
  },
  {
    "label": "Missing purchase CTA",
    "source": "https://www.iana.org/help/example-domains",
    "destination": "https://www.iana.org/help/example-domains",
    "status": 200,
    "titleContains": "Example Domains",
    "requiredText": "Add to cart"
  },
  {
    "label": "Old path collapsed to homepage",
    "source": "https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301",
    "destination": "https://www.w3.org/TR/webarch/",
    "status": 200,
    "maxHops": 5
  },
  {
    "label": "Redirect chain over hop budget",
    "source": "https://httpbin.org/redirect/2",
    "destination": "https://httpbin.org/get",
    "status": 200,
    "maxHops": 1
  },
  {
    "label": "German market expected",
    "source": "https://www.iana.org/help/example-domains",
    "status": 200,
    "region": "de",
    "hreflang": "de-DE"
  }
]`,
    "patternAssertions": [
        {
            "pattern": "https://www.iana.org/help/*",
            "forbidSoft404": true,
            "noindex": false
        }
    ],
    "monitorId": "sample"
};

// Run the Actor and wait for it to finish
const run = await client.actor("plusonets/site-migration-regression-auditor").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 = {
    "redirectMap": """[
  {
    \"label\": \"W3C homepage HTTP to HTTPS\",
    \"source\": \"http://www.w3.org/\",
    \"destination\": \"https://www.w3.org/\",
    \"status\": 200,
    \"maxHops\": 3,
    \"titleContains\": \"W3C\",
    \"noindex\": false,
    \"forbidSoft404\": true
  },
  {
    \"label\": \"IANA example-domains guide\",
    \"source\": \"https://www.iana.org/help/example-domains\",
    \"destination\": \"https://www.iana.org/help/example-domains\",
    \"status\": 200,
    \"maxHops\": 2,
    \"titleContains\": \"Example Domains\",
    \"h1Contains\": \"Example Domains\",
    \"noindex\": false,
    \"forbidSoft404\": true
  },
  {
    \"label\": \"Missing purchase CTA\",
    \"source\": \"https://www.iana.org/help/example-domains\",
    \"destination\": \"https://www.iana.org/help/example-domains\",
    \"status\": 200,
    \"titleContains\": \"Example Domains\",
    \"requiredText\": \"Add to cart\"
  },
  {
    \"label\": \"Old path collapsed to homepage\",
    \"source\": \"https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301\",
    \"destination\": \"https://www.w3.org/TR/webarch/\",
    \"status\": 200,
    \"maxHops\": 5
  },
  {
    \"label\": \"Redirect chain over hop budget\",
    \"source\": \"https://httpbin.org/redirect/2\",
    \"destination\": \"https://httpbin.org/get\",
    \"status\": 200,
    \"maxHops\": 1
  },
  {
    \"label\": \"German market expected\",
    \"source\": \"https://www.iana.org/help/example-domains\",
    \"status\": 200,
    \"region\": \"de\",
    \"hreflang\": \"de-DE\"
  }
]""",
    "patternAssertions": [{
            "pattern": "https://www.iana.org/help/*",
            "forbidSoft404": True,
            "noindex": False,
        }],
    "monitorId": "sample",
}

# Run the Actor and wait for it to finish
run = client.actor("plusonets/site-migration-regression-auditor").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 '{
  "redirectMap": "[\\n  {\\n    \\"label\\": \\"W3C homepage HTTP to HTTPS\\",\\n    \\"source\\": \\"http://www.w3.org/\\",\\n    \\"destination\\": \\"https://www.w3.org/\\",\\n    \\"status\\": 200,\\n    \\"maxHops\\": 3,\\n    \\"titleContains\\": \\"W3C\\",\\n    \\"noindex\\": false,\\n    \\"forbidSoft404\\": true\\n  },\\n  {\\n    \\"label\\": \\"IANA example-domains guide\\",\\n    \\"source\\": \\"https://www.iana.org/help/example-domains\\",\\n    \\"destination\\": \\"https://www.iana.org/help/example-domains\\",\\n    \\"status\\": 200,\\n    \\"maxHops\\": 2,\\n    \\"titleContains\\": \\"Example Domains\\",\\n    \\"h1Contains\\": \\"Example Domains\\",\\n    \\"noindex\\": false,\\n    \\"forbidSoft404\\": true\\n  },\\n  {\\n    \\"label\\": \\"Missing purchase CTA\\",\\n    \\"source\\": \\"https://www.iana.org/help/example-domains\\",\\n    \\"destination\\": \\"https://www.iana.org/help/example-domains\\",\\n    \\"status\\": 200,\\n    \\"titleContains\\": \\"Example Domains\\",\\n    \\"requiredText\\": \\"Add to cart\\"\\n  },\\n  {\\n    \\"label\\": \\"Old path collapsed to homepage\\",\\n    \\"source\\": \\"https://httpbin.org/redirect-to?url=https://www.w3.org/&status_code=301\\",\\n    \\"destination\\": \\"https://www.w3.org/TR/webarch/\\",\\n    \\"status\\": 200,\\n    \\"maxHops\\": 5\\n  },\\n  {\\n    \\"label\\": \\"Redirect chain over hop budget\\",\\n    \\"source\\": \\"https://httpbin.org/redirect/2\\",\\n    \\"destination\\": \\"https://httpbin.org/get\\",\\n    \\"status\\": 200,\\n    \\"maxHops\\": 1\\n  },\\n  {\\n    \\"label\\": \\"German market expected\\",\\n    \\"source\\": \\"https://www.iana.org/help/example-domains\\",\\n    \\"status\\": 200,\\n    \\"region\\": \\"de\\",\\n    \\"hreflang\\": \\"de-DE\\"\\n  }\\n]",
  "patternAssertions": [
    {
      "pattern": "https://www.iana.org/help/*",
      "forbidSoft404": true,
      "noindex": false
    }
  ],
  "monitorId": "sample"
}' |
apify call plusonets/site-migration-regression-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plusonets/site-migration-regression-auditor"
        }
    }
}
```

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/5FiRTcEZVoxeRpfSL/builds/5kMaYOhbJXGJVgXQ3/openapi.json
