# SEO On-Page Audit and Meta Tag Checker (Bulk) (`pampa-data/seo-on-page-audit`) Actor

Bulk on-page SEO audit for URLs or a whole sitemap: status, redirects, title and meta description length, canonical, noindex, robots.txt, hreflang, H1/H2, word count, Open Graph, JSON-LD, image alt and links, with issues per page.

- **URL**: https://apify.com/pampa-data/seo-on-page-audit.md
- **Developed by:** [Pampa](https://apify.com/pampa-data) (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 On-Page Audit and Meta Tag Checker (Bulk)

Audit the on-page SEO of **thousands of pages at once**. Paste a list of URLs, or just a website, and get one row per page with its **status code, redirect chain, title and meta description (with lengths), canonical, noindex, robots.txt, hreflang, H1 and H2 headings, word count, Open Graph and Twitter tags, JSON-LD structured data, image alt text and links**, plus a plain-English **list of issues** to fix.

Give a website or a sitemap and the Actor finds the sitemaps itself (from robots.txt or `/sitemap.xml`, including sitemap indexes and `.gz` files) and audits every page in it. A site summary lists how many pages have each issue and which pages **share the same title or meta description**.

No browser, one plain request per page, so it is fast and cheap: **$2 per 1,000 pages**, about 20 times less than the popular all-in-one audit tools.

Use it to:

- **audit a client's site** before a proposal or after a migration: missing titles, duplicate descriptions, noindex left on, broken canonicals, redirect chains,
- **check a list of URLs** from Google Search Console, a crawl or a spreadsheet,
- **monitor key pages** on a schedule and catch an accidental `noindex` or a 404 the day it happens,
- **compare competitors' pages**: title length, word count, headings and structured data,
- **feed AI and content tools** with clean page metadata.

#### What data you get

One row per page:

| Field | Example | Meaning |
| --- | --- | --- |
| `url`, `finalUrl` | `http://python.org/` → `https://www.python.org/` | Requested page and where it ended up |
| `statusCode`, `redirectCount`, `redirectChain` | `200`, `1`, `[{ "url": "http://python.org/", "statusCode": 301 }]` | Every redirect hop |
| `responseTimeMs`, `pageSizeKb` | `310`, `51.1` | Server speed and HTML size |
| `indexable` | `true` | 200, HTML, no noindex, not blocked by robots.txt, canonical not pointing elsewhere |
| `issues`, `issueCount`, `issuesText` | `["title_too_short", "multiple_h1"]` | What to fix (codes and plain text, see below) |
| `title`, `titleLength` | `Welcome to Python.org`, `21` | Title tag |
| `metaDescription`, `metaDescriptionLength` | `The official home of ...`, `52` | Meta description |
| `canonical`, `canonicalIsSelf` | `https://example.com/a`, `true` | Canonical link (tag or HTTP header) |
| `metaRobots`, `xRobotsTag`, `noindex`, `nofollow` | `noindex, follow` | Robots directives |
| `robotsTxtAllowed` | `true` | Whether robots.txt lets Googlebot crawl the page |
| `lang`, `hreflang` | `en`, `[{ "lang": "es", "url": "..." }]` | Language and alternates |
| `h1`, `h1Count`, `h2`, `h2Count`, `headingCounts` | `["Pricing"]` | Headings |
| `wordCount` | `957` | Visible words on the page |
| `openGraph`, `twitterCard` | `{ "title": "...", "image": "..." }` | Social preview tags |
| `jsonLdTypes`, `jsonLdInvalidBlocks` | `["Organization", "Product"]` | Structured data types found, and broken JSON-LD blocks |
| `imageCount`, `imagesMissingAlt`, `imagesEmptyAlt` | `12`, `3`, `1` | Image alt text coverage |
| `internalLinkCount`, `externalLinkCount`, `nofollowLinkCount` | `64`, `12`, `0` | Links on the page (turn on **Include link lists** to get every link with its anchor text) |
| `viewport`, `charset`, `server`, `lastModified`, `xFrameOptions` | | Technical basics |

##### Issues checked

| Code | Meaning |
| --- | --- |
| `http_error` | Page does not return 200 |
| `redirected`, `redirect_chain` | URL redirects once, or more than once |
| `insecure_http` | Final page is not on HTTPS |
| `slow_response` | Server took more than 1.5 s |
| `title_missing`, `title_too_long`, `title_too_short`, `multiple_titles` | Title tag missing, over 60 or under 30 characters, or repeated |
| `description_missing`, `description_too_long`, `description_too_short` | Meta description missing, over 160 or under 70 characters |
| `h1_missing`, `multiple_h1` | No H1 or more than one |
| `canonical_missing`, `canonical_other_page`, `multiple_canonicals` | Canonical problems |
| `noindex`, `blocked_by_robots_txt` | Page kept out of search engines |
| `lang_missing`, `viewport_missing` | No `lang` attribute or mobile viewport |
| `images_missing_alt` | Images without an `alt` attribute |
| `low_word_count` | Fewer than 300 words |
| `og_missing`, `structured_data_missing` | No Open Graph title/image, no JSON-LD |

##### Site summary

The `SUMMARY` record (in the run's key-value store and the Output tab) has the number of pages audited and indexable, the average response time, how many pages have each issue, and the groups of indexable pages that share the same title or meta description.

#### How to use it

1. Paste page URLs in **Page URLs**, and/or a website or sitemap in **Websites or sitemaps to audit in full**.
2. Optionally set **Maximum pages** and a URL filter such as `/blog/` to audit one section.
3. Run it and export to JSON, CSV or Excel, or call it from the API, Make, Zapier or n8n. Schedule it to watch your key pages.

Example input:

```json
{
    "urls": ["https://www.python.org/", "http://wordpress.org/"],
    "sitemapUrls": ["example.com"],
    "sitemapUrlFilter": "/blog/",
    "maxPages": 500
}
```

#### Pricing

You pay per page audited: **$2 per 1,000 pages** ($0.002 per page). Pages that answer 404 or 500 are audited and charged like any page (finding them is part of the audit). Pages that block automated requests (401, 403, 429, 503), unreachable pages, files that are not web pages (images, PDFs, videos listed in a sitemap), invalid URLs and sitemap errors are listed in the `FAILED` record and **not charged**. Set a maximum cost per run in Apify and the Actor stops cleanly when it is reached.

#### How it works and limits

- One plain HTTP request per page (up to 5 MB of HTML), redirects followed one by one so every hop is recorded, and robots.txt read once per website.
- No browser: the audit sees the HTML the server sends. Titles or meta tags added later by JavaScript on single-page apps are not seen (Google often sees them after rendering).
- Polite: at most 3 requests at the same time to one website. Up to 10,000 pages per run.
- Some sites block automated requests. They are reported as failed and not charged; we do not try to get around a site's blocking. Audit your own sites and your clients' sites freely.
- Thresholds (60/30 characters for titles, 160/70 for descriptions, 300 words) follow common SEO tool defaults; use the length fields to apply your own.

#### Related Actors

- [Website Popularity Rank Checker](https://apify.com/pampa-data/website-popularity-rank): Tranco top 1M rank and trend of the same websites, to see how big a site or competitor is.
- [Website Tech Stack Detector](https://apify.com/pampa-data/website-tech-stack-detector): CMS, analytics, CDN and frameworks of the sites you audit.
- [Keyword Suggestions Scraper](https://apify.com/pampa-data/keyword-suggestions-scraper): Google, YouTube and Bing autocomplete ideas for the titles and headings you write.
- [Google Trends Scraper](https://apify.com/pampa-data/google-trends-scraper): interest over time for the keywords your pages target.

# Changelog

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

# Actor input Schema

## `urls` (type: `array`):

Pages to audit, one per line. Full URLs (https://example.com/pricing) or domains (example.com, audits the homepage). Up to 10,000 per run.

## `sitemapUrls` (type: `array`):

Audit every page listed in a website's sitemap. Give a sitemap URL (https://example.com/sitemap.xml, indexes and .gz files work) or just the website (example.com): the sitemaps are found from robots.txt or /sitemap.xml.

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

Stop after this many pages in total (page URLs first, then sitemap pages).

## `sitemapUrlFilter` (type: `string`):

Optional regular expression; only sitemap pages whose URL matches are audited. Example: /blog/ or /products/.

## `checkRobotsTxt` (type: `boolean`):

Read each website's robots.txt once and report whether Googlebot may crawl each page (robotsTxtAllowed).

## `includeHeadings` (type: `boolean`):

Adds the text of up to 30 H2 headings per page. H1 headings are always included.

## `includeLinks` (type: `boolean`):

Adds every internal and external link (URL and anchor text) on each page. Counts are always included.

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

How many pages to fetch at the same time. At most 3 at once per website, to stay polite.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/",
    "https://developer.mozilla.org/en-US/docs/Web/HTML",
    "http://wordpress.org/"
  ],
  "maxPages": 1000,
  "checkRobotsTxt": true,
  "includeHeadings": true,
  "includeLinks": false,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

One row per page: status, indexability and the issues found.

## `indexability` (type: `string`):

No description

## `content` (type: `string`):

No description

## `allResults` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `failed` (type: `string`):

Unreachable or blocked pages and sitemap errors (not charged).

# 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 = {
    "urls": [
        "https://www.python.org/",
        "https://developer.mozilla.org/en-US/docs/Web/HTML",
        "http://wordpress.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pampa-data/seo-on-page-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 = { "urls": [
        "https://www.python.org/",
        "https://developer.mozilla.org/en-US/docs/Web/HTML",
        "http://wordpress.org/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("pampa-data/seo-on-page-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 '{
  "urls": [
    "https://www.python.org/",
    "https://developer.mozilla.org/en-US/docs/Web/HTML",
    "http://wordpress.org/"
  ]
}' |
apify call pampa-data/seo-on-page-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pampa-data/seo-on-page-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/RewXUGNu4PZ9uG9b1/builds/2DplVeQFP6zEWqElt/openapi.json
