# SEO Meta, OpenGraph & Schema.org Auditor (`cheremikin/seo-auditor`) Actor

Audit your pages for on-page SEO: title, meta description, canonical, hreflang, OpenGraph/Twitter tags, H1s, alt text, schema.org JSON-LD. Issues list + 0-100 score per page. Polite, respects robots.txt.

- **URL**: https://apify.com/cheremikin/seo-auditor.md
- **Developed by:** [Alexandr Cheremikin](https://apify.com/cheremikin) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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 Meta, OpenGraph & Schema.org Auditor

Audit the on-page SEO of your pages in one run: titles, meta descriptions, canonicals, hreflang, OpenGraph and Twitter cards, headings, image alt text, schema.org structured data, word count and links. Each page gets an **issues list** (code, severity, message) and a **score from 0 to 100**. The run summary counts every issue type and groups **duplicate titles and descriptions** across the site.

Give it page URLs, a sitemap, or just a site root. For a root it finds the sitemap via `robots.txt` or `/sitemap.xml`; if there is none, it audits the home page and its internal links.

### What it checks

| Area | Checks |
|---|---|
| HTTP | status, final URL, redirect count, blocked / challenge pages |
| Title | missing, length (30-60), duplicate across the run |
| Meta description | missing, length (70-160), duplicate across the run |
| Indexing | meta robots, `X-Robots-Tag`, noindex |
| Canonical | missing, multiple, self / other page / cross-domain |
| hreflang | all alternates listed, invalid language codes |
| OpenGraph | `og:title`, `og:description`, `og:image` (and whether the image returns 200), `og:type`, `og:url` |
| Twitter | `twitter:card`, title, description, image |
| Headings | H1 count and text, H2 count |
| Images | images without `alt` |
| Page | word count, `<html lang>`, viewport meta, internal / external link counts |
| Structured data | JSON-LD and microdata schema.org types, invalid JSON-LD, objects without `@type` |

### Output

One dataset row per page (example values from a real run):

| Field | Example |
|---|---|
| `url` / `finalUrl` | `https://www.python.org/psf/` / `https://www.python.org/psf-landing/` |
| `status`, `redirectCount` | `200`, `1` |
| `score` | `81` |
| `issues` | `[{"code": "CANONICAL_MISSING", "severity": "warning", "message": "No <link rel=\"canonical\">."}]` |
| `title`, `titleLength` | `"Welcome to Python.org"`, `21` |
| `metaDescription`, `metaDescriptionLength` | `"The official home of the Python Programming Language"`, `52` |
| `metaRobots`, `xRobotsTag` | `null` |
| `canonical`, `canonicalStatus` | `"https://apify.com/about"`, `"self"` |
| `hreflang` | `[{"hreflang": "de", "href": "https://example.com/de/"}]` |
| `og` | `{"title": "...", "description": "...", "image": "https://...png", "type": "website", "url": "..."}` |
| `ogImageStatus` | `200` |
| `twitter` | `{"card": "summary_large_image", ...}` |
| `h1Count`, `h1`, `h2Count` | `1`, `["About Apify"]`, `6` |
| `imageCount`, `imagesMissingAlt` | `24`, `0` |
| `wordCount`, `lang`, `viewport` | `828`, `"en"`, `"width=device-width, initial-scale=1"` |
| `schemaTypes`, `microdataTypes`, `jsonLdBlocks` | `["Organization", "WebSite"]`, `[]`, `2` |
| `internalLinks`, `externalLinks` | `112`, `9` |
| `error` | `null` (or e.g. `"HTTP 403: access denied or bot-protection challenge (not bypassed)"`) |

The **OUTPUT** record (key-value store) holds the summary: pages audited / failed, average score, totals per issue code, duplicate title and description groups with their URLs, how pages were discovered, and failed URLs.

### Issue codes

Score = 100 minus 15 per error, 5 per warning, 1 per notice (minimum 0).

| Code | Severity | Meaning |
|---|---|---|
| `TITLE_MISSING` | error | no `<title>` or empty |
| `TITLE_TOO_SHORT` / `TITLE_TOO_LONG` | warning | under 30 / over 60 characters |
| `TITLE_DUPLICATE` | warning | same title as other pages in the run |
| `META_DESCRIPTION_MISSING` | warning | no meta description |
| `META_DESCRIPTION_TOO_SHORT` / `_TOO_LONG` | notice | under 70 / over 160 characters |
| `META_DESCRIPTION_DUPLICATE` | warning | same description as other pages in the run |
| `NOINDEX` | warning | meta robots or `X-Robots-Tag` contains noindex |
| `CANONICAL_MISSING` | warning | no canonical link |
| `CANONICAL_MULTIPLE` | warning | more than one canonical |
| `CANONICAL_CROSS_DOMAIN` | warning | canonical points to another domain |
| `CANONICAL_NOT_SELF` | notice | canonical points to another URL on the same site |
| `HREFLANG_INVALID` | warning | malformed hreflang value |
| `OG_TITLE_MISSING` / `OG_DESCRIPTION_MISSING` / `OG_IMAGE_MISSING` | warning | OpenGraph tag missing |
| `OG_TYPE_MISSING` / `OG_URL_MISSING` | notice | OpenGraph tag missing |
| `OG_IMAGE_BROKEN` | warning | og:image does not return 200 |
| `OG_IMAGE_NOT_CHECKED` | notice | image host's robots.txt disallows checking it |
| `TWITTER_CARD_MISSING` | notice | no `twitter:card` |
| `H1_MISSING` / `H1_EMPTY` | warning | no H1 / empty H1 |
| `H1_MULTIPLE` | notice | more than one H1 |
| `IMG_ALT_MISSING` | warning | images without an alt attribute |
| `LANG_MISSING` | warning | no `lang` on `<html>` |
| `VIEWPORT_MISSING` | warning | no viewport meta |
| `SCHEMA_JSON_INVALID` | error | JSON-LD block is not valid JSON |
| `SCHEMA_TYPE_MISSING` | warning | JSON-LD object without `@type` |
| `SCHEMA_MISSING` | notice | no schema.org data at all |
| `THIN_CONTENT` | notice | under 300 words of visible text |
| `REDIRECT` / `REDIRECT_CHAIN` | notice / warning | 1 / 2+ redirects |
| `PAGE_TOO_LARGE` | warning | HTML over 8 MB, only the first part audited |
| `HTTP_ERROR`, `BLOCKED`, `ROBOTS_DISALLOWED`, `FETCH_FAILED`, `NOT_HTML` | error | page could not be audited (row has `error`, `score` is null, **not charged**) |

### Input

- **urls**: exact pages to audit.
- **sitemapUrls**: sitemap URLs or site roots.
- **maxPagesPerSite** (default 10): pages taken from each sitemap / site.
- **maxPages** (default 50): total limit per run.
- **checkOgImage** (default on): check that og:image URLs return 200.
- **requestDelaySecs** (default 1, min 0.5) and **maxConcurrency** (default 4): politeness settings.

### Use cases

- **Pre-launch / post-migration checks**: catch missing titles, broken canonicals and noindex left on from staging.
- **Social sharing previews**: find pages with no og:image, or an og:image that 404s, before links get shared.
- **Duplicate content**: spot templates that reuse the same title or description on many pages.
- **Structured data hygiene**: see which schema.org types each page has and catch broken JSON-LD.
- **Client reports for agencies and freelancers**: run on a schedule, export the dataset to CSV/Sheets, track the average score.
- **AI agents**: give an agent a compact JSON audit of a page instead of raw HTML.

### Pricing

Pay per event: **$0.003 per audited page** (plus a tiny run start fee). Pages that fail, are blocked or disallowed by robots.txt are not charged.

### Privacy & fair use

Audit your own sites or sites you are allowed to check. The actor reads `robots.txt` first and never fetches a disallowed URL, honours `Crawl-delay`, sends one request at a time per host with a clear User-Agent, and uses no proxies. It does not bypass bot protection: a 403 or challenge page is reported as a `BLOCKED` error row. It reads public page markup only and collects no personal data.

Built and maintained by Alexandr Cheremikin (Koh Samui, Thailand) with an AI assistant.

# Actor input Schema

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

Exact pages to audit. Use your own site or sites you are allowed to check.

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

A sitemap URL (e.g. https://example.com/sitemap.xml) or a site root (e.g. https://example.com). For a root, sitemaps are found via robots.txt or /sitemap.xml; if there is none, the home page and its internal links are used.

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

How many pages to take from each sitemap or site root.

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

Hard limit on audited pages per run (URLs + discovered pages).

## `checkOgImage` (type: `boolean`):

Request each og:image (HEAD) and report it if it does not return 200.

## `requestDelaySecs` (type: `number`):

Minimum pause between two requests to the same host. A longer robots.txt Crawl-delay always wins. Minimum 0.5.

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

Total parallel requests across all hosts (each host still gets one request at a time).

## Actor input object example

```json
{
  "sitemapUrls": [
    "https://apify.com",
    "https://www.python.org"
  ],
  "maxPagesPerSite": 10,
  "maxPages": 50,
  "checkOgImage": true,
  "requestDelaySecs": 1,
  "maxConcurrency": 4
}
```

# Actor output Schema

## `pages` (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 = {
    "sitemapUrls": [
        "https://apify.com",
        "https://www.python.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cheremikin/seo-auditor").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 = { "sitemapUrls": [
        "https://apify.com",
        "https://www.python.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cheremikin/seo-auditor").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 '{
  "sitemapUrls": [
    "https://apify.com",
    "https://www.python.org"
  ]
}' |
apify call cheremikin/seo-auditor --silent --output-dataset

```

## MCP server setup

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

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/4KmL0NUZ4Va8MNUtO/builds/26ClZEBg3EgzXZkpt/openapi.json
