# SEO Audit Crawler — On-Page Issues, Scores & Duplicates (`jeffev/seo-audit-crawler`) Actor

Crawl a whole website and audit every page: title, meta description, H1, canonical, noindex, image alt, Open Graph, structured data, hreflang, thin content, speed and mixed content. Each page gets a 0-100 score and a prioritized issue list, plus a site summary with duplicate titles and descriptions.

- **URL**: https://apify.com/jeffev/seo-audit-crawler.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** SEO tools, 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.40 / 1,000 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 Audit Crawler — On-Page Issues, Scores & Duplicates

Crawl a whole website and get an **on-page SEO audit of every page**, like a lightweight Screaming Frog in the cloud:

- **Title and meta description**: missing, too long (cut in Google), too short, duplicated across pages
- **Headings**: missing H1, multiple H1, duplicate H1
- **Indexing**: noindex (meta robots and X-Robots-Tag), canonical missing or pointing elsewhere, redirects, HTTP errors
- **Content**: word count and thin pages, images without alt text
- **Social and rich results**: Open Graph, Twitter card, structured data types (JSON-LD and microdata), hreflang
- **Technical**: response time, HTML size, HTTPS, mixed content, mobile viewport, click depth, URL hygiene

Each page gets a **0-100 score** and a list of issues ranked **critical / warning / notice**, with a plain-English message. At the end, a **site summary** shows how many pages have each issue, the duplicate titles, descriptions and H1s, the worst pages, and whether robots.txt and sitemaps were found.

No browser, just fast HTTP requests: **hundreds of pages in a couple of minutes for a few cents**. Respects robots.txt by default.

**Who uses it:** SEO agencies auditing prospects and clients, freelancers preparing a proposal, site owners after a redesign or migration, and anyone who wants a scheduled SEO health check.

### Input

Audit up to 500 pages of a site, skipping tag pages:

```json
{
  "startUrls": ["https://example.com"],
  "maxPagesPerSite": 500,
  "excludeUrlPatterns": ["/tag/", "?replytocom="]
}
```

Only the blog section:

```json
{
  "startUrls": ["https://example.com/blog/"],
  "includeUrlPatterns": ["/blog/"],
  "maxPagesPerSite": 200
}
```

You can pass several sites in one run; each one gets its own summary.

### Output

**One item per page** (`type: "page"`):

| Field | Description |
|---|---|
| `url`, `finalUrl`, `statusCode`, `redirectChain` | address, where it ended up, HTTP status |
| `score` | 0-100 (critical -20, warning -7, notice -2) |
| `issues` | list of `{code, severity, message}` |
| `criticalIssues`, `warnings`, `notices` | counts |
| `title`, `titleLength`, `metaDescription`, `metaDescriptionLength` | snippet data |
| `h1`, `h1Count`, `h2Count` | headings |
| `canonical`, `indexable`, `robotsMeta`, `xRobotsTag` | indexing |
| `wordCount`, `images`, `imagesWithoutAlt` | content |
| `internalLinks`, `externalLinks`, `depth` | linking and clicks from the start page |
| `openGraph`, `twitterCard`, `structuredDataTypes`, `hreflang`, `lang` | social, rich results, international |
| `responseTimeMs`, `htmlSizeKb`, `hasViewport` | technical |

**One summary per site** (`type: "site-summary"`, free): `averageScore`, `issueCounts` (pages per issue), `duplicateTitles`, `duplicateDescriptions`, `duplicateH1`, `worstPages`, `robotsTxtFound`, `sitemapsInRobotsTxt`, `blockedByRobotsTxt`.

Issue codes: `http-error`, `unreachable`, `title-missing`, `noindex`, `description-missing`, `h1-missing`, `images-missing-alt`, `viewport-missing`, `slow-response`, `not-https`, `mixed-content`, `canonical-points-elsewhere`, `title-too-long`, `title-too-short`, `description-too-long`, `description-too-short`, `multiple-h1`, `canonical-missing`, `lang-missing`, `thin-content`, `open-graph-missing`, `structured-data-missing`, `redirected`, `deep-page`, `url-too-long`, `url-uppercase-or-underscore`, `large-page`.

