# Technical SEO Audit and Remediation Report (`practical_ai_lab_jp/pal-website-technical-seo-operations-suite`) Actor

Technical SEO audit for website migrations. Check sitemap URLs, redirects, canonicals, noindex, hreflang and JSON-LD. Get a ranked fix backlog. Free AI workflow QA checklist: https://practical-ai-lab.pages.dev/resources/ai-automation-qa-checklist/

- **URL**: https://apify.com/practical_ai_lab_jp/pal-website-technical-seo-operations-suite.md
- **Developed by:** [Practical AI Lab](https://apify.com/practical_ai_lab_jp) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 seo change reports

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

## Technical SEO Audit and Remediation Report

This Actor audits a bounded, deterministic sample of a website's sitemap URLs and joins the results into one severity-ranked fix list. It then compares each run with the baseline stored from the previous run, so a scheduled run tells you what changed instead of repeating what you already know.

### What it checks

- HTTP errors (4xx, 5xx, failed fetches, rate limiting) and non-HTML sitemap entries
- robots.txt conflicts: sitemap URLs that robots.txt disallows
- noindex and nofollow in meta robots and the X-Robots-Tag header
- Redirects, redirect chains, loops, redirects to errors and redirects that leave the origin
- Canonicals: missing, invalid, multiple, cross-origin, not self-referencing, chained, or pointing at a noindex or unhealthy page
- Titles, meta descriptions and h1 tags, including duplicates inside the sample
- hreflang codes, absolute HTTPS URLs, self references, x-default and return links
- Structural JSON-LD checks (valid JSON, @context, @type, commonly required properties)
- Broken or redirecting internal links found on the sampled pages

### How a run works

1. The start URL is reduced to the HTTPS site root. Private, local, IP-address, non-HTTPS and non-default-port hosts are rejected, and each connection is pinned to validated public IP addresses.
2. robots.txt is fetched first. If it cannot be read safely or disallows the root, the run stops and nothing is crawled. Disallowed URLs are never fetched and Crawl-delay is honoured.
3. Same-origin sitemaps are read (one level of sitemap index), and a stable hash ranking selects up to the page limit.
4. The baseline for the domain is read from a named key-value store with get_value, the audit runs, and the new baseline is written back with set_value.

### Repeat runs and the baseline

The first run for a domain stores a baseline and reports BASELINE_CREATED. Later runs with the same startUrl and the same baseline store name report CHANGES_DETECTED or NO_CHANGES, listing new issues, resolved issues and page-level changes such as status, canonical, title, noindex and redirect target. Use the same store name for every run you want compared. An empty store name uses the run's default store, which does not persist between platform runs.

### Output

- Dataset: one summary record, remediation items grouped by issue and ranked by priority, one row per URL and issue, and one record per change
- Key-value store: REPORT.json, OUTPUT, and the CSV files remediation.csv, url-issues.csv and changes.csv
- Each remediation item names the affected URLs, a trend (new, persisting, mixed or baseline) and a recommended fix

### Billing

The Actor emits a single pay-per-event charge named seo-change-report, and only when a repeat run delivers detected changes. Baseline runs, no-change runs and every failed run are not charged. The price itself is set in the Apify Console, not in the code.

### Limits and honesty notes

- This is a sample, not a full crawl, so findings must not be extrapolated to the whole site.
- Static HTML only: tags injected by JavaScript are not seen.
- The health score is a relative indicator for comparing runs of the same sample, not an absolute rating.
- Only audit sites you are allowed to audit. Email-shaped strings are redacted from outputs.

### Example input

```json
{
    "startUrl": "https://www.example.com/",
    "maxPages": 40,
    "stateStoreName": "pal-seo-baselines"
}
```

# Actor input Schema

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

Public HTTPS website root you own or are permitted to audit, for example https://practical-ai-lab.pages.dev/ . Follow robots.txt and do not use private network URLs.

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

Maximum number of pages fetched, including the start page. Selection is a stable hash ranking of sitemap URLs, so repeat runs re-check mostly the same pages.

## `maxSitemapFiles` (type: `integer`):

Maximum sitemap files fetched (an index counts as one). Nested indexes beyond one level are not expanded.

## `maxPageSizeKb` (type: `integer`):

Only this many kilobytes of each page are read. Longer pages are flagged as truncated in the report caveats.

## `maxLinkChecks` (type: `integer`):

How many of the most-linked internal URLs found on sampled pages (and not already sampled) are probed for redirects and errors. 0 disables link probing.

## `requestDelayMs` (type: `integer`):

Minimum pause between requests. A larger robots.txt Crawl-delay (capped at 10 seconds) takes precedence.

## `maxRuntimeSeconds` (type: `integer`):

The crawl stops after this time and reports what it has, marked as partial.

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

Named key-value store that keeps one baseline per domain between runs. Use 3-63 lowercase letters, digits and hyphens, and the same name for every run you want compared. Leave empty to use the run's default store, which does not persist between platform runs.

## `updateBaseline` (type: `boolean`):

When on, each successful run becomes the new comparison point. The first run always stores a baseline.

## Actor input object example

```json
{
  "startUrl": "https://practical-ai-lab.pages.dev/",
  "maxPages": 5,
  "maxSitemapFiles": 1,
  "maxPageSizeKb": 512,
  "maxLinkChecks": 8,
  "requestDelayMs": 700,
  "maxRuntimeSeconds": 180,
  "stateStoreName": "pal-seo-baselines",
  "updateBaseline": true
}
```

# Actor output Schema

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

Download rows from the latest run in JSON/CSV.

# 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://practical-ai-lab.pages.dev/",
    "maxPages": 5,
    "maxSitemapFiles": 1,
    "maxLinkChecks": 8,
    "requestDelayMs": 700,
    "maxRuntimeSeconds": 180,
    "stateStoreName": "pal-seo-baselines"
};

// Run the Actor and wait for it to finish
const run = await client.actor("practical_ai_lab_jp/pal-website-technical-seo-operations-suite").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://practical-ai-lab.pages.dev/",
    "maxPages": 5,
    "maxSitemapFiles": 1,
    "maxLinkChecks": 8,
    "requestDelayMs": 700,
    "maxRuntimeSeconds": 180,
    "stateStoreName": "pal-seo-baselines",
}

# Run the Actor and wait for it to finish
run = client.actor("practical_ai_lab_jp/pal-website-technical-seo-operations-suite").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://practical-ai-lab.pages.dev/",
  "maxPages": 5,
  "maxSitemapFiles": 1,
  "maxLinkChecks": 8,
  "requestDelayMs": 700,
  "maxRuntimeSeconds": 180,
  "stateStoreName": "pal-seo-baselines"
}' |
apify call practical_ai_lab_jp/pal-website-technical-seo-operations-suite --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,practical_ai_lab_jp/pal-website-technical-seo-operations-suite"
        }
    }
}
```

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/I5chrmAZLHOszbigh/builds/i9ofQgQ0lTffYYHeL/openapi.json
