# SEO Audit Report (`eliai/seo-audit-report`) Actor

Crawl a site and get back a finished audit report with your agency name and brand colour on it. Findings grouped by severity, each explaining why it costs traffic. Self-contained HTML that prints to PDF. One flat price whether you crawl 10 pages or 300.

- **URL**: https://apify.com/eliai/seo-audit-report.md
- **Developed by:** [Anthony Snider](https://apify.com/eliai) (community)
- **Categories:** SEO tools, Marketing, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2,990.00 / 1,000 report generateds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## SEO Audit Report — a document you can hand to a client

Point it at a website. It crawls the site and produces a **finished, client-ready HTML report**
with your agency's name and brand colour on it — not a JSON dump you have to turn into a document
yourself.

One flat price per report, whether you crawl 10 pages or 300.

---

### What you get

A single self-contained HTML file. No external requests, no fonts to load, works offline, and
prints straight to PDF from the browser.

**Cover band** — overall grade (A–F), average score, and counts of critical / warning / note.

**"What to fix, in order"** — every finding, sorted by severity, **grouped** so a problem appearing
on 40 pages is one line item with a page count instead of 40 repeated rows. Each finding carries a
plain-English explanation of *why it costs traffic*, so the report argues its own case to whoever
reads it.

**Weakest pages** — the lowest-scoring pages with their top issue, so the reader knows where fixing
returns the most.

### What it checks

**Across the site** — problems a single-page checker structurally cannot see:
- Redirect chains, with the number of hops
- Broken outbound links and unreachable pages
- Duplicate titles and duplicate meta descriptions, with the affected URLs
- Missing `robots.txt` or `sitemap.xml`

**Per page** — title and meta description length and presence, `<h1>` structure, canonical links,
`noindex` traps, HTTPS, images missing alt text, structured data that fails to parse, thin content,
and response time.

### White-labelling

| Field | Effect |
|---|---|
| `agencyName` | Appears in the report header and footer — "Prepared by {you}" |
| `accentColor` | Your hex brand colour drives the top rule, headings and severity accents |

Leave both blank for a clean unbranded report.

### Input

```json
{
  "startUrl": "https://client-website.com",
  "maxPages": 50,
  "agencyName": "Northgate Digital",
  "accentColor": "#B3452E"
}
````

### Output

One dataset record with the summary, all findings, and a direct link to the report file:

```json
{
  "site": "https://client-website.com",
  "pagesAudited": 50,
  "averageSeoScore": 78,
  "grade": "C",
  "issueCounts": { "critical": 2, "warn": 14, "note": 31 },
  "reportUrl": "https://api.apify.com/v2/key-value-stores/.../records/seo-audit-....html",
  "whiteLabelled": true,
  "summary": "50 pages · grade C (78/100) · 2 critical, 14 warnings, 31 notes"
}
```

`reportUrl` is the deliverable — open it, or send it straight to your client.

### For agents and automation

- **Capability:** crawl a website and produce a formatted SEO audit document
- **Required input:** `startUrl`
- **Returns:** one record; `reportUrl` points to a self-contained HTML document
- **Bounded:** `maxPages` caps the crawl; the crawler stays on the starting origin
- **Side effects:** none — reads public pages, writes the report to this run's key-value store
- **Failure:** if no page can be crawled the run fails with a clear message and **is not charged**

### Pricing

One flat fee per report generated. Page count does not change the price. If the crawl produces no
pages, no report exists and you are not charged.

# Actor input Schema

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

The homepage. The crawler follows internal links from here.

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

More pages means a more complete report. One flat price regardless.

## `agencyName` (type: `string`):

Appears on the report header and footer, so you can hand it to a client as your own work. Leave blank for an unbranded report.

## `accentColor` (type: `string`):

Hex code, e.g. #1F5FA9. Used for the report's accent rule and headings.

## `checkOutboundLinks` (type: `boolean`):

Verifies external links still resolve. Adds a little time.

## Actor input object example

```json
{
  "startUrl": "https://apify.com",
  "maxPages": 50,
  "accentColor": "#1F5FA9",
  "checkOutboundLinks": true
}
```

# 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://apify.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("eliai/seo-audit-report").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://apify.com" }

# Run the Actor and wait for it to finish
run = client.actor("eliai/seo-audit-report").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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://apify.com"
}' |
apify call eliai/seo-audit-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=eliai/seo-audit-report",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "SEO Audit Report",
        "description": "Crawl a site and get back a finished audit report with your agency name and brand colour on it. Findings grouped by severity, each explaining why it costs traffic. Self-contained HTML that prints to PDF. One flat price whether you crawl 10 pages or 300.",
        "version": "0.1",
        "x-build-id": "o1sTxAVlUe7fVzwXe"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/eliai~seo-audit-report/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-eliai-seo-audit-report",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/eliai~seo-audit-report/runs": {
            "post": {
                "operationId": "runs-sync-eliai-seo-audit-report",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/eliai~seo-audit-report/run-sync": {
            "post": {
                "operationId": "run-sync-eliai-seo-audit-report",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrl"
                ],
                "properties": {
                    "startUrl": {
                        "title": "Website to audit",
                        "type": "string",
                        "description": "The homepage. The crawler follows internal links from here."
                    },
                    "maxPages": {
                        "title": "Pages to crawl",
                        "minimum": 1,
                        "maximum": 300,
                        "type": "integer",
                        "description": "More pages means a more complete report. One flat price regardless.",
                        "default": 50
                    },
                    "agencyName": {
                        "title": "Your agency name (white-label)",
                        "type": "string",
                        "description": "Appears on the report header and footer, so you can hand it to a client as your own work. Leave blank for an unbranded report."
                    },
                    "accentColor": {
                        "title": "Your brand colour",
                        "type": "string",
                        "description": "Hex code, e.g. #1F5FA9. Used for the report's accent rule and headings.",
                        "default": "#1F5FA9"
                    },
                    "checkOutboundLinks": {
                        "title": "Check outbound links for 404s",
                        "type": "boolean",
                        "description": "Verifies external links still resolve. Adds a little time.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
