# On-Page SEO Audit - Meta Tags & SEO Checker (`faglez/on-page-seo-audit`) Actor

Audit every page of a website for SEO: titles, meta descriptions, H1s, canonicals, noindex, alt text, Open Graph and schema, with duplicates found site-wide and an HTML report.

- **URL**: https://apify.com/faglez/on-page-seo-audit.md
- **Developed by:** [Chaseb Gonzalez](https://apify.com/faglez) (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 $8.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

## On-Page SEO Audit

Audit the on-page SEO of a whole website in one run: titles, meta descriptions, headings, canonicals, noindex, language, mobile viewport, image alt text, Open Graph and structured data, with **duplicate titles and descriptions found across the site**. Every page gets a score and a list of issues, and you get a readable **HTML report** that says what to fix first and how.

Enter a website, and the Actor finds its pages in the sitemap. Or paste a list of pages. No browser, so it's fast and cheap: about $8.00 per 1,000 pages.

### What does it do?

- **Finds the pages for you** from the website's sitemaps (via `robots.txt` or the usual sitemap addresses). No sitemap? It follows links from the home page. Or audit **only the pages you list**.
- **Reads 30+ SEO fields per page:** title and length, meta description and length, first H1, H1 and H2 counts, canonical (self, other page or missing), meta robots and `X-Robots-Tag`, indexable or not, `lang`, viewport, hreflang, Open Graph, Twitter card, schema.org types from JSON-LD, word count, images without alt text, internal and external link counts, page size and load time.
- **Flags 21 kinds of issues** in three levels:
  - **Errors:** missing title, page blocked from Google (noindex).
  - **Warnings:** duplicate title, missing or duplicate meta description, missing H1, no mobile viewport, more than one canonical.
  - **Notices:** title or description too long or too short, several H1s, missing canonical or canonical to another page, missing language, images without alt text, thin content, no social preview, broken structured data, sitemap listing a redirect.
- **Finds duplicates site-wide:** pages that share a title or meta description, grouped in the report, and each row says which page it duplicates.
- **A shareable HTML report** with a score from 0 to 100 per website, issues by type with how to fix them, and the pages to fix first.
- **Polite and safe:** 2 pages at a time per website, retries on temporary errors, follows `robots.txt`, and stops at your page limit or spending limit.

### Who uses it?

- **SEO consultants and agencies:** a first on-page audit of a new client's site in minutes, with a report you can forward.
- **Website owners and marketers:** find the pages with missing descriptions, duplicate titles or accidental noindex before Google does.
- **Content teams:** check titles and descriptions of hundreds of blog posts at once and export them to a spreadsheet to rewrite.
- **Developers and QA:** run it after each release or a site migration to catch a missing canonical or a noindex left over from staging.
- **AI agents and automations:** get clean JSON per page to feed into a content or SEO workflow.

### How to use it

1. Enter one or more websites, for example `https://example.com`, or paste pages into **Only these pages**.
2. Optional: set **Maximum pages per website** (you pay per audited page).
3. Click **Start**. When the run finishes, open **SEO report (HTML)** in the Output tab, or download the table as Excel, CSV or JSON. The table has three views: pages and issues, titles and descriptions, and technical and social fields.
4. To track a website over time, create a **Schedule** (for example monthly).

#### Input example

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

#### Output example

A real row from the input above: the blog page has no H1 and a title too long for Google results.

```json
{
    "website": "https://crawlee.dev",
    "url": "https://crawlee.dev/blog",
    "finalUrl": "https://crawlee.dev/blog",
    "statusCode": 200,
    "inSitemap": true,
    "score": 87,
    "issues": ["missing-h1", "title-too-long"],
    "errors": 0,
    "warnings": 1,
    "notices": 1,
    "title": "Crawlee Blog - learn how to build better scrapers | Crawlee for JavaScript · Build reliable crawlers. Fast.",
    "titleLength": 107,
    "metaDescription": "Guides and tutorials on using Crawlee, the most reliable open-source web scraping and browser automation library for JavaScript and Node.js developers.",
    "metaDescriptionLength": 151,
    "h1": null,
    "h1Count": 0,
    "h2Count": 12,
    "canonicalUrl": "https://crawlee.dev/blog",
    "canonicalStatus": "self",
    "canonicalCount": 1,
    "metaRobots": null,
    "xRobotsTag": null,
    "indexable": true,
    "lang": "en",
    "viewport": true,
    "hreflang": [
        { "lang": "en", "url": "https://crawlee.dev/blog" },
        { "lang": "x-default", "url": "https://crawlee.dev/blog" }
    ],
    "ogTitle": "Crawlee Blog - learn how to build better scrapers | Crawlee for JavaScript · Build reliable crawlers. Fast.",
    "ogDescription": "Crawlee helps you build and maintain your crawlers. It's open source, but built by developers who scrape millions of pages every day for a living.",
    "ogImage": "https://crawlee.dev/img/crawlee-js-og.png",
    "twitterCard": "summary_large_image",
    "structuredDataTypes": ["Blog"],
    "invalidStructuredData": 0,
    "wordCount": 1576,
    "imageCount": 28,
    "imagesMissingAlt": 0,
    "internalLinks": 41,
    "externalLinks": 29,
    "duplicateTitleOf": null,
    "duplicateDescriptionOf": null,
    "htmlSizeBytes": 66715,
    "responseTimeMs": 28,
    "auditedAt": "2026-11-10T01:51:52.867Z"
}
```

`score` is 100 minus 25 per error, 10 per warning and 3 per notice. `duplicateTitleOf` names an earlier page with the same title, so you know which two pages to tell apart.

The run also saves:

- **REPORT**: the HTML report, one section per website.
- **SUMMARY**: the same report as JSON (score, counts per issue, duplicate groups, pages to fix first, pages not audited and why), handy for dashboards.

### Use it from the API or an AI agent

- **AI agents:** connect your AI assistant to the [Apify MCP server](https://mcp.apify.com) and it can find and run this Actor on its own. The Actor's ID is `faglez/on-page-seo-audit`.
- **API:** start a run with your input, then read the dataset, or the `REPORT` and `SUMMARY` records from the run's key-value store. The Apify clients for JavaScript and Python make this a few lines of code.
- **No code:** set up schedules, webhooks and integrations (Make, Zapier, Google Sheets, Slack and more) from the Actor's Integrations tab.

### How much does it cost?

You pay per audited page. Pages that could not be audited (errors, redirects to other websites, files, pages blocked by `robots.txt`) are free.

| Event | Price |
| --- | --- |
| Each audited page | $8.00 per 1,000 pages |
| Actor start | $0.001 per run |

Example: auditing a 10,000-page website costs about $80. Set **Maximum pages per website**, or a maximum cost per run, and the Actor stops cleanly at your limit with a report of what it audited.

### Tips

- **Start small:** audit 20 pages first to see the report, then raise the limit.
- **Only some pages:** paste them into **Only these pages**, or link a text file with one address per line.
- **Broken links too?** This Actor reads the content of each page. To find broken links, server errors and redirect chains, run the [Website Health Check](https://apify.com/faglez/website-health-check) on the same website.

### Questions

**Why was a page not audited?** Pages that answer with an error, redirect to another website, are files (PDF, images) or are blocked by `robots.txt` are skipped, not charged, and listed in the report under "Not audited" with the reason.

**Does it run JavaScript?** No. It reads the HTML the server sends, like search engines do on their first pass. Websites that build all their content with JavaScript in the browser may show up with missing titles or thin content.

**Why are the length limits 60 and 160 characters?** Google cuts off titles and descriptions by width, about 60 and 160 characters. These are guidelines, so length issues are notices, not errors.

**Which page is flagged as a duplicate?** The second page found with the same title or description. The report groups all pages that share one.

**Is it allowed?** The Actor reads public pages only, at most 2 at a time per website, and respects `robots.txt`. Audit websites you own or have permission to audit, or public pages in a reasonable amount.

**Which pages are audited?** The address you enter is audited first (for example `https://example.com/en.html`), then the pages from the website's sitemaps, up to **Maximum pages per website**. Without a sitemap, the Actor follows links from the home page. To audit exactly the pages you choose, list them in **Only these pages**.

**Is a short title in Japanese, Chinese or Korean flagged unfairly?** No. These characters take about twice the width of Latin letters in search results, so they count double in the title and description length checks.

**Can I audit a competitor's website?** Yes, public pages can be audited like any visitor or search engine would see them. Keep runs to a reasonable size, and the Actor follows the website's `robots.txt`.

**Found a bug or need a feature?** Open an issue in the Issues tab and I will look into it.

# Changelog

This Actor's version history is a separate document: https://apify.com/faglez/on-page-seo-audit/changelog.md

# Actor input Schema

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

Websites to audit, for example https://example.com. Pages are taken from each website's sitemaps (no sitemap: links from the home page are followed). Only the website part of each address is used. For long lists, link a text file with one website per line.

## `pageUrls` (type: `array`):

Audit exactly these pages instead of (or on top of) whole websites. Duplicate titles are compared among pages of the same website. For long lists, link a text file with one address per line.

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

Audit at most this many pages of each website (the first ones in your list, then the sitemaps). The report still counts every page the sitemaps list. You pay per audited page.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for a page before skipping it (after 2 retries). Skipped pages are not charged.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "pageUrls": [],
  "maxPages": 10,
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

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

No description

## `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": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("faglez/on-page-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": [{ "url": "https://crawlee.dev" }],
    "maxPages": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("faglez/on-page-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": [
    {
      "url": "https://crawlee.dev"
    }
  ],
  "maxPages": 10
}' |
apify call faglez/on-page-seo-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,faglez/on-page-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/N4nJ8h87vegDl3jQQ/builds/EujJeCbDlO3Jwk6RR/openapi.json
