# SEO Deploy Guard: Catch SEO Regressions After Deploys (`smartlinks/seo-deploy-guard`) Actor

Technical SEO audit + SEO monitor for every deploy: catch new noindex, canonical changes, broken internal links (404s), redirect chains, robots and sitemap drops vs your last good crawl. CI gate.

- **URL**: https://apify.com/smartlinks/seo-deploy-guard.md
- **Developed by:** [SmartLinks](https://apify.com/smartlinks) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.70 / 1,000 html page auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## SEO Deploy Guard

Catch SEO regressions after every deploy—new noindex, canonical changes, new 404s, redirect chains, robots blocks and sitemap drops—against your last good crawl, with a CI pass/warn/fail gate.

- **Automatic baseline:** repeat the same input; no dataset IDs to manage.
- **CI gate with evidence:** pass, warn or fail on new regressions, with old/new values for status, canonical and redirect-chain changes.
- **Coverage-aware:** unknown never means fixed; pages that could not be checked stay unknown.

> **$2 per 1,000 audited HTML pages (Bronze $1.90, Silver $1.80, Gold+ $1.70). Errors, blocked pages, duplicates, redirect hops and non-HTML URLs are free. Platform usage included; no proxy by default.**
>
> **Examples at the base rate:** a 200-page site crawled weekly for four weeks = 800 pages/month = **$1.60**. First run of the `example.com` prefill = **$0.002** for its one audited HTML page. Optional proxy traffic has separate platform costs.

### Try it in 30 seconds

Open the Actor's Input tab, keep the prefilled URL and click **Start**:

```json
{
  "startUrl": "https://example.com/"
}
```

When the run finishes, open **HTML pages** for page results and **Run summary** for `OUTPUT`, including coverage and the gate. The first run has no comparison baseline, so its gate is `warn`. This is a quick way to try the input; completion time depends on the target and its crawl rules.

### Run it after a deploy

Replace `startUrl` with your public site URL. Run once before deployment to establish a complete baseline, then run **the same input again** after deployment. The second run shows changes and a deploy gate when a baseline is available. No dataset ID handoff is needed. The default budget is 200 URL attempts; raise `maxPages` if your site needs more coverage.

Save that input in an Apify Task for a weekly Schedule or call it from your deployment pipeline. Keep the seed URL and discovery options stable. Optional `monitorId` gives the monitor a name such as `production-main`; use it from the first run onward.

Only complete, valid crawls advance the automatic baseline. A complete run can advance it even when the gate fails, so automatic monitoring compares with the last eligible crawl. To keep a **fixed known-good release** as the reference, archive its dataset and set `baselineDatasetId`. An incomplete first run, including one with an unreadable sitemap, does not establish an automatic baseline.

### From baseline to failed deploy: three screens

**1. Baseline:** a complete crawl observes an indexable page and saves the automatic baseline. Selected dataset fields:

```json
{"url": "https://example.com/product", "status": 200, "noindex": false}
```

**2. Deployment:** a template change adds `<meta name="robots" content="noindex">`. Run the same input; the new page observation now reads:

```json
{"url": "https://example.com/product", "status": 200, "noindex": true}
```

**3. Gate:** `OUTPUT.gate` becomes `fail` under the default policy. Selected `OUTPUT` fields and one regression signal:

```json
{
  "gate": "fail",
  "newIssues": [
    {
      "url": "https://example.com/product",
      "type": "became_noindex",
      "severity": "high"
    }
  ]
}
```

The old/new values above are page-row excerpts: `noindex: false` → `true`. The `became_noindex` signal itself has no `before`/`after` fields. Status, canonical and redirect-chain changes include those fields. One page can produce several signals, such as noindex plus a sitemap conflict; this excerpt shows only one.

### Head-to-head benchmark (2026-11-18)

We built a 40-page test site, crawled it once, then deployed 24 realistic SEO regressions (new noindex via meta and X-Robots-Tag, canonicals moved to other pages or a staging host, new 404s, redirects to the home page, a 3-hop redirect chain, noindexed sitemap URLs, a robots.txt directory block, removed titles and H1, broken JSON-LD, an orphaned page) plus 3 harmless copy edits. Each tool crawled the same site before and after, using its own comparison feature where it has one.

| Tool | Regressions reported as a change since the last crawl | False alarms on harmless edits | Price per 1,000 pages |
|---|---:|---:|---:|
| **SEO Deploy Guard** | **24/24** | **0** | **$2.00** |
| SEO audit Actor A (with its compare-with-previous option) | about 15/24 | 0 | $5.00 |
| SEO audit Actor B (no comparison feature) | 0/24 (14/24 visible only as current issues) | 0 | $30.00 |

Actor A missed the new 404s, the redirects, the robots.txt block and the orphan as changes. This is one synthetic site, not a guarantee for every site; the fixture and its ground truth are part of our test suite.

### Results

The default dataset contains page observations by requested URL: URL and final URL, HTTP status, redirect chain, canonical and its relationship, meta robots and X-Robots-Tag, sitemap membership, title/H1/description presence and lengths, hreflang count, JSON-LD types and parse errors, internal incoming/outgoing links, issue codes with severity, and `change` entries. Errors and repeated redirect destinations retain free diagnostic rows. Unfollowed cross-host redirects retain their status and hop list regardless of MIME type; destinations contain scheme, host and path without credentials, query strings or fragments. They can trigger a high-severity redirect change without contacting the external host. `contentObserved: false` marks untrusted error bodies and unfollowed redirects; content scalars are null and empty arrays do not prove absence. `pages` counts unique final destinations; `pageObservations` counts retained observations. Other non-HTML, blocked and failed fetches are described in the summary without paid rows.

Dataset views: **HTML pages**, **Deploy changes**, **Internal link graph**. Export as JSON, CSV or Excel from the dataset. Nested fields are most useful in JSON.

The key-value store record `OUTPUT` contains:

- Coverage, an actionable stop message, attempted pages, remaining URLs, configured/effective concurrency, elapsed time and pages/minute.
- Issue/severity counts and sitemap conflicts: noindex, redirects, HTTP errors, canonicalized-away pages and orphan candidates.
- HTTP/HTTPS and bare/www root probes, staging canonical/link leaks, robots blanket disallow.
- Deploy gate, page changes, regressions, unknown baseline pages, CI Markdown, automatic baseline references and billing totals.

An orphan candidate means no incoming link was found in this crawl. At partial coverage it is informational, not proof of a site-wide orphan. Unfetched sitemap URLs are listed separately. `inSitemap: null` means membership could not be established. A title longer than 60 characters or description longer than 160 is an opportunity to review display length, not a fixed search-engine limit. JSON-LD validation checks JSON and basic shape, not eligibility for a rich result. Hreflang is counted, not validated reciprocally.

### Readable report for clients and PRs

Every run writes **REPORT.md** and **REPORT.html** to its default key-value store, included at no extra charge. Open them from the run's Output tab or use `OUTPUT.reportUrl` / `OUTPUT.reportHtmlUrl`. The HTML has inline styles, works on mobile and can be printed without external assets. Both formats show the gate, coverage, old/new evidence, fixed repair hints, observed resolutions and unknown URLs. First runs summarize current issues; partial runs explain their limits. Reports show at most 500 change lines, 20 unknown URLs, and the top 10 current issue codes with up to 10 examples each; long values are shortened and full details remain in the dataset and OUTPUT.

Trimmed example of REPORT.md:

```markdown
## SEO Deploy Guard

Site: https://example.com/
Run date (UTC): 2026-11-18T12:00:00Z
Gate: FAIL

### What changed

| Change type | Pages | Severity |
| --- | ---: | --- |
| New 404/error status | 1 | high |

1 page with 1 regression
Baseline: 2026-11-17T12:00:00Z
Coverage: Complete: all discovered pages were checked.
Pages audited: 40; unknown: 0 URLs.

### New regressions
#### high
- https://example.com/pricing — HTTP status: 200 → 404. Fix: Restore a successful HTTP response or the intended redirect. <small>Codes: http.error-status, status_changed</small>

### Resolved
- None fully observed.

### Unknown
- 0 URLs with unknown observations; 0 comparison signals.
```

Repeated signals for the same URL, field and old/new values appear once, at their highest severity, with merged codes and one repair hint. The summary counts affected pages per change type. HTML severity groups are collapsible (critical/high start open), and URLs appear as text.

In CI, download `REPORT.md` and post it as a PR comment from your pipeline. The Actor writes the report; your pipeline controls posting and checks `OUTPUT.gate`.

### Deploy gate and CI

`OUTPUT.gate` is `pass`, `warn` or `fail`. `failOn` defaults to `["critical", "high"]`; use any subset of `critical`, `high`, `medium`, `low`, `info` (or `[]` for warnings only). Staging canonicals are critical; newly observed noindex, erroneous status, canonical redirection, redirect chains and robots blocks are high. Missing titles/H1 and JSON-LD parse failures are medium. The gate maps the original audit labels (`blocker`, `warning`, `opportunity`, `info`) into deploy severities; original row issue labels remain available.

Without a regression matching `failOn`, a first run, incomplete coverage, unknown pages, or lower-priority new findings produces a warning. A pass requires comparison evidence, complete discovery coverage and no new regression signals. Repairing a canonical to the self URL does not fail the gate. An orphan candidate at partial coverage remains informational. Counts describe **signals**, so one page can contribute a noindex change and a sitemap conflict.

`newIssues`, `resolved`, `unknown`, `newIssueCountsBySeverity`, `changeCountsBySeverity`, `coverageStatement` and a short Markdown `ciSummary` are in `OUTPUT`. The summary can be pasted into a PR or Slack; the Actor does not send notifications. Handled input errors, partial crawls and intentional page/time/charge/failure stops exit 0 (SUCCEEDED), with an explanatory status message and `OUTPUT.stopReason`/`error`. `success` describes delivery completion; inspect it alongside coverage and the stop reason. Internal, storage and billing failures exit 1. A completed crawl also exits 0 when `gate=fail`; your CI job chooses whether to fail on that data.

Copy [scripts/ci_gate.sh](scripts/ci_gate.sh) into your repository. It uses `curl` to start and poll the Actor, downloads `OUTPUT`, prints `ciSummary`, then uses `jq` to fail on `gate=fail` or an unsuccessful run. Create `ci-input.json`:

```json
{
  "startUrl": "https://example.com/",
  "monitorId": "production-main",
  "maxPages": 200,
  "failOn": ["critical", "high"]
}
```

```sh
export ACTOR_ID='YOUR_SEO_DEPLOY_GUARD_ACTOR_ID'
## Set APIFY_TOKEN through your secret manager; never commit or print it.
bash scripts/ci_gate.sh ci-input.json
```

For an existing completed run, the final decision is simply:

```sh
curl --fail --silent --show-error \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  "https://api.apify.com/v2/key-value-stores/$RUN_KV_ID/records/OUTPUT" \
  | jq -e '.success == true and (.gate == "pass" or .gate == "warn")'
```

GitHub Actions (copy the script and input above into your repository):

```yaml
name: SEO after deploy
on: workflow_dispatch # Or call from your successful deployment workflow.
jobs:
  seo:
    runs-on: ubuntu-latest
    timeout-minutes: 20
    concurrency: seo-production-main
    steps:
      - uses: actions/checkout@v4
      - name: Run SEO gate
        env:
          APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}
          ACTOR_ID: ${{ vars.SEO_DEPLOY_GUARD_ACTOR_ID }}
        run: bash scripts/ci_gate.sh ci-input.json
```

Warnings are allowed in these examples. To require full crawl coverage as well, add `and .coverage == "complete"` to the `jq` condition. Set the script's run timeout and maximum charge to your own limits. For a weekly Apify Schedule, save the same input in a Task and schedule that Task. A post-deploy webhook receiver can start the same Actor/Task input using the API. Neither requires updating a baseline dataset ID.

For Slack or email alerts, configure an Apify run-completion webhook to a receiver or automation that reads `OUTPUT` and forwards `ciSummary` to your chosen channel. Run completion alone does not tell you whether the SEO gate passed: inspect `gate`, `success` and coverage. The Actor does not send Slack messages or email itself.

### API / MCP workflow

Call this Actor with the JSON input above using Apify's API or your Apify MCP integration, wait for completion, then retrieve the default dataset and `OUTPUT`. Repeat identical input for automatic monitoring. To compare with a fixed historical dataset, supply its ID as `baselineDatasetId`. Use coverage and unknown changes alongside alerts.

### FAQ

#### Can I forward a readable report to clients or PR reviewers?

Yes. Share REPORT.md or the self-contained REPORT.html from the Output tab; both are included without extra charges and retain partial-coverage and unknown warnings.

#### Does it render JavaScript?

No. It audits source HTML and HTTP headers without browser rendering or login. Content and SEO tags added only by client-side JavaScript are outside its coverage.

#### What counts as a regression?

A new issue or an adverse change compared with a baseline: newly observed noindex, a changed non-self canonical, a new error status, a changed redirect chain, a newly blocked monitored URL, or a page dropped from a readable sitemap. Missing titles/H1 and broken JSON-LD are also reported. `failOn` controls which severities fail the gate; the default is critical and high. A first run reports current issues but cannot infer changes. Harmless copy edits do not by themselves create a regression signal, though crossing an audit threshold can.

#### What happens with partial crawls or unknown pages?

Unknown never means resolved. Page/time/charge limits, fetch failures, unavailable sitemaps and robots exclusions can leave coverage incomplete; they preserve the previous automatic baseline. Known URLs are revisited even if links or sitemap entries disappear. A newly blocked URL can have a robots-policy regression while its content stays unknown. For 401/403/429/5xx responses, status remains observed but content comparisons stay unknown. Without a failing regression, incomplete coverage produces `warn`.

#### Does it respect robots.txt and Crawl-delay?

Yes, by default. With `respectRobots: true`, unavailable robots.txt (except 404/410) stops crawling. A declared Crawl-delay forces one worker and a minimum interval, including redirect hops. Delays up to 60 seconds are honored; a larger delay stops a respecting crawl rather than being shortened. `requestDelayMillis` can add spacing even without Crawl-delay.

#### What is billed, including redirects?

One event per unique, successfully fetched and parsed 2xx HTML page saved to the dataset. A newly audited 2xx HTML destination reached through a redirect is billed once; the redirect hop itself is free. Errors, robots-blocked URLs, duplicates, unfollowed redirects and non-HTML responses are free. Comparisons, the gate and CI summary are included, with no start fee. The Actor checks charge capacity before discovery and reserves capacity for concurrent page work.

#### Which sites can I crawl?

Public HTTP(S) URLs you are authorized to crawl. Use a start URL, a same-host sitemap, or both. Page discovery and redirects stay on the same hostname. URLs and query strings appear in results; do not submit credentials, signed links or personal URLs. Only standard HTTP(S) ports are accepted.

#### Do I need a proxy?

No proxy is used by default. You can configure an optional Apify HTTP CONNECT proxy; its traffic has separate platform costs. A proxy does not add JavaScript rendering or guarantee access through a WAF. Public-IP validation and redirect safety checks still apply.

### Related Actors by SmartLinks

- [PageSpeed Change Monitor](https://apify.com/smartlinks/pagespeed-change-monitor)
- [YouTube Transcript API](https://apify.com/smartlinks/youtube-transcript-api)

### Limits

Default: 200 page attempts, hard cap 5,000. Up to 5 page requests run concurrently by default (`maxConcurrency`, range 1–20). `requestDelayMillis` defaults to 0 and spaces request starts per host, including redirect hops. A robots Crawl-delay forces one worker and supplies the minimum interval. The response cap is 2 MB of compressed and decompressed content, timeout 15 seconds per fetch, and the default crawl deadline is 30 minutes. Robots Crawl-delay up to 60 seconds is honored. With `respectRobots: true`, a larger Crawl-delay blocks the crawl rather than shortening the requested delay.

Discovery is bounded at 20,000 URLs; the source parser observes at most 1,000 links and 50 JSON-LD blocks per document. The output retains at most 200 internal destinations per page, 100 JSON-LD types, and a 16 MB combined URL-reference budget for the link graph. Text values are bounded (title/H1: 4,096 characters; description: 8,192), while lengths describe the original value. `parserLimits` identifies truncation; pages reaching a parser/discovery limit are marked as incomplete evidence. No external canonical or link target is fetched. Root consistency probes are limited to HTTP/HTTPS and bare/www variants; unverifiable probes remain unknown. Cross-host page redirects stop before the external host is contacted.

Charge capacity is checked before discovery: zero capacity makes no target requests, including robots, sitemap and root probes. A persisted failure breaker stops scheduling after 50 consecutive unsuccessful page fetches, or fewer than 10% valid 2xx HTML results after at least 100 completed fetches. Failed requests, non-HTML, errors and unresolved redirects count as unsuccessful; duplicate valid HTML still counts as successful content. In-flight work is bounded by concurrency and unfinished URLs remain in the checkpoint. `OUTPUT.stopReason` is `failure_breaker`; counters are `fetchAttempts`, `validHtmlPages` and `consecutiveFailures`.

### Reliability and coverage

Each completed page checkpoints the frontier and audit rows to `STATE`. Observations are published and valid pages charged in batches of at most 50 during the crawl, plus a final partial batch. A stopped or killed crawl retains delivered batches. Incoming links and graph-dependent findings in early dataset rows describe the graph available at publication (`incomingCoverage: sample`); final `OUTPUT` and automatic baselines use the final observed graph. `publishedPages` counts delivered and reconciled observations. In-flight URLs remain in the saved frontier and can be fetched again after migration; committed pages are deduplicated. Slots reserve potential paid pages so concurrent work cannot exceed the charge budget. Migration reconciles saved delivery before new fetches and resumes the same dataset without re-billing acknowledged charges. An ambiguous dataset write is reconciled against existing rows. If a charge outcome cannot be confirmed, the run stops with `billing_outcome_unknown` and does not retry the uncertain charge: inspect that run before starting a new one. This can leave one stored page without a confirmed charge, rather than risk duplicate billing.

Fetch failures and robots failures are not page SEO findings. A newly observed explicit robots exclusion can be a policy regression, while the excluded page body stays unknown. With robots enabled, unavailable robots (other than 404/410) stop crawling. An unreadable or unreachable sitemap never proves pages disappeared from it; a valid, fully read empty sitemap can establish missing membership. WAF responses and client-rendered sites may limit what source HTML can establish. Baseline comparisons work best with the same seed, options and sufficient page budget. The gate is a configurable regression policy, not a ranking guarantee or a universal SEO score.

#### Automatic baseline details

Automatic stores are scoped to this Actor and monitor. Without `monitorId`, identity comes from normalized seed URLs and discovery options. Page/time/charge/parser/discovery limits, failure-breaker stops, unreadable sitemaps, fetch errors, robots exclusions, non-HTML omissions, WAF/error statuses (401/403/429/5xx), unfollowed redirects and ambiguous charges preserve the previous baseline. A fully observed 404 or followed same-host redirect is a valid observation.

`baselineDatasetId` remains a manual override and never updates automatic state. Snapshots are compact, immutable and selected by run **start** order. Overlapping runs can compare with the same predecessor; an older run finishing late cannot replace a newer completed snapshot. Baseline input is frozen across migration. Avoid overlapping runs if each must compare to its immediate predecessor. Snapshots remain until you remove the monitor store; storage and listing costs grow with run count.

The Actor reports new/resolved issues, status changes, newly observed noindex, canonical changes, changed redirect chains and pages dropped from a readable sitemap. Pages not re-fetched are **unknown**; disappearance from a partial crawl never means removal or resolution. Previously fetched pages now excluded by robots remain unknown **and** carry a `robots.newly-blocked` change with policy evidence. Their page contents are never inferred. For 401/403/429/5xx responses, the HTTP status remains observed, while content comparisons (noindex, canonical, title, H1, JSON-LD and links) are unknown. Such bodies never resolve previous content findings or supply discovery links, and coverage stays incomplete.

Previously monitored URLs are also revisited if they disappear from links or the sitemap. This lets the Actor observe their current status and sitemap membership, rather than quietly forgetting them. Caps and robots rules still apply; unknown baseline pages prevent automatic promotion.

### Proxy and safety

No proxy is used by default. Optional Apify HTTP CONNECT proxies connect to a locally resolved, validated public IP; TLS still verifies the original hostname. Targets are revalidated at every redirect and requests never connect to private, loopback, link-local, metadata, reserved or mixed public/private DNS answers. Only standard HTTP(S) ports are accepted. Robots and host scope are checked before each hop. No proxy credentials are included in output.

### Full input reference

Supply `startUrl`, `sitemapUrl`, or both. All page and sitemap URLs must use the same hostname. Sitemap indexes are supported. Keep seed and discovery settings stable when reusing a monitor.

| Field | Default | Purpose and accepted values |
|---|---|---|
| `startUrl` | Prefill: `https://example.com/` | Public HTTP(S) seed URL, at most 2,048 characters. Required unless `sitemapUrl` is supplied. |
| `sitemapUrl` | None | Same-host XML sitemap or sitemap index, at most 2,048 characters. Can be used alone or with `startUrl`. |
| `maxPages` | `200` | Page attempts, including failed, blocked and non-HTML URLs; integer 1–5,000. |
| `timeoutSecs` | `15` | Per-fetch deadline in seconds, including redirect hops; integer 1–60. |
| `maxResponseBytes` | `2000000` | Cap on both compressed and decompressed response bodies; integer 1,024–10,000,000 bytes. Larger responses are skipped. |
| `maxSitemaps` | `30` | Maximum sitemap documents, including indexes; integer 1–100. |
| `maxConcurrency` | `5` | Concurrent page fetches; integer 1–20. A robots Crawl-delay forces one worker. |
| `requestDelayMillis` | `0` | Minimum interval between request starts per host, including hops; integer 0–10,000 milliseconds. A longer robots Crawl-delay takes precedence. |
| `maxDurationSecs` | `1800` | Crawl deadline, including discovery and root probes; integer 1–7,200 seconds. Saving and publishing may take additional time. |
| `respectRobots` | `true` | Honor robots exclusions; unavailable robots stops a respecting crawl. Crawl-delay is applied whenever present. |
| `includeSitemaps` | `true` | Discover robots-declared sitemaps or `/sitemap.xml`. An explicit `sitemapUrl` is read even when this is `false`. |
| `checkRootRedirects` | `true` | Probe HTTP/HTTPS and bare/www root variants for destination consistency. Unverifiable probes remain unknown. |
| `monitorId` | Derived from normalized seeds and discovery options | Optional stable name, 1–128 characters without control characters. Incompatible crawl settings for an existing ID produce an error; use a new ID for a different scope. |
| `failOn` | `["critical", "high"]` | Array drawn from `critical`, `high`, `medium`, `low`, `info`. `[]` produces warnings only. A failing gate does not itself fail the Actor run. |
| `baselineDatasetId` | Automatic baseline | Optional manual reference: a separate, readable SEO Deploy Guard dataset with up to 5,000 schemaVersion 1 rows and unique page URLs. Does not advance automatic state. |
| `proxyConfiguration` | `{"useApifyProxy": false}` | Optional Apify HTTP CONNECT proxy configuration. Proxy traffic has separate platform costs. |

# Actor input Schema

## `startUrl` (type: `string`):

Public HTTP(S) URL you are authorized to crawl. Same hostname only, including redirects.

## `sitemapUrl` (type: `string`):

Optional same-host XML sitemap or sitemap index; can be used without a start URL.

## `maxPages` (type: `integer`):

Maximum unique page attempts, including failed, blocked and non-HTML URLs. Successful 2xx HTML pages are the only billable results.

## `timeoutSecs` (type: `integer`):

Deadline for one page fetch, including its redirect hops.

## `maxResponseBytes` (type: `integer`):

Cap for both compressed and decompressed response bodies. Larger responses are skipped.

## `maxSitemaps` (type: `integer`):

Maximum XML sitemap documents to inspect, including sitemap indexes.

## `maxConcurrency` (type: `integer`):

Maximum simultaneous page fetches (1–20). Default 5. A robots Crawl-delay forces one worker.

## `requestDelayMillis` (type: `integer`):

Minimum interval between request starts on each host, including redirect hops. Default 0. A longer robots Crawl-delay takes precedence (up to 60 seconds).

## `maxDurationSecs` (type: `integer`):

Crawl time budget, including discovery and root probes. Saving and publishing results can take additional time.

## `respectRobots` (type: `boolean`):

Honor robots exclusions. Unavailable robots.txt stops a respecting crawl. Crawl-delay is honored whenever present.

## `includeSitemaps` (type: `boolean`):

Read robots-declared sitemaps, or /sitemap.xml, and add same-host page URLs to the frontier.

## `checkRootRedirects` (type: `boolean`):

Probe HTTP/HTTPS and bare/www root variants; report their final destination consistency.

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

Stable monitor name for weekly schedules and deploy webhooks. Default: normalized seed URLs and crawl options. Keep crawl options stable for an explicit ID.

## `failOn` (type: `array`):

New regression severities that produce gate=fail. Empty list produces warnings only. A completed crawl still exits successfully.

## `baselineDatasetId` (type: `string`):

Manual override of automatic baselines; does not advance automatic state. Previous SEO Deploy Guard dataset, up to 5,000 rows. Pages not re-fetched remain unknown; unavailable sitemap evidence cannot resolve sitemap issues.

## `proxyConfiguration` (type: `object`):

Optional Apify HTTP CONNECT proxy. No proxy by default. Connections use validated public target IPs; proxy traffic has separate platform costs.

## Actor input object example

```json
{
  "startUrl": "https://example.com/",
  "maxPages": 200,
  "timeoutSecs": 15,
  "maxResponseBytes": 2000000,
  "maxSitemaps": 30,
  "maxConcurrency": 5,
  "requestDelayMillis": 0,
  "maxDurationSecs": 1800,
  "respectRobots": true,
  "includeSitemaps": true,
  "checkRootRedirects": true,
  "failOn": [
    "critical",
    "high"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `reportUrl` (type: `string`):

No description

## `reportHtmlUrl` (type: `string`):

No description

## `pages` (type: `string`):

No description

## `changes` (type: `string`):

No description

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

No description

# 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 = {
    "startUrl": "https://example.com/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("smartlinks/seo-deploy-guard").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 = { "startUrl": "https://example.com/" }

# Run the Actor and wait for it to finish
run = client.actor("smartlinks/seo-deploy-guard").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 '{
  "startUrl": "https://example.com/"
}' |
apify call smartlinks/seo-deploy-guard --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smartlinks/seo-deploy-guard"
        }
    }
}
```

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/RAZF9uSDmkQhysKY9/builds/mO64Sry6at05ZIDDd/openapi.json