### Example output

One real item from a test run (long texts and lists shortened):

```json
{
  "type": "page",
  "url": "https://books.toscrape.com/index.html",
  "finalUrl": "https://books.toscrape.com/index.html",
  "statusCode": 200,
  "depth": 1,
  "responseTimeMs": 20,
  "redirectChain": null,
  "title": "All products | Books to Scrape - Sandbox",
  "titleLength": 40,
  "metaDescription": null,
  "metaDescriptionLength": 0,
  "h1": [
    "All products"
  ],
  "h1Count": 1,
  "h2Count": 0,
  "canonical": null,
  "indexable": true,
  "robotsMeta": "noarchive,nocache",
  "xRobotsTag": null,
  "lang": "en-us",
  "hasViewport": true,
  "wordCount": 320,
  "images": 20,
  "imagesWithoutAlt": 0,
  "imagesWithoutAltSample": [],
  "internalLinks": 73
}
```

### Tips

- Export the dataset to **CSV or Excel** and sort by `score` to get a prioritized to-do list.
- Use **Schedule** to re-audit monthly and catch regressions after deploys.
- Pages rendered only by JavaScript (some single-page apps) show little content here, because the crawler reads the HTML the server sends, like most search engine first passes do.
- Pair it with the **Broken Link Checker** for 404s and dead external links.

### Feedback

Found a problem or need another check? Open an issue in the **Issues** tab: every issue is read and answered. If the actor helped you, a review on the Store helps a lot.

### How much does it cost?

You pay only for results delivered, at a fixed price per item. **Apify platform usage is included** in that price, so there are no compute costs on top. Errors and items that couldn't be found are free.

| What you get | Price | Example |
|---|---|---|
| Page audited | $0.002 each | 1,000 page auditeds = $2.00 |

The Apify **Free plan includes $5 of monthly credit**, enough for about **2,500 page auditeds** per month at no cost. You can also set a maximum spend per run.

On paid Apify plans it gets cheaper automatically: **10% off on Starter, 20% on Scale and 30% on Business**.

# Actor input Schema

## `startUrls` (type: `array`):

Home page (or any start page) of each site. The crawler follows internal links from there.

## `maxPagesPerSite` (type: `integer`):

Stop after auditing this many pages of each site. You pay per page audited.

## `includeUrlPatterns` (type: `array`):

Audit only pages whose URL contains one of these texts (e.g. '/blog/'). Empty = whole site.

## `excludeUrlPatterns` (type: `array`):

Skip pages whose URL contains one of these texts (e.g. '/tag/', '?page=', '/cart').

## `includeSubdomains` (type: `boolean`):

Also crawl subdomains (blog.example.com when starting at example.com).

## `respectRobotsTxt` (type: `boolean`):

Skip pages blocked by the site's robots.txt. Turn off only for sites you own.

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

Pages fetched at the same time. Keep it low for small servers.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com"
  ],
  "maxPagesPerSite": 30,
  "includeSubdomains": false,
  "respectRobotsTxt": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One item per page (type 'page') and one site summary per site (type 'site-summary').

# 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 = {
    "startUrls": [
        "https://books.toscrape.com"
    ],
    "maxPagesPerSite": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/seo-audit-crawler").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 = {
    "startUrls": ["https://books.toscrape.com"],
    "maxPagesPerSite": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("jeffev/seo-audit-crawler").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 '{
  "startUrls": [
    "https://books.toscrape.com"
  ],
  "maxPagesPerSite": 30
}' |
apify call jeffev/seo-audit-crawler --silent --output-dataset

```

## MCP server setup

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

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/f4ff1of6yIFV1z9gz/builds/fXmKDvv2cVh8pHbzi/openapi.json
