# SEO Audit Crawler — On-Page Score, Issues & Fixes per Page (`docflow-tools/seo-audit-crawler-cheap`) Actor

Crawl a website and get a 0-100 on-page SEO score per page, each issue with severity and fix: title, meta description, H1, canonical, noindex, schema, alt text, thin and mixed content. Site report with duplicate titles and broken links. Respects robots.txt.

- **URL**: https://apify.com/docflow-tools/seo-audit-crawler-cheap.md
- **Developed by:** [DocFlow Tools](https://apify.com/docflow-tools) (community)
- **Categories:** SEO tools, Agents, 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 $3.20 / 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 Score, Issues & Fixes per Page

Crawl a website and get, for every page, a 0-100 on-page SEO score and the list of issues found, each with a
severity (critical, high, medium, low), a message and how to fix it. The crawl stays on the same domain, respects
`robots.txt` by default and works over plain HTTP (no browser), which keeps it fast and cheap. At the end you also
get a site report with the average score, duplicate titles and descriptions, broken internal links and issue counts.
Pages that return an error are reported as findings and are not charged.

### What you get

- **One dataset row per page** with the score, the issues and the data behind them: title and length, meta
  description and length, H1 headings, H2 count, canonical, robots directives, `lang`, hreflang, JSON-LD schema
  types, image and missing-alt counts, internal and external link counts, word count, response time and HTML size.
- **22 issue codes** (table below), each with a severity and a fix.
- **Site report** (`SITE_REPORT` in the key-value store): pages audited, average score, duplicate titles, duplicate
  meta descriptions, broken internal links and how many pages have each issue.
- **Clean crawl:** same domain only (`www.` and the bare domain count as the same site), `robots.txt` respected,
  files such as PDF, images, CSS, JS, ZIP and Office documents skipped, `#fragments` and tracking parameters
  (`utm_*`, `gclid`, `fbclid`, `mc_cid`, `mc_eid`, `_hs*`, `ref`) removed so the same page is not audited twice.

### Checks and severity

| Code | Severity | What it means |
|---|---|---|
| `http-error` | critical | The page returns HTTP 400 or higher. |
| `fetch-error` | critical | The page could not be fetched (timeout, DNS, blocked address). Score is 0. |
| `title-missing` | critical | No `<title>`. |
| `noindex` | high | `noindex` in the meta robots tag or the `X-Robots-Tag` header. |
| `h1-missing` | high | No `<h1>` heading. |
| `viewport-missing` | high | No mobile viewport meta tag. |
| `mixed-content` | high | HTTPS page loads `http://` resources (images, scripts, iframes, media, stylesheets, icons, preloads). Links to other pages do not count. |
| `title-short` | medium | Title shorter than 15 characters. |
| `description-missing` | medium | No meta description. |
| `canonical-missing` | medium | No `<link rel="canonical">`. |
| `img-alt-missing` | medium | One or more images have no `alt` attribute (`alt=""` is accepted as decorative). |
| `thin-content` | medium | Fewer than 250 words of text (scripts and styles excluded). Not checked on error pages. |
| `slow-response` | medium | The response took more than 3 seconds. |
| `title-long` | low | Title longer than 60 characters. |
| `description-long` | low | Meta description longer than 160 characters. |
| `description-short` | low | Meta description shorter than 50 characters. |
| `h1-multiple` | low | More than one `<h1>`. |
| `canonical-other` | low | The canonical points to a different URL. |
| `lang-missing` | low | No `lang` attribute on `<html>`. |
| `og-missing` | low | No Open Graph title (`og:title`). |
| `schema-missing` | low | No JSON-LD structured data. |
| `html-heavy` | low | HTML larger than about 1.5 MB. |

#### How the score is computed

Each page starts at 100. Each issue subtracts its weight: **critical 25, high 10, medium 5, low 2**. The score never
goes below 0. Example: missing meta description (medium, 5) + no Open Graph title (low, 2) + no JSON-LD (low, 2) =
100 − 9 = **91**.

The length and word-count thresholds are common SEO guidelines, not Google rules. Use the score to compare pages and
track progress, not as a ranking prediction.

### Use cases

- Find the pages of a site with missing titles, descriptions, H1s or canonicals, sorted by score.
- Detect pages set to `noindex` by mistake and broken internal links before or after a migration.
- Find duplicate titles and meta descriptions across a site.
- Run it on a schedule and compare the average score between runs.
- Give clients or teammates a list of concrete fixes per URL.

### How to use

1. Open the Actor in Apify Console and click **Try for free** / **Start**.
2. In **Websites**, add the home page (or any page) of each site to audit.
3. Set **Max pages** to the most pages you want to audit and pay for.
4. Optionally turn off **Follow internal links** to audit only the URLs you list, or add **Skip URLs matching**.
5. Run it. Pages are in the **Output** tab; the site report is the `SITE_REPORT` record in the key-value store.

#### Input example

```json
{
  "startUrls": ["https://www.example.com"],
  "maxPages": 200,
  "crawlLinks": true,
  "respectRobotsTxt": true,
  "excludePatterns": ["/tag/", "\\?page="]
}
```

| Field | Type | Default | Meaning |
|---|---|---|---|
| `startUrls` | array of strings | required | Start page of each site. A URL without `https://` gets it added. |
| `maxPages` | integer (1-100,000) | 100 | Stop after this many pages in total (all sites, error pages included). |
| `crawlLinks` | boolean | true | Follow internal links. Off = audit only the listed URLs. |
| `respectRobotsTxt` | boolean | true | Skip pages that `robots.txt` disallows. |
| `excludePatterns` | array of regex | none | Links matching any pattern are not crawled. |

### Output example

One item per page (long values shortened):

```json
{
  "url": "https://www.example.com/blog/",
  "statusCode": 200,
  "score": 86,
  "title": "Blog | Example",
  "titleLength": 14,
  "metaDescription": "News, guides and updates from the Example team.",
  "descriptionLength": 47,
  "h1": ["Blog"],
  "h2Count": 12,
  "canonical": "https://www.example.com/blog/",
  "robots": null,
  "lang": "en",
  "hreflang": [],
  "schemaTypes": ["Organization", "WebSite"],
  "images": 14,
  "imagesWithoutAlt": 3,
  "internalLinks": 58,
  "externalLinks": 6,
  "wordCount": 1240,
  "responseSeconds": 0.42,
  "htmlBytes": 96512,
  "issues": [
    { "code": "title-short", "severity": "medium", "message": "Title is only 14 characters.", "fix": "Describe the page in 30-60 characters." },
    { "code": "description-short", "severity": "low", "message": "Meta description is only 47 characters.", "fix": "Use 70-160 characters." },
    { "code": "img-alt-missing", "severity": "medium", "message": "3 of 14 images have no alt attribute.", "fix": "Add alt text that describes each image (alt=\"\" for decorative ones)." },
    { "code": "og-missing", "severity": "low", "message": "No Open Graph title.", "fix": "Add og:title, og:description and og:image for social sharing." }
  ],
  "depth": 1
}
```

`depth` is the number of link hops from the start URL. When the page redirected, `finalUrl` holds the address it
ended on.

The `SITE_REPORT` record:

```json
{
  "pagesAudited": 200,
  "averageScore": 78.4,
  "duplicateTitles": { "Example": ["https://www.example.com/", "https://www.example.com/home"] },
  "duplicateDescriptions": {},
  "brokenInternalLinks": [{ "from": "https://www.example.com/blog/", "to": "https://www.example.com/old-page" }],
  "issueCounts": { "schema-missing": 150, "og-missing": 90, "thin-content": 42 },
  "skippedByRobotsTxt": 3,
  "skippedByExcludePatterns": 27,
  "reachedMaxPages": true,
  "pagesNotVisited": 315
}
```

### Pricing

> **Prices by Apify discount tier:** the prices below are for the Bronze tier. **Free plan: 50 % off.** Silver: 10 % off. Gold and higher: 20 % off. Apify applies the right price automatically.

Pay per event, in USD:

| Event | Price | When |
|---|---|---|
| Actor start | $0.00005 | Charged by Apify when a run starts, per GB of run memory (default memory: 512 MB) |
| `page-audited` | $0.004 | For each page that responds with a status below 400. |

Not charged: pages returning 4xx/5xx, pages that cannot be fetched (they appear in the dataset as findings), pages
skipped by `robots.txt` or `excludePatterns`, and non-HTML files.

**Control spend with `maxPages`.** The default is 100 pages; the maximum is 100,000. The run also stops cleanly if it
reaches the maximum cost per run you set in Apify.

Examples:

- 50 pages: $0.00005 + 50 × $0.004 = **$0.20005**
- 500 pages: $0.00005 + 500 × $0.004 = **$2.00005**
- `maxPages: 100`, of which 8 return 404: $0.00005 + 92 × $0.004 = **$0.36805** (the 8 error pages are free but
  count toward `maxPages`).

### Use it from code, AI agents and integrations

**Apify API (one call, returns the dataset items):**

```bash
curl -X POST "https://api.apify.com/v2/acts/docflow-tools~seo-audit-crawler-cheap/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://www.example.com"], "maxPages": 20}'
```

Synchronous endpoints wait a limited time; for large crawls start the run asynchronously and read the results when
it finishes.

**Python (`apify-client`):**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("docflow-tools/seo-audit-crawler-cheap").call(
    run_input={"startUrls": ["https://www.example.com"], "maxPages": 100}
)
for page in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(page["score"], page["url"], [i["code"] for i in page["issues"]])

report = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SITE_REPORT")["value"]
print(report["averageScore"], report["brokenInternalLinks"][:5])
```

**AI agents:** the Actor can be called by AI agents through the Apify MCP server at https://mcp.apify.com.

**No-code:** connect it to Make, Zapier, n8n and other tools through Apify integrations, or schedule it in Apify.

### Limits and notes

- **No JavaScript rendering.** Pages are fetched over HTTP and the HTML is analysed as served. Content or tags added
  by JavaScript after load are not seen, so sites built fully on the client side may show thin content or missing
  tags.
- Same domain only: links to other hosts or subdomains are counted as external, not crawled.
- `robots.txt` is respected by default (user agent token `SEOAuditBot`). If a site has no `robots.txt`, all pages
  are allowed.
- Only `http` and `https` URLs are fetched; domains that resolve to private, loopback, link-local or other internal
  addresses are blocked.
- `excludePatterns` apply to discovered links, not to the start URLs.
- Up to 5 pages are fetched in parallel, with a 30-second timeout per request. Only the first 5 MB of each page's
  HTML is analysed.
- Broken internal links are pages crawled in the same run that returned 400 or higher; the list keeps the first
  1,000. Links that were never crawled (for example, beyond `maxPages`) are not checked.
- Duplicate titles and descriptions are computed over the pages audited in the run, error pages included.

### FAQ

**Am I charged for 404 pages?**
No. Pages with status 400 or higher, and pages that cannot be reached, are written to the dataset as findings for
free. They do count toward `maxPages`.

**Can I audit only a list of URLs?**
Yes. Set `crawlLinks` to `false` and put the URLs in `startUrls`.

**Is the score the same as Google's?**
No. It is a simple sum of weighted issues based on common on-page SEO guidelines. It is not a Google metric and it
does not include performance metrics such as Core Web Vitals.

**Does it check page speed?**
Only server response time (`slow-response` above 3 seconds) and HTML size. For lab and field performance data, use
the PageSpeed tool listed below.

**Can I audit several sites in one run?**
Yes. Add several start URLs; each crawl stays within its own domain. `maxPages` is a total for the whole run.

### Related tools

- [Document to Markdown for RAG](https://apify.com/docflow-tools/document-to-markdown-rag) — PDF, Word, Excel, PowerPoint and HTML files to Markdown with tables and RAG chunks; OCR for scanned pages.
- [RSS, Atom & JSON Feed Reader — only new items](https://apify.com/docflow-tools/feed-reader-only-new) — read feeds in one format and get only items you have not received before.
- [Bulk PageSpeed & Core Web Vitals](https://apify.com/docflow-tools/pagespeed-bulk-regression-monitor) — PageSpeed Insights for many URLs (your own free key), with alerts when pages get worse.
- [Image to Text OCR](https://apify.com/docflow-tools/image-ocr-own-engine) — text from images with each line, its position and confidence.
- [Audio & Video Transcriber](https://apify.com/docflow-tools/audio-transcriber-whisper-local) — Whisper running locally; text, timestamps, SRT and VTT.
- [Merge, Deduplicate & Convert Datasets](https://apify.com/docflow-tools/merge-dedupe-transform-data) — merge datasets and CSV/JSON/Excel files, remove duplicates, export to CSV or Excel.
- [Website Screenshot & Visual Change Monitor](https://apify.com/docflow-tools/website-screenshot-monitor) — bulk screenshots (PNG, JPEG, PDF) with optional change detection.
- [Bulk Image Converter & Compressor](https://apify.com/docflow-tools/bulk-image-converter-compressor) — convert, compress and resize images to WebP, AVIF, JPEG or PNG.
- [Sitemap URL Extractor](https://apify.com/docflow-tools/sitemap-url-extractor-reliable) — every URL from a site's sitemaps, with lastmod, images and hreflang.
- [Website to Markdown + llms.txt](https://apify.com/docflow-tools/website-to-markdown-llms-txt) — websites to clean Markdown for LLMs and RAG, plus llms.txt files.

# Actor input Schema

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

Home page (or any page) of each site to audit. The crawl stays on the same domain.

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

Stop after this many pages in total. You are charged only for pages that respond.

## `crawlLinks` (type: `boolean`):

Off = audit only the URLs you list.

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

Skip pages that robots.txt disallows (recommended).

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

Regular expressions for URLs not to crawl (e.g. /tag/, ?page=).

## Actor input object example

```json
{
  "startUrls": [
    "https://www.python.org"
  ],
  "maxPages": 5,
  "crawlLinks": true,
  "respectRobotsTxt": true
}
```

# Actor output Schema

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

No description

## `report` (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": [
        "https://www.python.org"
    ],
    "maxPages": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("docflow-tools/seo-audit-crawler-cheap").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://www.python.org"],
    "maxPages": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("docflow-tools/seo-audit-crawler-cheap").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://www.python.org"
  ],
  "maxPages": 5
}' |
apify call docflow-tools/seo-audit-crawler-cheap --silent --output-dataset

```

## MCP server setup

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

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/3OnyEWFUabSZXVFGj/builds/C35Wy7aQoePjA7T19/openapi.json
