# Broken Link & SEO Checker (Website Audit) (`klyve1/broken-link-seo-checker`) Actor

Crawl a website and get a page-by-page SEO audit: broken links (404, 500), redirects, missing or duplicate titles and meta descriptions, missing H1, noindex, slow pages, images without alt. Worst pages first.

- **URL**: https://apify.com/klyve1/broken-link-seo-checker.md
- **Developed by:** [Nico Klyve](https://apify.com/klyve1) (community)
- **Categories:** SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 page checkeds

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

## Broken Link & SEO Checker (website audit)

Enter a website, get **a page-by-page audit**: broken links (404, 410, 5xx, dead domains), redirects, missing or duplicate titles and meta descriptions, missing or multiple H1, noindex pages, wrong canonicals, images without alt text, thin content and slow pages. Pages with the most problems come first, so you know what to fix today.

### What people use it for

- **SEO audits** for your own site or a client's, without installing a desktop crawler.
- **Website maintenance**: schedule it weekly and catch new broken links before your visitors do.
- **Agencies**: audit dozens of client sites from the API or Make / n8n / Zapier and send the results to Google Sheets.
- **Migrations and redesigns**: check that no internal link breaks after a redesign.
- **AI agents**: "check this site for broken links and SEO problems" in one call.

### Example output (one row per page)

```json
{
  "url": "https://example.com/blog",
  "statusCode": 200,
  "finalUrl": null,
  "loadTimeMs": 412,
  "title": "Blog | Example — news, guides and product updates for teams",
  "titleLength": 62,
  "metaDescription": null,
  "metaDescriptionLength": 0,
  "h1": null,
  "h1Count": 0,
  "canonicalUrl": "https://example.com/blog",
  "noindex": false,
  "language": "en",
  "wordCount": 840,
  "imagesMissingAlt": 3,
  "internalLinks": 48,
  "externalLinks": 12,
  "brokenLinks": [
    { "url": "https://example.com/old-pricing", "statusCode": 404, "error": null, "internal": true }
  ],
  "issues": ["Title too long (over 60 characters)", "Missing meta description", "Missing H1", "3 images without alt text", "1 broken links"],
  "issueCount": 5,
  "linkedFrom": ["https://example.com/"],
  "checkedAt": "2026-11-15T20:00:00.000Z"
}
```

A summary of the run (pages checked, broken links, total issues) is also saved in the key-value store under `SUMMARY`.

### Checks

| Check | Rule |
|---|---|
| Broken links | Internal and external links answering 404, 410, 5xx, or unreachable |
| Redirects | Page reached through a redirect |
| Title | Missing, over 60 or under 10 characters, duplicated on another page |
| Meta description | Missing, over 160 characters, duplicated |
| Headings | No H1, or several H1 |
| Indexing | `noindex`, canonical pointing to another URL |
| Images | `img` tags without an `alt` attribute |
| Content | Under 150 words |
| Speed | Load time above your threshold (default 3 s) |

### Input

| Field | Description |
|---|---|
| `startUrl` | Website to audit. |
| `maxPages` | Pages to crawl (default 100, up to 5,000). |
| `checkExternalLinks` | Also check links to other sites (default on). |
| `maxExternalLinks` | Cap on external link checks (default 300). |
| `slowPageMs` | Slow page threshold in milliseconds. |
| `respectRobotsTxt` | Skip pages disallowed in robots.txt (default on). |
| `maxConcurrency` | Pages loaded in parallel (default 4). |

### Pricing

Pay per event: you pay **per page checked**. Link checks are included. Set a maximum charge per run in the Apify Console for a hard cap.

### Good to know

- The crawler reads the HTML sent by the server. Sites that build all their content with JavaScript in the browser may show fewer links.
- Large platforms (LinkedIn, Stack Overflow...) often refuse automated checks with 403 or 999 answers: those links are not reported as broken, to avoid false alarms.
- Only audit websites you own or have permission to audit.

Questions or a check you'd like added? Open an issue on the Actor page, answers within 48 hours.

# Actor input Schema

## `startUrl` (type: `string`):

Home page or any page of the website. The Actor follows internal links from there.

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

Maximum number of pages of the website to crawl and analyse.

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

Also check that links pointing to other websites still work.

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

Upper limit on the number of external links checked.

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

Pages taking longer than this to load are flagged as slow.

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

Skip pages that the website asks crawlers not to visit.

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

Keep it low on small websites to avoid slowing them down.

## Actor input object example

```json
{
  "startUrl": "https://books.toscrape.com/",
  "maxPages": 20,
  "checkExternalLinks": true,
  "maxExternalLinks": 300,
  "slowPageMs": 3000,
  "respectRobotsTxt": true,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

All rows produced by the run.

# 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 = {
    "startUrl": "https://books.toscrape.com/",
    "maxPages": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("klyve1/broken-link-seo-checker").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 = {
    "startUrl": "https://books.toscrape.com/",
    "maxPages": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("klyve1/broken-link-seo-checker").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 '{
  "startUrl": "https://books.toscrape.com/",
  "maxPages": 20
}' |
apify call klyve1/broken-link-seo-checker --silent --output-dataset

```

## MCP server setup

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

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/qJH2bbvQ8HaGxpgqs/builds/EkIUWgAWyZo5VfrfH/openapi.json
