# SEO Site Audit – Broken Link Checker & Sitemap Crawler (`lokieee0/seo-site-auditor`) Actor

For SEO agencies, freelancers & site owners: crawl a whole website and find broken links, redirect chains, missing/duplicate titles and meta descriptions, H1, canonical & noindex issues, thin content, missing alt text, sitemap errors and orphan pages. Per-page score plus a site summary.

- **URL**: https://apify.com/lokieee0/seo-site-auditor.md
- **Developed by:** [maraa k](https://apify.com/lokieee0) (community)
- **Categories:** SEO tools, Developer tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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

## SEO Site Auditor: broken links, meta tags, redirects, sitemap & orphan pages

Crawl a whole website and get a **technical SEO audit**: one row per page with a **score and grade**, plus a **site summary** with the problems that only show up across pages (duplicate titles, orphan pages, broken sitemap URLs).

Built on Crawlee's fast HTTP crawler (no browser), so audits are cheap and quick. Made for SEO agencies, freelancers and in-house marketers, and for scheduled monitoring after every release.

### What it checks

**Per page**

- HTTP status, redirects, response time, page size
- `<title>`: missing, too long or short, **duplicate across the site**
- Meta description: missing, too long or short, **duplicate**
- H1: missing or multiple
- Canonical: missing, points elsewhere, http on https, invalid
- `noindex` (meta or `X-Robots-Tag`), flagged harder when the page is also in the sitemap
- Thin content (word count), images with no `alt` (an empty `alt=""` is correctly treated as decorative), `<html lang>`, viewport, **mixed content**
- **Broken internal links** (with the exact URLs and status codes), links that point to redirects, and optionally **broken external links**
- Structured data (JSON-LD types), hreflang, Open Graph

**Site-wide**

- robots.txt (missing, or **blocking the whole site**)
- XML sitemap: found or missing, sitemap indexes and `.gz` files, broken sitemap files, **sitemap URLs that return errors**, sitemap URLs blocked by robots.txt or redirecting
- **Orphan pages**: in the sitemap, but not linked from any crawled page
- Totals per issue type and status-code distribution, plus an overall **site score**

### Accuracy

- **Exact page limit.** `maxPages` is enforced exactly, even with parallel crawling. Crawlee's own limit can overshoot, so a hard cap is added on top.
- Links to pages beyond the crawl limit are still **checked for brokenness** (HEAD, with a GET fallback).
- robots.txt follows Google's longest-match rule, with `*` and `$` wildcards.

### Output

Page row:

```json
{ "type": "page", "url": "https://example.com/pricing", "statusCode": 200, "score": 79, "grade": "C",
  "title": "Pricing", "titleLength": 7, "metaDescriptionLength": 0, "h1": ["Pricing"], "wordCount": 412, "inlinks": 14,
  "issues": [{ "code": "meta-description-missing", "severity": "medium", "message": "Missing meta description." }] }
```

The last row (`"type": "site-summary"`) holds the site score, issue totals, duplicate titles and descriptions, orphan pages and sitemap and robots findings. The same summary is saved to the `SUMMARY` key-value record.

Use the **"All issues"** view for a flat to-do list.

### How to use it

1. Enter the site's **Start URL**.
2. Set **Max pages**. Keep the sitemap and robots.txt options on.
3. Click **Start**.
4. Open **Pages** for a score per page, **Issues** for a flat to-do list, and the `SUMMARY` record for site-wide findings (duplicates, orphan pages, sitemap errors).

### How much does it cost?

You pay **$2 per 1,000 pages** returned, with no subscription and no separate compute charges. Filters that drop rows mean you don't pay for those rows.

| You process | Typical use | Cost |
|---|---|---|
| 200 pages | a small business site | **$0.40** |
| 2,000 pages | a mid-size site or blog | **$4** |
| 20,000 pages | a large e-commerce site | **$40** |

Apify's free plan includes monthly credit, which is enough to try this actor on a real list before you pay anything.

### Use it from code or your tools

Run it from **Make, Zapier, n8n, Google Sheets, Slack, webhooks** or any language through the [Apify API](https://docs.apify.com/api/v2).

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lokieee0/seo-site-auditor").call(run_input={
    "startUrl": "https://example.com/",
    "maxPages": 200
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lokieee0/seo-site-auditor').call({"startUrl": "https://example.com/", "maxPages": 200});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**cURL** (run and get results in one request)

```bash
curl -X POST "https://api.apify.com/v2/acts/lokieee0~seo-site-auditor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"startUrl": "https://example.com/", "maxPages": 200}'
```

### FAQ

**How is this different from Screaming Frog?**
Nothing to install and no licence. It runs in the cloud, you pay per page, and you can schedule it after every release and get the results in Sheets or Slack.

**Does it render JavaScript?**
No. It uses a fast HTTP crawler, the way most search-engine first passes work. Sites built fully in client-side JavaScript may show thin content.

**Can I audit client sites on a schedule?**
Yes. Create one task per client with its own start URL and schedule them weekly.

**Can I schedule it or connect it to other apps?**
Yes. Use Apify **Schedules** for recurring runs, and **Integrations** to send results to Google Sheets, Slack, email, Zapier, Make, n8n or a webhook.

**Something didn't work or a field is missing?**
Open an issue on the **Issues** tab. Reports are usually fixed within a few days, and feature requests are welcome.

### More tools from the same developer

- [SPF, DKIM & DMARC checker with a 0–100 score and exact DNS fixes](https://apify.com/lokieee0/email-auth-auditor)
- [Find businesses with outdated websites, with a ready-to-send pitch](https://apify.com/lokieee0/website-redesign-auditor)
- [Jobs from Greenhouse, Lever, Ashby & 4 more ATS in one format](https://apify.com/lokieee0/ats-jobs-scraper)
- [Bulk SSL expiry & security headers scanner with A–F grades](https://apify.com/lokieee0/ssl-security-scanner)
- [Emails, phones & social profiles from any list of websites](https://apify.com/lokieee0/website-contact-extractor)
- [Detect 130+ technologies (CMS, Shopify, analytics, hosting) on any site](https://apify.com/lokieee0/tech-stack-detector)
- [Npm, PyPI & crates.io vulnerability and supply-chain risk audit](https://apify.com/lokieee0/package-intel)
- [Bulk GitHub repo stats with a 0–100 health score](https://apify.com/lokieee0/github-repo-intel)
- [Search, scrape & monitor Hacker News without the 1,000-result limit](https://apify.com/lokieee0/hacker-news-scraper)

# Actor input Schema

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

The homepage (or section) to audit, e.g. https://example.com

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

Maximum number of pages to crawl and audit. This is a hard limit, and you pay per audited page.

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

Seed the crawl from the sitemap(s) listed in robots.txt or at /sitemap.xml. This finds deep pages and makes orphan-page detection possible.

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

Skip URLs that robots.txt disallows, the way a search engine would.

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

Also check outgoing links to other sites (up to 1,000) for 404s and dead domains. Slower.

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

Treat blog.example.com and similar as part of the site.

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

Pages fetched in parallel. Lower this for small or fragile servers.

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

Optional. Use it for sites that block datacenter IPs.

## Actor input object example

```json
{
  "startUrl": "https://books.toscrape.com/",
  "maxPages": 200,
  "useSitemap": true,
  "respectRobotsTxt": true,
  "checkExternalLinks": false,
  "includeSubdomains": false,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `issues` (type: `string`):

No description

## `allResults` (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 = {
    "startUrl": "https://books.toscrape.com/",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lokieee0/seo-site-auditor").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/",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("lokieee0/seo-site-auditor").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/",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call lokieee0/seo-site-auditor --silent --output-dataset

```

## MCP server setup

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

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/J2nuAXetJ14pnnqNu/builds/4rECFsNgQpzfMHYLV/openapi.json
