# On-Page SEO Checker (`properscraper/on-page-seo-checker`) Actor

Audit a list of pages for on-page SEO in bulk: title and meta description, headings, canonical and robots tags, image alt text, word count, links, Open Graph, structured data and hreflang. Each page gets a 0 to 100 score and a plain-English list of what to fix.

- **URL**: https://apify.com/properscraper/on-page-seo-checker.md
- **Developed by:** [jake mcclure](https://apify.com/properscraper) (community)
- **Categories:** SEO tools, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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 Checker

Audit a list of pages for on-page SEO in bulk. Each page gets a score from 0 to 100, a plain-English list of what to fix, and every fact behind it: title and meta description, headings, canonical and robots tags, image alt text, word count, links, Open Graph tags, structured data and hreflang.

No browser is used, so thousands of pages take minutes and cost very little.

Use it to:

- audit every page of a site before or after a redesign or migration
- find pages with missing or over-long titles and descriptions, no H1, or thin content
- catch pages accidentally set to `noindex`, or with a canonical link pointing elsewhere
- check a competitor's pages, or a client's, without installing anything
- track on-page health over time by running it on a schedule

To audit a whole site, get its page addresses with a sitemap tool first and paste them in.

### Input

| Field | What it does |
|---|---|
| **Pages** | One per line: the full address of each page to audit. A bare domain such as `example.com` audits its home page. |
| **Obey robots.txt** | On by default: a page its site asks crawlers not to read is skipped and not charged for. |

```json
{
    "urls": ["https://example.com/", "https://example.com/pricing", "https://example.com/blog/launch"]
}
```

### Output

One record per page:

```json
{
    "input": "https://example.com/pricing",
    "url": "https://example.com/pricing",
    "score": 81,
    "issueCount": 2,
    "issues": [
        "The page has no meta description.",
        "The page has no structured data (JSON-LD)."
    ],
    "issuesBySeverity": { "high": 1, "medium": 0, "low": 1 },
    "redirected": false,
    "redirectedFrom": null,
    "isHttps": true,
    "responseTimeMs": 184,
    "pageSizeBytes": 48211,
    "title": "Pricing | Example",
    "titleLength": 17,
    "metaDescription": null,
    "metaDescriptionLength": 0,
    "canonicalUrl": "https://example.com/pricing",
    "robotsMeta": null,
    "noindex": false,
    "nofollow": false,
    "language": "en",
    "hasViewport": true,
    "h1": ["Simple pricing"],
    "h1Count": 1,
    "h2Count": 4,
    "wordCount": 612,
    "imageCount": 9,
    "imagesMissingAlt": 0,
    "internalLinkCount": 31,
    "externalLinkCount": 4,
    "openGraph": { "title": "Pricing", "description": null, "image": "https://example.com/og.png", "type": "website" },
    "twitterCard": "summary_large_image",
    "structuredData": [],
    "hreflang": [],
    "scrapedAt": "2026-11-18T12:00:00.000Z"
}
```

#### What is checked

| Severity | Issue |
|---|---|
| High (15 points each) | The page is set to `noindex`; no title; no meta description; no H1 heading; not served over HTTPS |
| Medium (8 points each) | Title longer than 60 or shorter than 15 characters; no viewport tag; no canonical link, or a canonical pointing to another address; fewer than 200 words of text; images without alt text; structured data that cannot be read |
| Low (4 points each) | Meta description longer than 160 or shorter than 50 characters; more than one H1; no declared language; missing or incomplete Open Graph tags; no structured data; the address redirects |

`score` starts at 100 and loses the points of each issue found, down to 0. `issues` lists them most serious first.

A `SUMMARY` record in the run's key-value store lists any pages that could not be read and why.

### Pricing

Pay per result. You are charged once for each page saved to the dataset, at the per-result price shown on this page.

A page that could not be read (it did not answer, returned an error, or its site's robots.txt does not allow it) is not saved and not charged for. Lines that are not web addresses and repeated addresses cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

### Limits

- Pages are read without running their JavaScript, as most search engine crawlers first see them. Tags that a script adds later are not seen.
- The audit covers what is on the page. It does not measure loading speed, backlinks, rankings or keyword use.
- The score is a guide to on-page hygiene, not a prediction of rankings. An image with an empty `alt=""` is treated as deliberately decorative and is not reported.
- Requests to the same site are spaced half a second apart. At most 2 MB of each page is read.
- Some sites refuse automated requests. The Actor identifies itself honestly and does not disguise itself or work around a refusal.

### Is this allowed?

The Actor reads each public page once, identifies itself in its User-Agent, obeys robots.txt by default and paces its requests.

# Actor input Schema

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

One per line: the full address of each page to audit. A bare domain such as example.com audits its home page.

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

Skip a page its site's robots.txt asks crawlers not to read. Skipped pages are not charged for.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://wordpress.org/about/"
  ],
  "respectRobotsTxt": true
}
```

# Actor output Schema

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

One record per page audited.

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

Totals for the run and, for each batch of pages, how many results were saved and any error.

# 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://apify.com",
        "https://wordpress.org/about/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("properscraper/on-page-seo-checker").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://apify.com",
        "https://wordpress.org/about/",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("properscraper/on-page-seo-checker").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://apify.com",
    "https://wordpress.org/about/"
  ]
}' |
apify call properscraper/on-page-seo-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,properscraper/on-page-seo-checker"
        }
    }
}
```

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/hAqtKubTjVhbNimAG/builds/gQoj1A3r3hHcC4pjt/openapi.json
