# SEO Audit Crawler: On-Page SEO Checker for Any Website (`joesimo/seo-audit`) Actor

Crawl a website and audit every page for on-page SEO: titles, meta descriptions, H1s, canonicals, noindex, hreflang, Open Graph, schema markup, image alt text, thin content, slow pages and duplicate titles. Issue codes, page scores and a site summary. No login.

- **URL**: https://apify.com/joesimo/seo-audit.md
- **Developed by:** [Joe Simo](https://apify.com/joesimo) (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

$2.00 / 1,000 pages

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/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 SEO Checker for Any Website

Crawl a website and audit every page for on-page SEO problems. You get one row per page with the measured values (title, meta description, H1s, canonical, robots and noindex, hreflang, Open Graph, schema markup types, image alt text, word count, status code, response time, page size), a list of issue codes with severity, a 0 to 100 page score, and one site summary row with the top issues across the site. Duplicate titles and meta descriptions are found across pages.

Plain HTTP, no browser, no login, no proxy. Respects robots.txt by default.

### What it checks

| Area | Issue codes |
|---|---|
| Indexing | `http_error`, `noindex` (meta robots, googlebot or X-Robots-Tag header), `nofollow_page`, `canonical_missing`, `canonical_other_page`, `canonical_mismatch_host`, `redirected` |
| Titles and descriptions | `title_missing`, `title_too_short`, `title_too_long` (30 to 60 characters), `title_duplicate`, `meta_description_missing`, `meta_description_too_short`, `meta_description_too_long` (70 to 160), `meta_description_duplicate` |
| Headings and content | `h1_missing`, `h1_multiple`, `h_skip_level`, `thin_content` (under 250 words), `images_missing_alt` |
| International and mobile | `lang_missing`, `hreflang_invalid`, `viewport_missing` |
| Social and schema | `og_missing`, `twitter_card_missing`, `structured_data_missing`, `structured_data_invalid` (JSON-LD that does not parse) |
| Speed and security | `slow_response` (over 3 s), `heavy_page` (HTML over 2 MB), `not_https`, `mixed_content` |
| URLs | `url_too_long`, `url_uppercase`, `url_underscore` |
| Site level (summary row) | `robots_txt_missing`, `sitemap_missing` |

Severities: error (costs 15 points), warning (5), notice (1). A page with no issues scores 100.

### Input

```json
{
    "startUrls": [{ "url": "https://crawlee.dev" }],
    "maxPagesPerSite": 100,
    "maxDepth": 10,
    "outputMode": "all"
}
```

- `startUrls`: one or more websites. The crawler stays on the same host (www and non-www count as one).
- `maxPagesPerSite`: pages audited per site (also your cost cap per site).
- `outputMode`: `all` (every page plus summary), `issues` (pages with errors or warnings plus summary) or `summary` (one row per site).
- `excludePatterns`: skip URLs containing text like `/tag/` or matching `/regex/`.
- `ignoreQueryStrings` (on by default), `respectRobotsTxt` (on), `concurrency` (5), `timeoutSecs` (20).

Empty input `{}` runs a free-to-try demo on 10 pages of crawlee.dev.

### Output

Page row from a real cloud run (issues list shortened to 2 of 4):

```json
{
    "type": "page",
    "url": "https://crawlee.dev/blog",
    "statusCode": 200,
    "score": 80,
    "errors": 0,
    "warnings": 4,
    "notices": 0,
    "issueCodes": [
        "title_too_long",
        "h1_missing",
        "title_duplicate",
        "meta_description_duplicate"
    ],
    "issues": [
        {
            "code": "title_too_long",
            "severity": "warning",
            "detail": "107 characters (aim for 30 to 60)"
        },
        {
            "code": "h1_missing",
            "severity": "warning",
            "detail": null
        }
    ],
    "title": "Crawlee Blog - learn how to build better scrapers | Crawlee for JavaScript · Build reliable crawlers. Fast.",
    "titleLength": 107,
    "metaDescriptionLength": 151,
    "h1Count": 0,
    "h2Count": 12,
    "canonicalUrl": "https://crawlee.dev/blog",
    "canonicalIsSelf": true,
    "indexable": true,
    "lang": "en",
    "ogImage": "https://crawlee.dev/img/crawlee-js-og.png",
    "twitterCard": "summary_large_image",
    "structuredDataTypes": [
        "Blog"
    ],
    "imageCount": 28,
    "imagesMissingAlt": 0,
    "internalLinks": 88,
    "externalLinks": 49,
    "wordCount": 1108,
    "responseTimeMs": 573,
    "pageSizeBytes": 66715
}
```

Site summary row: `pagesAudited`, `averageScore`, `pagesWithErrors`, `pagesWithWarnings`, `nonIndexablePages`, `issueCounts` (pages per issue code), `topIssues`, `robotsTxtFound`, `sitemapUrls`, `sitemapStatus`, `stopReason`.

Export to CSV, Excel or JSON from the dataset, or call it from the Apify API, Make, Zapier or n8n.

### Pricing

Pay per event: **$0.002 per page audited** ($2 per 1,000 pages). Only HTML pages that answer with a 2xx status are charged. 404 and 5xx rows, network errors, non-HTML files, pages skipped by robots.txt, the summary row and the robots.txt and sitemap checks are free. Set "Maximum cost per run" and the crawl stops exactly at that budget.

### Use cases

- Monthly technical SEO check of your own site or a client site, exported to a spreadsheet.
- Find every page with a missing or duplicate title or meta description before a launch.
- Catch noindex tags and wrong canonicals left over from staging.
- Check schema markup coverage (Product, Article, FAQPage, BreadcrumbList) across a site.
- Feed page facts to an AI agent or a dashboard through the API.

### Limits and notes

- Reads the HTML the server sends. Content that only appears after JavaScript runs is not seen (most CMS, ecommerce and documentation sites render on the server).
- Speed numbers are server response times from the Apify cloud, not Core Web Vitals.
- Use it on sites you own or manage, or on public pages in line with each site's terms. The crawler identifies itself with a descriptive User-Agent, respects robots.txt and keeps a gap between requests per host.
- Not affiliated with Google or any search engine.

Questions or a check you want added: joesimo@mail.grokbot.com

# Actor input Schema

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

Home page or any page of each website. The crawler follows internal links on the same host (www and non-www count as one) and audits every HTML page it reaches.

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

Upper limit of pages audited per site. Each audited HTML page is one paid event, so this also caps cost per site.

## `maxDepth` (type: `integer`):

Clicks from the start page. 0 audits only the start page.

## `outputMode` (type: `string`):

All pages: one row per audited page plus a site summary. Pages with problems: only pages with errors or warnings, plus the summary. Summary only: one row per site.

## `excludePatterns` (type: `array`):

Pages matching any of these are not crawled. Plain text matches anywhere in the URL (case insensitive); /regex/ also works. Example: /tag/, /page/

## `ignoreQueryStrings` (type: `boolean`):

Treat /page?a=1 and /page as the same page. Keeps faceted and tracking URLs from filling the page budget.

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

Skip pages that robots.txt disallows for all user agents. Turn off only for a site you own.

## `concurrency` (type: `integer`):

Pages fetched at the same time, with a short gap per host. Keep it low for small sites.

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

Time allowed for each page.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPagesPerSite": 100,
  "maxDepth": 10,
  "outputMode": "all",
  "ignoreQueryStrings": true,
  "respectRobotsTxt": true,
  "concurrency": 5,
  "timeoutSecs": 20
}
```

# Actor output Schema

## `pages` (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 = {
    "startUrls": [
        {
            "url": "https://crawlee.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("joesimo/seo-audit").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": [{ "url": "https://crawlee.dev" }] }

# Run the Actor and wait for it to finish
run = client.actor("joesimo/seo-audit").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": [
    {
      "url": "https://crawlee.dev"
    }
  ]
}' |
apify call joesimo/seo-audit --silent --output-dataset

```

## MCP server setup

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

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/iv7bPCnajIejeM5zr/builds/OCUm9xqap3V1OBSiO/openapi.json
