# Website SEO Audit & Broken Link Checker (`newbeeer/website-seo-audit`) Actor

Crawl your website and get broken links, missing titles and meta descriptions, duplicate titles, missing H1s, images without alt text and more. Readable HTML report included. $2 per 1,000 pages.

- **URL**: https://apify.com/newbeeer/website-seo-audit.md
- **Developed by:** [chong newbee](https://apify.com/newbeeer) (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 $2.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

## Website SEO Audit & Broken Link Checker

Crawl your website and get a clear list of what to fix: **broken links, missing or too-long titles, missing meta descriptions, duplicate titles, missing H1s, images without alt text, noindex pages, thin content** and more. You also get a readable **HTML report** you can send to a client or your team.

### Why use it

- **No setup**: paste your homepage URL and click Start.
- **Finds broken links**, both internal and external, and tells you **which page** each broken link is on.
- **Fast and cheap**: no browser needed, a 100-page site takes about a minute.
- **Pay only for audited pages**: $2 per 1,000 pages. External link checks are free.
- **Polite crawling**: respects robots.txt by default.

### What it checks on every page

| Check | Why it matters |
|---|---|
| Title missing / too short / too long (> 60 chars) | Titles get cut off in Google results |
| Meta description missing / too short / too long (> 160) | Affects click-through from search |
| Duplicate titles and descriptions across pages | Confuses search engines |
| Missing or multiple H1 | Page structure |
| Images without alt text | Accessibility and image search |
| noindex, missing canonical | Pages that may not get indexed |
| Missing `lang`, viewport, Open Graph tags | Mobile and social previews |
| Thin content (< 200 words) | Low-value pages |
| Broken links (4xx, 5xx, unreachable) | Bad user experience and wasted crawl budget |

### Output

- **HTML report** (`REPORT` in the key-value store): totals, most common issues, every broken link with the page it was found on, and per-page issues.
- **Summary JSON** (`SUMMARY`): the same data for automation.
- **Dataset**: one row per page with all fields, exportable to Excel, CSV or JSON.

### Input example

```json
{ "startUrls": [{ "url": "https://example.com" }], "maxPages": 200, "checkExternalLinks": true }
```

### Tips

- Schedule it weekly to catch new broken links automatically.
- Links that return 401/403/429/999 (for example LinkedIn) usually block bots rather than being broken, so they are not reported as broken.
- Audit only sites you own or have permission to check.

# Actor input Schema

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

Homepage (or any page) of the site to audit. The crawler follows internal links from here.

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

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

## `checkExternalLinks` (type: `boolean`):

Also check links that point to other websites (free, not charged).

## `maxExternalLinks` (type: `integer`):

Upper limit on how many external links are checked.

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

Treat subdomains (e.g. blog.example.com) as part of the same site.

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

Skip pages that the site's robots.txt disallows.

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

How many pages to load at the same time. Keep it low for small sites.

## `proxyConfiguration` (type: `object`):

Usually not needed. Use only if your own site blocks cloud servers.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 100,
  "checkExternalLinks": true,
  "maxExternalLinks": 300,
  "includeSubdomains": false,
  "respectRobotsTxt": true,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `report` (type: `string`):

Readable report with broken links, common issues and per-page problems.

## `summary` (type: `string`):

Totals, issue counts, duplicate titles/descriptions and the broken link list.

## `pages` (type: `string`):

One row 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://crawlee.dev"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("newbeeer/website-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("newbeeer/website-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 newbeeer/website-seo-audit --silent --output-dataset

```

## MCP server setup

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