Site Migration & Revenue Page Regression Auditor
Pricing
from $3.00 / 1,000 url auditeds
Site Migration & Revenue Page Regression Auditor
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.
Pricing
from $3.00 / 1,000 url auditeds
Rating
0.0
(0)
Developer
Olalekan Johnson
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
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 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
GETthe 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.- 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.
- Record pass or fail, the chain, and a short evidence snippet plus a hash of the normalized page signals.
- On a later run with the same monitor ID, mark the row
new,unchanged,changed,regression(pass became fail), orrecovery(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.
{"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):
source,destination,status,max_hops,required_text,labelhttps://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):
{"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):
{"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.
pip install -r requirements.txt pytestpython -m pytest testspython -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-USlocale, 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 sendAccept-Language, so it does not force a market on the HTTP request itself.