# SEO Audit Tool: Rich Results, AI Crawlers & Client HTML Report (`pikoulas/seo-audit`) Actor

Crawl a website and get an SEO audit to hand a client: an HTML report of each site's score, what to fix first, broken links, duplicates, schema markup checked against Google's rich results and which AI crawlers robots.txt blocks, plus every page's 0-100 score and issues as data. $5 per 1,000 pages.

- **URL**: https://apify.com/pikoulas/seo-audit.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Audit Tool: Rich Results, AI Crawlers & Client HTML Report

Give it a website, and get an on-page SEO audit of it to hand a client, and as clean JSON, CSV or Excel:

- **An HTML report per site,** ready to send: its average score, its pages by score, what to fix first and how, broken
  links and duplicate titles and descriptions, under your own heading and no one else's name.
- **Every page scored from 0 to 100,** with each issue found, how much it matters and what to do about it.
- **Rich results checked:** each page's schema.org JSON-LD against the properties Google requires for its rich results
  (Product, Recipe, Event, JobPosting, LocalBusiness, FAQ, Review, Video, Breadcrumb and more), with what's missing,
  and JSON-LD that doesn't parse.
- **AI search readiness:** which AI crawlers the site's `robots.txt` lets in or blocks (ChatGPT search and GPTBot,
  Claude, Perplexity, Google-Extended, Apple, Meta, Common Crawl and others, search apart from training), and whether
  it has an `llms.txt`.
- **The on-page facts:** title, meta description, headings, canonical, robots tags, language, hreflang, Open Graph,
  structured data, word count, images without alt, redirects, mixed content, response time, sitemap presence.
- **A row per site:** the same report as data, with which pages link to each broken link.

It costs **$5 per 1,000 pages** on Apify's paid plans and $10 on the free plan. A page that answers an error costs
nothing, and neither does a site's report. No browser, no login, no API key: about 8 times less than the leading SEO
audit Actor's $0.04 a page.

### What people use it for

- **SEO freelancers and agencies:** a first audit to send a prospect or a client, then the same audit each month to
  see what moved.
- **Website owners:** missing titles, descriptions and headings, and links that lead nowhere, before they cost traffic.
- **Rich results and AI answers:** product, recipe or event markup that misses what Google needs, and a `robots.txt`
  that shuts out ChatGPT or Perplexity search without meaning to.
- **Site migrations:** broken links, redirect chains and pages left out of the sitemap after a move.
- **Automation:** a scheduled check of a site, as one step of a Make, Zapier or n8n workflow.

### How to audit a website

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter the **Websites to audit**.
3. Set **Max pages per site**, which also limits what the run can cost, and a **Report title** if you like.
4. Click **Start**. Open each site's report from **HTML reports** on the run's output, or download the results as JSON,
   CSV or Excel.

An input with every option:

```json
{
  "startUrls": ["https://books.toscrape.com/"],
  "maxPagesPerSite": 100,
  "htmlReport": true,
  "reportTitle": "SEO audit for Books to Scrape, by Your Agency",
  "checkExternalLinks": true,
  "maxExternalLinksPerSite": 200,
  "includeSubdomains": false,
  "followUrlsWithQuery": false,
  "excludeUrlsContaining": ["/tag/", "/author/"]
}
```

It starts from the addresses you give and follows the site's own links, the nearest pages first, then goes on to pages
only its sitemap lists.

### Output

The results have one row for each page, `"type": "page"`:

```json
{
  "type": "page",
  "url": "https://books.toscrape.com/",
  "requestedUrl": "https://books.toscrape.com/",
  "status": 200,
  "score": 80,
  "issueCount": 5,
  "depth": 0,
  "redirects": [],
  "responseMs": 354,
  "sizeBytes": 51294,
  "truncated": false,
  "contentType": "text/html",
  "title": "All products | Books to Scrape - Sandbox",
  "titleLength": 40,
  "metaDescription": null,
  "metaDescriptionLength": 0,
  "h1": ["All products"],
  "h2Count": 0,
  "canonical": null,
  "metaRobots": "NOARCHIVE,NOCACHE",
  "xRobotsTag": null,
  "lang": "en-us",
  "hreflang": [],
  "viewport": true,
  "openGraph": {"title": null, "description": null, "image": null},
  "twitterCard": null,
  "schemaTypes": [],
  "richResults": [],
  "invalidJsonLd": 0,
  "scriptCount": 7,
  "imageCount": 20,
  "imagesWithoutAlt": 0,
  "mixedContent": 1,
  "wordCount": 320,
  "indexable": true,
  "inSitemap": null,
  "internalLinks": 73,
  "externalLinks": 0,
  "issues": [
    {
      "id": "description-missing",
      "severity": "warning",
      "message": "The page has no meta description.",
      "fix": "Write a meta description: search results often show it."
    }
  ],
  "input": "https://books.toscrape.com/"
}
```

