# SEO Audit Crawler - Site Audit with Score & Issues (`wholesome_spring/seo-audit-crawler`) Actor

Crawl a website and audit every page: status codes, redirects, titles, meta descriptions, H1s, canonicals, noindex, Open Graph, alt text, thin content and speed. SEO score per page plus a site report. $0.99 per 1,000 pages.

- **URL**: https://apify.com/wholesome_spring/seo-audit-crawler.md
- **Developed by:** [Czech Data Tools](https://apify.com/wholesome_spring) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 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 - Site Audit with Score & Issues

Run a **technical and on-page SEO audit** of any website. The crawler follows internal links, checks every page and gives each one an **SEO score (0-100)** with a clear list of issues. A site-level **REPORT** adds issue totals, duplicate titles and duplicate meta descriptions.

### Why this audit

- **Cheap:** $0.99 per 1,000 pages audited. Other SEO audit tools charge $40 per 1,000 pages.
- **Fast:** plain HTTP, no headless browser.
- **Actionable:** every page gets an `issues` list you can filter and sort in Excel or Google Sheets.
- **Polite:** respects robots.txt and crawl-delay.

### What is checked on every page

| Area | Checks |
|---|---|
| Status | HTTP status, broken pages (4xx), server errors (5xx), redirects and redirect chains, the page that links to a broken URL |
| Speed & size | Server response time, HTML size |
| Titles | Missing, too long (>60), too short (<20), duplicates |
| Meta description | Missing, too long (>160), too short (<70), duplicates |
| Headings | Missing H1, multiple H1s, H2 count |
| Indexing | meta robots noindex/nofollow, canonical missing or pointing elsewhere, hreflang count |
| Mobile & social | Viewport tag, html lang, Open Graph title/image, Twitter card |
| Content | Word count, thin content, images missing alt text |
| Links | Internal, external and nofollow link counts |
| Structured data | JSON-LD @types found (Product, Article, FAQPage...) and invalid JSON-LD |

### Output (one item per page)

```json
{
  "url": "https://example.com/pricing",
  "finalUrl": "https://example.com/pricing",
  "statusCode": 200,
  "responseTimeMs": 412,
  "title": "Pricing - Example",
  "titleLength": 17,
  "metaDescription": null,
  "h1Count": 2,
  "canonical": "https://example.com/pricing",
  "wordCount": 240,
  "imagesMissingAlt": 3,
  "structuredDataTypes": ["Organization"],
  "issues": ["title_too_short", "missing_meta_description", "multiple_h1", "thin_content", "images_missing_alt"],
  "issueCount": 5,
  "seoScore": 76,
  "linkedFrom": "https://example.com/"
}
```

The **REPORT** record in the run's key-value store contains the average score, issue totals, duplicate titles and descriptions, and robots.txt / sitemap info.

### Tips

- Turn on **Only output pages with issues** for a to-do list.
- Schedule weekly runs to catch new broken pages and SEO regressions.

# Actor input Schema

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

Homepages or start pages to audit. The crawler follows internal links on the same domain.

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

Maximum number of pages audited (and charged).

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

How many clicks away from the start URL to follow.

## `stayOnPath` (type: `boolean`):

Only audit URLs under the start URL's folder (e.g. /blog/). Off = whole domain.

## `useSitemap` (type: `boolean`):

Add URLs from the site's sitemap (found via robots.txt or /sitemap.xml).

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

Skip URLs matching any of these regular expressions, e.g. /tag/ or ?page=.

## `slowPageMs` (type: `integer`):

Pages with a server response slower than this get the slow_response issue.

## `thinContentWords` (type: `integer`):

Pages with fewer words than this get the thin_content issue.

## `onlyPagesWithIssues` (type: `boolean`):

Save only pages that have at least one issue (all pages are still audited and counted in the REPORT).

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

Parallel requests (1-5). Requests to one site are always spaced out politely and robots.txt crawl-delay is respected.

## Actor input object example

```json
{
  "startUrls": [
    "https://crawlee.dev"
  ],
  "maxPages": 50,
  "maxDepth": 3,
  "stayOnPath": false,
  "useSitemap": false,
  "excludeUrlPatterns": [],
  "slowPageMs": 2000,
  "thinContentWords": 300,
  "onlyPagesWithIssues": false,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `results` (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://crawlee.dev"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wholesome_spring/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://crawlee.dev"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wholesome_spring/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/0fUzJL61UWK49C3QI/builds/fXt58neNowSoVcGf9/openapi.json
