# SEO Audit Crawler - Site Audit, Broken Links, Meta Tags (`maxqim/seo-audit-crawler`) Actor

Crawl your website and audit every page: broken links, redirects, missing or duplicate titles and meta descriptions, H1, canonical, noindex, image alt text, thin content, Open Graph, schema, speed. Site score + issue summary. Respects robots.txt. Pay per page.

- **URL**: https://apify.com/maxqim/seo-audit-crawler.md
- **Developed by:** [miao qi](https://apify.com/maxqim) (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

$3.00 / 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.

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, Broken Links & Meta Tags Checker

Crawl a website and get an **on-page SEO audit for every page**, plus a **site score and issue summary**. Like the site audit in Ahrefs / Semrush / Screaming Frog, without a subscription: pay only for the pages you audit.

- **Finds the issues that matter**: broken internal links (4xx/5xx), redirected links, missing / too long / too short / duplicate titles and meta descriptions, missing or multiple H1, missing or wrong canonical, noindex pages, images without alt text, thin content, missing viewport, Open Graph and structured data, slow pages, heavy HTML
- **Site summary**: score 0–100 and issue counts by type (key-value store record `SUMMARY`)
- **Crawls like a search engine**: follows internal links and reads `sitemap.xml` (incl. sitemap indexes), so unlinked pages are audited too
- **Fast and cheap**: plain HTTP crawler, no browser. 100 pages usually take under a minute
- **Polite**: respects robots.txt, limited parallel requests

### Output (one item per page)

| Field | Example |
| --- | --- |
| `url`, `finalUrl`, `statusCode`, `responseTimeMs`, `pageSizeKb`, `depth` | https://example.com/blog, 200, 412 ms |
| `issues`, `issueCount` | \["Title too long (>60 chars)", "3 images without alt text", "2 broken internal links"] |
| `title`, `titleLength`, `duplicateTitle` | |
| `metaDescription`, `metaDescriptionLength`, `duplicateMetaDescription` | |
| `h1`, `h1Count`, `h2Count`, `wordCount` | |
| `canonical`, `metaRobots`, `xRobotsTag`, `lang`, `hreflangCount` | |
| `ogTitle`, `ogImage`, `hasStructuredData`, `hasViewport` | |
| `imageCount`, `imagesWithoutAlt`, `imagesWithoutAltSample` | |
| `internalLinks`, `externalLinks`, `inboundInternalLinks` | |
| `brokenInternalLinks`, `redirectChain` | URLs on this page that return 4xx/5xx or redirect |

Error pages (404, 500, timeouts) are listed too, with `linkedFrom` showing which pages link to them.

### Summary record (`SUMMARY`)

```json
{
  "site": "https://docs.apify.com",
  "pagesAudited": 60,
  "score": 83,
  "issuesByType": { "images without alt text": 58, "Title too long": 13, "Meta description too long": 7, "Duplicate title": 3 },
  "pagesWithErrors": 2,
  "avgResponseTimeMs": 725
}
```

### Use cases

- **Agencies and freelancers**: quick audit for a client or prospect, export to Excel / Google Sheets
- **Site owners**: find broken links and missing meta tags before Google does
- **Scheduled monitoring**: run weekly and get alerted when new 404s or noindex pages appear
- **Bulk checks**: audit many small sites through the API

### Input example

```json
{
  "startUrls": [{ "url": "https://example.com" }],
  "maxPages": 500,
  "useSitemap": true,
  "excludeUrlPattern": "/tag/|/page/\\d+"
}
```

### Notes

- Only pages on the same domain as the start URL are audited (www and non-www count as the same site).
- JavaScript-rendered content is not executed; the audit sees the HTML that search engines get first.
- Please audit sites you own or are allowed to audit.

### Pricing

Pay per audited page. `maxPages` caps the cost of a run.

# Actor input Schema

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

Home page (or any page) of the site to audit. Only pages on the same domain are crawled.

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

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

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

How many clicks away from the start URL to follow (0 = no limit).

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

Add URLs from the site's sitemap(s), so pages that are not linked are audited too.

## `includeUrlPattern` (type: `string`):

e.g. /blog/ to audit only the blog.

## `excludeUrlPattern` (type: `string`):

e.g. /tag/|/page/d+

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

Skip pages that robots.txt disallows. Turn off only for your own site.

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

Keep it low to be gentle with the server.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxPages": 100,
  "maxDepth": 0,
  "useSitemap": true,
  "respectRobotsTxt": true,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One item per audited page with its SEO issues.

# 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://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("maxqim/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": [{ "url": "https://apify.com" }] }

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

```

## MCP server setup

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