And one for each site, `"type": "site"`, written when its audit ends for whatever reason:

```json
{
  "type": "site",
  "url": "https://books.toscrape.com/",
  "site": "books.toscrape.com",
  "startUrls": ["https://books.toscrape.com/"],
  "pagesAudited": 5,
  "pagesWithErrors": 0,
  "averageScore": 80.0,
  "topIssues": [
    {
      "id": "description-missing",
      "severity": "warning",
      "pages": 5,
      "fix": "Write a meta description: search results often show it."
    }
  ],
  "duplicateTitles": [
    {
      "value": "All products | Books to Scrape - Sandbox",
      "count": 5,
      "pages": ["https://books.toscrape.com/", "https://books.toscrape.com/catalogue/page-2.html"]
    }
  ],
  "duplicateDescriptions": [],
  "richResults": [],
  "aiCrawlers": [{"crawler": "OAI-SearchBot", "owner": "OpenAI", "use": "search", "allowed": true}],
  "llmsTxt": null,
  "robotsTxt": false,
  "sitemapUrls": 0,
  "pagesBlockedByRobots": 0,
  "pagesNotReached": 1,
  "brokenLinks": [
    {"url": "https://books.toscrape.com/old", "status": 404, "external": false, "linkedFrom": ["https://books.toscrape.com/"]}
  ],
  "externalLinksChecked": 0,
  "externalLinksNotChecked": 0,
  "stoppedBecause": null,
  "reportUrl": "https://api.apify.com/v2/key-value-stores/4jqPxjJ4piK8B8x84/records/report-books.toscrape.com.html?signature=..."
}
```

A recipe site's rich results and AI crawlers, from bbcgoodfood.com's row (12 pages; four of the 14 crawlers shown):

```json
{
  "richResults": [
    {"type": "BreadcrumbList", "pages": 11, "eligible": 11, "missing": []},
    {"type": "Recipe", "pages": 4, "eligible": 4, "missing": []}
  ],
  "llmsTxt": null,
  "aiCrawlers": [
    {"crawler": "OAI-SearchBot", "owner": "OpenAI", "use": "search", "allowed": true},
    {"crawler": "GPTBot", "owner": "OpenAI", "use": "training", "allowed": false},
    {"crawler": "PerplexityBot", "owner": "Perplexity", "use": "search", "allowed": true},
    {"crawler": "CCBot", "owner": "Common Crawl", "use": "training", "allowed": false}
  ]
}
```

A page's `richResults` say the same for each thing its JSON-LD describes, as `{"type", "richResult", "eligible",
"missing"}`; `missing` names the properties, `offers.price` for an offer without a price. `aiCrawlers` is empty when
the site wouldn't give its `robots.txt`.

The score starts at 100 and loses 15 for each error, 7 for each warning and 2 for each notice. `inSitemap` is null
when the site has no sitemap, or one too big to read whole. `pagesNotReached` counts pages it knew of when the audit
ended. `stoppedBecause` says what ended an audit early.

### What it checks

- **Errors:** an HTTP error, a page not on HTTPS, a missing title.
- **Warnings:** a title over 60 characters, a missing meta description or `<h1>`, noindex, no viewport tag, images
  without alt, mixed content, more than one redirect, text that seems to come only from scripts, JSON-LD that doesn't
  parse, structured data missing what Google requires for its rich result.
- **Notices:** a short title, a long or short description, several `<h1>`s, no canonical or one naming another page, no
  `lang`, no Open Graph or structured data, under 200 words, over 2 seconds to answer, a page missing from the sitemap.

### Use it as an API

Apify's API starts a run and returns its dataset as JSON; its Python and JavaScript clients, and
its Make, Zapier and n8n integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~seo-audit/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"startUrls": ["https://books.toscrape.com/"], "maxPagesPerSite": 10}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/seo-audit`.

### How much does it cost?

A page is $0.005 and you pay only for pages that answer with HTML, so a 500-page site costs $2.50. Checking links to
other sites, when you turn it on, adds $0.0003 for each link checked. Set a spending limit on a run and it stops there,
with its reports still written.

### Good to know

