# SEO Page Audit: Meta Tags, Schema, Canonical, Robots (`pretty_theory/seo-page-audit`) Actor

Bulk on-page SEO and indexability audit. Score 0 to 100 per URL with prioritized issues and fixes: title, description, headings, canonical, hreflang, JSON-LD, Open Graph, robots.txt, redirects. No browser, no proxy.

- **URL**: https://apify.com/pretty_theory/seo-page-audit.md
- **Developed by:** [Pretty Theory Data](https://apify.com/pretty_theory) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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 Page Audit: Meta Tags, Schema, Canonical, Robots to JSON

Bulk on-page SEO and indexability checker. Paste page URLs and get one JSON row per page with a 0 to 100 score, a letter grade and a prioritized issue list with a fix for each problem. Export to JSON, CSV or Excel.

No browser, no proxy, no login, no crawling. One request per page you supply. Skipped or failed pages cost nothing.

### What it checks

- Title and meta description: missing, too short, too long.
- Headings: missing H1, multiple H1s, heading counts H1 to H6.
- Canonical link, meta robots and X-Robots-Tag noindex/nofollow, so you see if a page is indexable.
- hreflang alternates, html lang, viewport, charset, favicon.
- Open Graph and Twitter card tags, JSON-LD structured data: parsed types and invalid JSON.
- robots.txt: found or not, whether the page is allowed, sitemaps it lists.
- HTTPS, mixed content, redirect chain, server response time.
- Images without alt text, word count, internal and external link counts.

### Input

- urls: pages to audit.
- respectRobotsTxt: default true. Pages the site disallows for automated clients are skipped and not charged.
- includeSocialAndSchema: add Open Graph, Twitter and JSON-LD details to each row.

Example:

```json
{
  "urls": ["https://www.python.org/", "https://example.com/pricing"],
  "respectRobotsTxt": true
}
```

### Sample output

```json
{
  "url": "https://www.python.org/",
  "statusCode": 200,
  "score": 75,
  "grade": "C",
  "indexable": true,
  "title": "Welcome to Python.org",
  "titleLength": 21,
  "metaDescriptionLength": 52,
  "canonical": "",
  "h1Count": 5,
  "hreflang": [],
  "jsonLdTypes": ["WebSite"],
  "issueCount": 5,
  "issues": [
    { "severity": "warning", "code": "title-short", "message": "Title is 21 characters.", "fix": "Aim for 30 to 60 characters." },
    { "severity": "info", "code": "h1-multiple", "message": "5 H1 headings.", "fix": "Use a single H1 and H2 to H6 for sections." }
  ]
}
```

### Pricing

Pay per event: $4.00 per 1,000 audited pages (one event per page). Far below full-crawl SEO audit actors that charge about $40 per 1,000 pages. Pages that are skipped, blocked by robots.txt or fail to load are not charged.

### Good to know

- It audits the HTML the server returns. Pages that build their content with JavaScript may show thin content or missing tags.
- It sends an honest User-Agent and reads the site's public robots.txt.
- Self-check: run with selfCheck true to audit fixed public pages and fail the run if they come back wrong. Good for a daily schedule.
- Related actors by the same publisher: Sitemap URL Extractor (get every URL to audit), RSS Feed Reader, Domain Email Security Audit.

# Actor input Schema

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

Pages to audit. One HTTP request per page. The actor does not crawl links.

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

Skip pages the site's robots.txt disallows for automated clients. Skipped pages are not charged.

## `includeSocialAndSchema` (type: `boolean`):

Add the raw Open Graph tags, Twitter card tags and parsed JSON-LD types to each row.

## `selfCheck` (type: `boolean`):

Ignores the other fields, audits fixed public pages and fails the run if they come back wrong. For scheduled smoke tests.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/"
  ],
  "respectRobotsTxt": true,
  "includeSocialAndSchema": true,
  "selfCheck": false
}
```

# Actor output Schema

## `results` (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 = {
    "urls": [
        "https://www.python.org/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pretty_theory/seo-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/"] }

# Run the Actor and wait for it to finish
run = client.actor("pretty_theory/seo-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/"
  ]
}' |
apify call pretty_theory/seo-page-audit --silent --output-dataset

```

## MCP server setup

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