# Site Audit Scraper: SEO Issues & Broken Links (`northpane/site-audit-scraper`) Actor

Crawl any website and get every on-page SEO problem in one table: bad titles and meta descriptions, H1 issues, missing alt text, thin pages, noindex, duplicates and broken internal links. Exports Excel, CSV, JSON and a client-ready HTML report.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Site Audit Scraper: SEO issues and broken links

Point it at a website and get a full on-page SEO audit in minutes: every page crawled, every problem listed, and broken internal links traced back to the page that links to them.

### What it checks

| Check | Flagged when |
| --- | --- |
| Title | Missing, under 30 or over 60 characters, or duplicated across pages |
| Meta description | Missing, under 70 or over 160 characters |
| H1 | Missing, or more than one on the page |
| Images | Missing `alt` text |
| Content | Thin pages (under 300 words) |
| Speed | Server response over 2 seconds |
| Indexing | `noindex` set, missing canonical, missing `lang` |
| Mobile | No viewport tag |
| Social | Missing Open Graph tags |
| Links | Internal links that return 4xx or 5xx, and the pages that contain them |

It stays on the start URL's site, respects `robots.txt`, and keeps request rates polite.

### Input

```json
{
  "startUrls": [{ "url": "https://example.com" }],
  "maxPages": 100,
  "maxConcurrency": 5,
  "checkBrokenLinks": true
}
```

### Output

**Dataset:** one row per page with `url`, `status`, `issue_count`, `issues`, `title`, `meta_description`, `h1_count`, `word_count`, `images_missing_alt` and more. Download it as Excel, CSV or JSON from the Output tab.

**Key-value store:**

- `REPORT`: a client-ready HTML report with totals, issues by type and the worst pages first
- `REPORT_XLSX`: the same audit as an Excel workbook (Pages, Issues by type, Broken links)
- `SUMMARY`: totals as JSON, handy for dashboards and integrations
- `BROKEN_LINKS`: every broken link with its source page and status code

Example dataset item:

```json
{
  "url": "https://example.com/about",
  "status": 200,
  "issue_count": 3,
  "issues": ["Duplicate title", "Multiple H1 tags", "Missing meta description"],
  "title": "About Example Co. | Our team, history and values",
  "h1_count": 2,
  "word_count": 412,
  "images_missing_alt": 0
}
```

### Good uses

- Agencies: a quick audit before a sales call or a monthly client report
- Site owners: catch broken links and missing metadata after a redesign or migration
- Scheduled monitoring: run it weekly with an Apify schedule and get alerted when the issue count rises

### Limits

Public pages only. It doesn't log in, submit forms or collect personal data. Pages rendered entirely by JavaScript are audited on their server HTML.

# Actor input Schema

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

Pages to start from. The crawler stays on the same site.

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

Stop after auditing this many pages.

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

Parallel requests. Keep low to stay polite.

## `checkBrokenLinks` (type: `boolean`):

Also check internal links that weren't crawled.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 20,
  "maxConcurrency": 5,
  "checkBrokenLinks": true
}
```

# Actor output Schema

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

No description

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

No description

## `excel` (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": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("northpane/site-audit-scraper").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": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("northpane/site-audit-scraper").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": 20
}' |
apify call northpane/site-audit-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,northpane/site-audit-scraper"
        }
    }
}
```

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/K91JjhCXwskp8Ec8G/builds/9gIrp1GS3Ejyulxdn/openapi.json