- **It reads the HTML a site sends.** It runs no browser, so it sees what a search engine sees before rendering. Text
  and tags that only scripts add aren't seen, and it flags pages where that seems to be most of them. It doesn't measure
  Core Web Vitals or check rankings, backlinks or keywords. Rich results are checked against Google's required
  properties, not its recommended ones, and from JSON-LD, not microdata.
- **One page a second per site,** or slower where a site's `robots.txt` asks, so 1,000 pages take about 20 minutes. Up to
  five sites run at once.
- **A site's refusal is respected.** It names itself in its User-Agent, `SeoAuditActor`, and reads each site's
  `robots.txt`. A path `robots.txt` refuses isn't fetched and is counted in `pagesBlockedByRobots`, and a site that
  answers 401, 403 or 451, shows a verification page or answers 429 twice is left alone for the rest of the run: its
  audit ends there, with what it has, and `stoppedBecause` says so. It uses no proxy and doesn't try to get past any of
  this. To audit your own site behind a firewall, allow `SeoAuditActor` there; a sign-in page that answers 401 or 403 ends
  the audit too, so list its path under **Skip URLs containing**.
- **A link to another site that refuses isn't called broken.** It's counted in `externalLinksNotChecked`.
- Only public addresses are fetched, not private networks. Links with a `?query` and links to files such as PDFs and
  images aren't followed.
- **The HTML report** is a single page, with no script and nothing loaded from elsewhere, kept in the run's key-value
  store as `report-<site>.html`. Its `reportUrl` opens without signing in, so it can go straight to a client; it lasts
  as long as the run's storage does, so save the file to keep it. It lists the 1,000 lowest-scoring pages.
- **Contact.** The Actor keeps nothing itself: results sit in the dataset and store of whoever ran it. Questions or requests go to
  spyridwn.pd@gmail.com.

### FAQ

#### Is it legal to audit a website?

It reads only public pages of the sites you point it at, as anyone could, without logging in, and it keeps to each
site's `robots.txt`. With the outside-link option on, it also sends one request to each outside link to see whether it
answers. What it returns is short: titles, descriptions, headings and counts, not the pages' text. You are
responsible for how you use it: audit sites you own or have a reason to look at, a site's terms may limit automated
access, and a page's title or headings can name people, whose personal data is protected by laws such as the GDPR and
the CCPA. If you're unsure, ask a lawyer; Apify's
[Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

#### Can it audit a site built with JavaScript?

Only as far as its HTML goes. A page whose text comes from scripts gets the `needs-javascript` warning, which is worth
knowing in itself: search engines may see little there too.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a check or a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

A website or page to start from. Pages of one site are audited together; each site gets its own report.

## `maxPagesPerSite` (type: `integer`):

Pages audited on each site, and so what a run can cost: each page is charged.

## `htmlReport` (type: `boolean`):

Writes each site's report as an HTML page to hand a client or a team: its score, what to fix first, broken links, duplicates and every page. Its link is the site row's reportUrl. Free.

## `reportTitle` (type: `string`):

The report's heading, such as "SEO audit for Acme, by Your Agency". Empty: "SEO audit of" the site. The report carries no other name.

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

Also checks that the links leading off each site still work. Each link checked is charged.

## `maxExternalLinksPerSite` (type: `integer`):

How many of a site's links to other sites to check.

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

Follows links to blog.example.com from example.com. www always counts as the same site.

## `followUrlsWithQuery` (type: `boolean`):

Follows links with a ?query. Off, as filters and sorting can make endless URLs of the same pages.

## `excludeUrlsContaining` (type: `array`):

Links with any of these in the URL aren't followed, such as /tag/ or /author/.

## Actor input object example

```json
{
  "startUrls": [
    "https://books.toscrape.com/"
  ],
  "maxPagesPerSite": 20,
  "htmlReport": true,
  "checkExternalLinks": false,
  "maxExternalLinksPerSite": 20,
  "includeSubdomains": false,
  "followUrlsWithQuery": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `sites` (type: `string`):

No description

## `reports` (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": [
        "https://books.toscrape.com/"
    ],
    "maxPagesPerSite": 20,
    "maxExternalLinksPerSite": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/seo-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": ["https://books.toscrape.com/"],
    "maxPagesPerSite": 20,
    "maxExternalLinksPerSite": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/seo-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": [
    "https://books.toscrape.com/"
  ],
  "maxPagesPerSite": 20,
  "maxExternalLinksPerSite": 20
}' |
apify call pikoulas/seo-audit --silent --output-dataset

```

## MCP server setup

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