# SEO Site Audit – Technical SEO & Broken Link Checker (`opentenders/seo-site-audit`) Actor

Crawl a website and audit every page for technical SEO: broken links (404/5xx) with the page linking to them, titles, meta descriptions, H1s, canonicals, noindex, thin content, image alt text, hreflang and schema.org. 0-100 score per page and a site summary. $10 per 1,000 pages.

- **URL**: https://apify.com/opentenders/seo-site-audit.md
- **Developed by:** [Giordano Horacio](https://apify.com/opentenders) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.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 Site Audit – Technical SEO & Broken Link Checker

**Website audit tool for SEO agencies, consultants and site owners.** Give it a homepage and it crawls the site and audits every page for technical SEO: broken links (404/5xx) with the page that links to them, titles, meta descriptions, H1s, canonicals, noindex, thin content, image alt text, hreflang and schema.org types. Each page gets a 0–100 score, and the run also produces a site summary. No browser runs, so it is fast and cheap: **$10 per 1,000 pages**, and broken pages are reported free.

### What it checks

| Issue | Rule | Points off |
|---|---|---|
| `http-4xx` / `http-5xx` | Broken page; `linkedFrom` shows the page with the bad link | 100 |
| `missing-title` | No `<title>` | 25 |
| `noindex` | `noindex`/`none` in the meta robots or `X-Robots-Tag` header | 20 |
| `missing-h1` / `multiple-h1` | No H1 / more than one H1 | 15 / 5 |
| `missing-meta-description` | No meta description | 15 |
| `duplicate-title` | Same title as an earlier page (`duplicateTitleOf`) | 10 |
| `canonical-points-elsewhere` | Canonical URL is a different page | 10 |
| `thin-content` | Fewer than 200 words of visible text | 10 |
| `title-too-long` / `title-too-short` | Over 60 / under 30 characters | 5 |
| `meta-description-too-long` / `-too-short` | Over 160 / under 70 characters | 5 |
| `duplicate-meta-description` | Same description as an earlier page | 5 |
| `images-missing-alt` | `<img>` without an `alt` attribute (`alt=""` is fine) | 5 |
| `missing-viewport`, `missing-lang` | No mobile viewport meta / no `<html lang>` | 5 |
| `redirected` | An internal link points to a URL that redirects | 5 |
| `missing-canonical` | No canonical tag (informational) | 0 |

### Use cases

- **Client SEO audits.** Crawl a prospect's or a client's site and export the issues to CSV or Google Sheets.
- **Broken link checker.** Filter rows with `statusCode >= 400`; `linkedFrom` tells you which page to fix.
- **Pre-launch and migration QA.** Catch stray `noindex`, wrong canonicals and redirect chains before Google does.
- **Scheduled monitoring.** Run it weekly with *Fail if fewer pages than* set, and Apify e-mails you when the site breaks.

### Input

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

- `startUrls`: one or more sites. The crawl stays on each start URL's hostname and follows `<a href>` links.
- `maxPages`: the cap across the whole run (default 100).
- `minResults`: optional, for monitoring. The run fails if fewer pages are audited.

### Output

One row per page (JSON, CSV, Excel or API):

```json
{
  "url": "https://crawlee.dev/js/docs/next/examples",
  "statusCode": 200,
  "depth": 2,
  "linkedFrom": "https://crawlee.dev/js/docs/examples",
  "score": 80,
  "issues": ["title-too-long", "duplicate-title", "duplicate-meta-description"],
  "title": "Examples | Crawlee for JavaScript · Build reliable crawlers. Fast.",
  "titleLength": 66,
  "metaDescription": "Crawlee helps you build and maintain your crawlers…",
  "h1": ["Examples"],
  "h2Count": 25,
  "canonical": "https://crawlee.dev/js/docs/next/examples",
  "indexable": true,
  "lang": "en",
  "wordCount": 987,
  "internalLinks": 97,
  "externalLinks": 9,
  "images": 12,
  "imagesMissingAlt": 0,
  "hreflangs": ["en", "x-default"],
  "schemaTypes": [],
  "ogTitle": "Crawlee for JavaScript · Build reliable crawlers. Fast.",
  "duplicateTitleOf": "https://crawlee.dev/js/docs/examples",
  "auditedAt": "2026-10-30T17:08:21.624Z"
}
```

The **site summary** is saved in the run's key-value store as `SUMMARY`. It holds the pages audited, the average score, issue counts sorted by frequency, every broken page with its referrer, and the URLs that could not be fetched.

### Pricing

Pay per event: **$0.01 per audited page ($10 per 1,000)**. Pages that return 4xx/5xx, failed fetches, and error rows (invalid input, unreachable site) are never charged. Set a *Maximum total charge* on the run and the crawl stops there.

### Good to know

- **Robots.txt is respected.** Pages it disallows are skipped. Audit sites you own or are hired to audit.
- **No JavaScript rendering.** The audit reads the HTML the server sends, which is what most search engine first passes see. Sites that render everything client-side will show up as `thin-content`.
- **Polite crawling.** At most 2 requests in flight and 1 new request per second per site (subdomains share the limit). A 500-page site takes about 8–10 minutes.
- Duplicate titles and descriptions are flagged from the second page onward; the first page is the reference in `duplicateTitleOf`.
- Questions or a check you'd like added? Open an issue on the Issues tab.

# Actor input Schema

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

Homepage or any page of each site to audit. The crawler follows internal links on the same hostname (e.g. <code>www.example.com</code>) and respects robots.txt.

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

Stop after this many pages across all start URLs. You pay only for audited HTML pages (2xx/3xx); broken pages and errors are free.

## `minResults` (type: `integer`):

Optional. Mark the run as failed when fewer pages than this are audited — useful for scheduled audits with alerts.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 50
}
```

# Actor output Schema

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

No description

## `summary` (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": [
        {
            "url": "https://crawlee.dev"
        }
    ],
    "maxPages": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("opentenders/seo-site-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" }],
    "maxPages": 50,
}

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

```

## MCP server setup

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