# SSR vs JS SEO Checker (Noindex, Canonical, JSON-LD, Shadow DOM) (`indexsentinel/ssr-js-seo-regression-checker`) Actor

Compare raw server HTTP headers/HTML against headless Chromium rendered DOM & open Shadow DOM to catch hydrated noindex, canonical drift, and dropped JSON-LD.

- **URL**: https://apify.com/indexsentinel/ssr-js-seo-regression-checker.md
- **Developed by:** [IndexSentinel](https://apify.com/indexsentinel) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 url checked (ssr + chromium js seo diff)s

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/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

## SSR vs. JS-Rendered SEO Regression Checker (Noindex, Canonical, JSON-LD & Shadow DOM)

Powered by **[IndexSentinel](https://indexsentinelapp.com/)** (`logo-512.png` in `Brand_Assets/official/logo-512.png`). Also available as a free 15s live web tool on **[indexsentinelapp.com/ssr-vs-js-seo-checker](https://indexsentinelapp.com/ssr-vs-js-seo-checker)** with continuous 15-minute monitoring and white-label client PDFs.

Compares **raw server HTML + HTTP headers (SSR)** against **real headless Chromium rendered DOM + open Shadow DOM** across lists of public URLs—flagging silent regressions that plain `curl`/HTML-only crawlers miss.

### What It Catches per URL

- **Hydrated `noindex` (`js_hydrated_noindex`):** Raw HTML says `index, follow`, but React/Next.js/client JS mutates `<meta name="robots">` to `noindex` after load.
- **SSR indexing blockers (`x_robots_noindex`, `ssr_meta_noindex`, `robots_txt_disallow_all`, `http_status_error`).**
- **Canonical drift (`canonical_offdomain_drift`, `js_canonical_drift`):** SSR vs. hydrated canonical domain or path mismatches.
- **Structured data loss (`jsonld_dropped_in_js`, `jsonld_malformed`):** `application/ld+json` `@type` present in SSR HTML but missing or malformed after JS hydration.
- **Redirect chains/loops, broken declared sitemaps, missing `<title>`, and TLS expiry `< 14 days`.**
- **WAF 403/429 suppression:** Classifies Cloudflare/Akamai/bot challenges as `waf_protected` instead of fake outage alerts.
- **Zero-charge SSRF protection:** Internal/private/metadata targets are blocked (`blocked_ssrf`) and never trigger Pay-Per-Event charges.

### Monetization Setup (Apify Pay-Per-Event)

- Event name emitted in `src/main.py`: **`url-checked`** (triggered via `Actor.push_data([item], charged_event_name="url-checked")` only for valid scanned targets).
- Suggested store price: **`$0.01` per `url-checked`** (`$10.00 / 1,000 URLs`).

### Sample Dataset Output

```json
{
  "inputUrl": "https://example.com",
  "url": "https://example.com/",
  "status": "clean",
  "incidentCount": 0,
  "incidentCodes": [],
  "ssrStatusCode": 200,
  "ssrMetaRobots": [],
  "jsStatusCode": 200,
  "jsMetaRobots": [],
  "robotsTxtBlocksAll": false,
  "sslDaysRemaining": 85,
  "durationMs": 2910
}
```

### How to Publish on Apify Console (Once Account Is Ready)

1. Install Apify CLI locally (`npm i -g apify-cli`) and run `apify login`.
2. Inside `Apify_Actor_SSR_JS_SEO/`, run `apify push`.
3. In Apify Console -> Actor -> **Publication / Monetization**, select **Pay per event**, add event `url-checked` at your target price (`$0.01`), and publish to Apify Store.

# Actor input Schema

## `urls` (type: `array`):

Public HTTP/HTTPS page URLs to compare raw server HTML (SSR) against headless Chromium JS-rendered DOM + Shadow DOM.

## `checkJs` (type: `boolean`):

Disable only if you want fast raw HTTP header/HTML checks without Playwright rendering.

## `checkDomainFiles` (type: `boolean`):

Inspects /robots.txt (including declared Sitemap: headers) and TLS certificate days remaining.

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

Parallelism cap (1-4) to stay within memory limits and avoid target rate limits.

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

Hard cap on the number of unique URLs scanned in a single run.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "checkJs": true,
  "checkDomainFiles": true,
  "maxConcurrency": 2,
  "maxUrls": 100
}
```

# Actor output Schema

## `resultsDataset` (type: `string`):

Default dataset containing per-URL SSR vs. JS status, incident codes, robots, canonical, JSON-LD, sitemap, and SSL metrics.

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

// Run the Actor and wait for it to finish
const run = await client.actor("indexsentinel/ssr-js-seo-regression-checker").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 = { "urls": ["https://example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("indexsentinel/ssr-js-seo-regression-checker").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 '{
  "urls": [
    "https://example.com"
  ]
}' |
apify call indexsentinel/ssr-js-seo-regression-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,indexsentinel/ssr-js-seo-regression-checker"
        }
    }
}
```

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/bwVWitnOvEnKX5Pm0/builds/oPL2H6azgj8MGkKHh/openapi.json
