# Website Landing Page Quality Command Center (`practical_ai_lab_jp/pal-website-landing-page-quality-command-center`) Actor

Audit robots-permitted sitemap landing pages for broken calls to action, noindex, metadata regressions, missing trust links, mobile and media issues, and track changes against a dated baseline.

- **URL**: https://apify.com/practical_ai_lab_jp/pal-website-landing-page-quality-command-center.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, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 audit 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

## Website Landing Page Quality Command Center

Audit the landing pages listed in a public sitemap and learn what changed since the last run. The Actor reads `robots.txt`, samples sitemap pages with a landing-page heuristic, checks each page's static HTML, and compares the result with a baseline saved from your previous run. Every run produces a ranked fix-first list with a plain-language action for each finding.

### Who it is for

Marketing, growth and web teams, agencies and site owners who need to know when a landing page quietly breaks: a call-to-action button that leads to a 404, a stray noindex tag, a removed title or description, a missing privacy link, or a page that stopped working on phones.

### What it checks

- **Conversion paths:** empty, insecure or broken call-to-action targets on the same site, missing section anchors, pages with no call to action.
- **Search visibility:** sitemap pages that return errors, redirect off-site, are noindex (meta tag or header), or have off-site or mismatched canonical tags.
- **Metadata integrity:** missing or badly sized titles and descriptions, H1 problems, language attribute, social preview tags, duplicate titles, and metadata that was removed or changed since the baseline.
- **Trust and experience:** privacy, terms and contact links, mobile viewport problems, image alt text and dimensions, mixed HTTP content.

### How the repeat-run baseline works

The first run for a domain stores a baseline in a named key-value store (default `pal-landing-page-baselines`) using the Apify key-value store `get_value` and `set_value` calls. Later runs load it and label every finding as new, worsened or unchanged, and list findings that were resolved.

- **Rolling mode** compares with the previous run, then stores the new result.
- **Pinned mode** keeps comparing with the first stored baseline until you reset it.
- **Reset baseline** discards the stored baseline for the domain and starts over.

Run statuses are `BASELINE_CREATED`, `CHANGES_DETECTED` and `NO_CHANGES`. Failed runs (for example robots blocking or a missing sitemap) report a clear failure status and are never billable.

### Output

The dataset starts with one `RUN_SUMMARY` record, followed by one `PAGE_REPORT` record per page that has findings. Pages are ranked by risk score, so the first rows are the pages to fix first. Each page lists findings with severity, evidence, change type and a recommended action, plus the top actions as `buyerActions`. The run summary groups results into four buyer outcomes with the most affected pages. A `REPORT.json` and a `REPORT.csv` file are also saved in the run's key-value store.

### Input

Only `startUrl` is required: the public HTTPS root of a site you own or are allowed to audit, for example `https://www.example.com`. Optional settings include the maximum number of pages, path include and exclude fragments, minimum severity to report, baseline mode, link-check budget, sitemap file limit, request delay and timeout.

### Safety and politeness

- Only HTTPS on the default port is used. Credentials, IP addresses, local names and private networks are rejected.
- Each hostname is resolved before connecting, every address must be public, and the connection is pinned to the vetted address (SSRF protection).
- Redirects are followed only within the same host and are re-checked against robots rules.
- `robots.txt` is fetched first. Disallowed pages are not requested, crawl-delay is honoured, and an unreadable robots file stops the run.
- Sitemap XML containing DOCTYPE or entity declarations is rejected.
- Emails and phone numbers found in pages are redacted from output. Only public pages are requested, never other sites.

### Limitations

The audit reads static HTML only and does not run JavaScript. It audits a bounded sample, not the whole site. Call-to-action detection is heuristic, and length guidelines are conventions, not search-engine rules. Findings are technical observations and do not measure traffic or revenue. Compressed `.gz` sitemaps are not read.

# Actor input Schema

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

Public HTTPS site root such as https://www.example.com (no path, query or fragment). The final host must match: redirects to another host are rejected, so use the canonical host (for example the www version if that is where the site lives).

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

Upper bound on pages fetched, including the home page. The sample is picked from the sitemap with a landing-page heuristic, so this is a sample and not a full-site crawl.

## `pathIncludes` (type: `array`):

If set, sitemap URLs must contain at least one of these case-insensitive fragments, for example /pricing or /lp/. The home page is always audited.

## `pathExcludes` (type: `array`):

Case-insensitive path fragments to skip, for example /blog/ or /careers.

## `minSeverity` (type: `string`):

Lower-severity findings are still stored in the baseline but hidden from the report and from billing decisions.

## `baselineMode` (type: `string`):

Rolling compares with the previous run and then stores the new result. Pinned keeps comparing with the first stored baseline until you reset it.

## `resetBaseline` (type: `boolean`):

Discard the stored baseline for this domain and create a new one from this run.

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

Budget of extra same-site requests used to verify call-to-action targets. Set 0 to skip target checks. Links to other sites are never contacted.

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

Limits how many sitemap and sitemap-index files are fetched.

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

Minimum pause between requests to the site. A larger crawl-delay in robots.txt is applied automatically.

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

Maximum time to wait for each request to the site before it is recorded as a fetch failure.

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

Named key-value store that keeps one baseline per domain between runs. Change it only to keep separate baseline sets (lowercase letters, digits and hyphens).

## Actor input object example

```json
{
  "startUrl": "https://apify.com",
  "maxPages": 10,
  "minSeverity": "low",
  "baselineMode": "rolling",
  "resetBaseline": false,
  "maxLinkChecks": 40,
  "maxSitemapFiles": 5,
  "requestDelayMs": 500,
  "requestTimeoutSecs": 15,
  "stateStoreName": "pal-landing-page-baselines"
}
```

# 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://apify.com",
    "maxPages": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("practical_ai_lab_jp/pal-website-landing-page-quality-command-center").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://apify.com",
    "maxPages": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("practical_ai_lab_jp/pal-website-landing-page-quality-command-center").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://apify.com",
  "maxPages": 10
}' |
apify call practical_ai_lab_jp/pal-website-landing-page-quality-command-center --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-landing-page-quality-command-center"
        }
    }
}
```

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/l19S7fEiAXeqvgvA7/builds/B9WeefzMRVbKsWWX2/openapi.json
