# On-Page SEO Technical Audit & Metadata Scraper (`plainkitbin/seo-onpage-audit`) Actor

Audit the supplied page URLs for HTTP status, redirects, titles, metadata, headings, links, social tags, structured data, robots directives, and mobile viewport. Uses bounded HTTP requests only; it does not crawl links or run page JavaScript.

- **URL**: https://apify.com/plainkitbin/seo-onpage-audit.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.33 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Introduction

SEO On-Page Audit provides comprehensive technical evaluation of web pages, covering SEO on-page audit for titles, meta tags, headings and schema markup. It inspects HTML responses and headers for 19 core SEO ranking factors, including title and description presence and length, canonical URLs, robots meta rules, hreflang, heading hierarchy, image alt text, Open Graph, Twitter cards, and JSON-LD schema validity. The Actor returns an objective 0–100 score and actionable fix hints for every evaluated factor.

#### Use cases

- **Pre-publish content auditing**: Verify page titles, meta tags, heading structures, and schema markup before releasing landing pages or articles.
- **Competitor on-page benchmarking**: Compare technical SEO signals and structured data compliance across competitor URLs.
- **Automated quality gate in CI/CD**: Run automated on-page audits against staging environments to prevent SEO regressions.

### Tutorial

#### Step-by-step guide

1. Prepare a JSON input object specifying `urls` with 1 to 30 public HTTP or HTTPS web page addresses.
2. Run the Actor on the Apify platform or trigger it through an API call.
3. The Actor checks `robots.txt`, fetches the HTML, evaluates the 19 on-page checks, and calculates the audit score.
4. Export the resulting audit reports and issue hints in JSON, CSV, or Excel format.

### Pricing

The Actor is priced per audited page under the Pay-Per-Event model using the **`page-audited`** event.

| Usage tier | Price per `page-audited` event |
| --- | ---: |
| FREE | $0.005 |
| BRONZE | $0.0045 |
| SILVER | $0.004 |
| GOLD, PLATINUM, DIAMOND | $0.003333 |

#### Charge contract

Each row is pushed first and charged right after a successful push; a refused charge stops work and that row stays delivered and uncharged; a reached limit stops work after that row was charged; failed items are neither pushed nor charged. Non-2xx HTTP error pages (e.g. 404 or 500) and pages blocked by robots or network failures are delivered with error status and are not charged. Rows already in the dataset of a restarted run are skipped and not charged again; if the dataset of a restarted run cannot be read, the run fails with DATASET_READ_FAILED before any new row or charge.

#### Operational limits

- Accepts 1 to 30 URLs per execution (3,600 s run budget divided by 120 s worst case per page: 6 requests of 20 s each).
- Time-budget stop: pages are audited one after another; when one more worst-case page would pass 3,600 s, the run stops cleanly. Pages not audited are not output and not charged, and the status message says how many were left.
- Maximum page size is 1,000,000 bytes.
- Request socket timeout is 20 seconds, with at most 5 redirect hops followed.
- `robots.txt` response is limited to 500 KiB. Crawl-delay directives exceeding 50 seconds are skipped safely.
- Runs without executing JavaScript or crawling external page links.

### Input and output examples

#### Input example

```json
{
  "urls": [
    "https://www.python.org/about/"
  ]
}
```

#### Output example

```json
{
  "url": "https://www.python.org/about/",
  "final_url": "https://www.python.org/about/",
  "status": "OK",
  "http_status": 200,
  "score": 100,
  "title": {
    "text": "About Python™ | Python.org",
    "present": true,
    "length": 26
  },
  "meta_description": {
    "text": "The official home of the Python Programming Language",
    "present": true,
    "length": 52
  },
  "canonical": "https://www.python.org/about/",
  "h1_count": 1,
  "heading_order": ["h1", "h2"],
  "images_without_alt_count": 0,
  "link_counts": {
    "internal": 12,
    "external": 4
  },
  "open_graph": {
    "og:title": "About Python™",
    "og:description": "The official home of Python",
    "og:url": "https://www.python.org/about/",
    "og:image": "https://www.python.org/static/opengraph-icon.png"
  },
  "twitter_card": {
    "twitter:card": "summary_large_image",
    "twitter:title": "About Python™"
  },
  "json_ld": [
    {
      "script_index": 1,
      "types": ["WebSite"],
      "parses": true
    }
  ],
  "viewport": "width=device-width, initial-scale=1.0",
  "lang": "en",
  "response_bytes": 24500,
  "response_time_ms": 120.5,
  "score_checks": [
    {"rule_id": "HTTP_STATUS", "passed": true},
    {"rule_id": "TITLE_PRESENT", "passed": true},
    {"rule_id": "TITLE_LENGTH", "passed": true},
    {"rule_id": "META_DESCRIPTION_PRESENT", "passed": true},
    {"rule_id": "META_DESCRIPTION_LENGTH", "passed": true},
    {"rule_id": "CANONICAL_VALID", "passed": true},
    {"rule_id": "ROBOTS_INDEXABLE", "passed": true},
    {"rule_id": "HREFLANG_VALID", "passed": true},
    {"rule_id": "H1_COUNT", "passed": true},
    {"rule_id": "HEADING_ORDER", "passed": true},
    {"rule_id": "IMAGE_ALT", "passed": true},
    {"rule_id": "OPEN_GRAPH", "passed": true},
    {"rule_id": "TWITTER_CARD", "passed": true},
    {"rule_id": "JSON_LD_VALID", "passed": true},
    {"rule_id": "VIEWPORT", "passed": true},
    {"rule_id": "LANG", "passed": true},
    {"rule_id": "RESPONSE_BYTES", "passed": true},
    {"rule_id": "duplicate_title", "passed": true},
    {"rule_id": "duplicate_meta_description", "passed": true}
  ],
  "issues": [],
  "audited_at": "2026-10-12T00:00:00Z"
}
```

#### Output fields

| Field | Type | Description |
| --- | --- | --- |
| `url` | String | Original requested input URL |
| `final_url` | String | Destination URL after redirect chain |
| `status` | String | Processing status code (`OK`) |
| `http_status` | Integer | HTTP response status code (e.g. 200) |
| `score` | Integer | Overall audit score (0 to 100) based on passed checks |
| `title` | Object | Page title object containing text, presence, and character length |
| `meta_description` | Object | Description meta tag object with text, presence, and length |
| `canonical` | String | Canonical URL declaration found in page |
| `h1_count` | Integer | Count of H1 headings found in document |
| `heading_order` | Array | Sequence of heading tags encountered |
| `images_without_alt_count` | Integer | Count of `<img>` tags missing alt attributes |
| `link_counts` | Object | Counts of internal and external hyperlinks |
| `open_graph` | Object | Extracted Open Graph metadata attributes |
| `twitter_card` | Object | Extracted Twitter Card metadata properties |
| `json_ld` | Array | Parsed JSON-LD structured data scripts and schema types |
| `score_checks` | Array | Pass/fail status for all 19 audit rules |
| `issues` | Array | Actionable fix hints for failed rules |
| `audited_at` | String | ISO 8601 UTC timestamp of the audit |

#### Score and rule hints

The score is `floor(100 × passed checks / 19)`. All 19 checks have equal weight. `score_checks` reports each pass/fail result; failed checks appear in `issues` in this order.

| Rule ID | Fix hint |
| --- | --- |
| `HTTP_STATUS` | Return 2xx. |
| `TITLE_PRESENT` | Add a title. |
| `TITLE_LENGTH` | Use 30 to 60 characters. |
| `META_DESCRIPTION_PRESENT` | Add a description tag. |
| `META_DESCRIPTION_LENGTH` | Use 70 to 160 characters. |
| `CANONICAL_VALID` | Add one valid canonical URL. |
| `ROBOTS_INDEXABLE` | Remove noindex or none when indexable. |
| `HREFLANG_VALID` | Fix hreflang values and URLs. |
| `H1_COUNT` | Use one H1. |
| `HEADING_ORDER` | Start with H1; do not skip levels. |
| `IMAGE_ALT` | Add alt attributes to images. |
| `OPEN_GRAPH` | Add og:title, description, url, and image. |
| `TWITTER_CARD` | Add Twitter card fields. |
| `JSON_LD_VALID` | Fix malformed JSON-LD. |
| `VIEWPORT` | Add a viewport meta tag. |
| `LANG` | Set the html lang attribute. |
| `RESPONSE_BYTES` | Reduce HTML below 1,000,000 bytes. |
| `duplicate_title` | Use only one title tag. |
| `duplicate_meta_description` | Use only one description tag. |

### Actor recommendations

Pair this Actor with:

- **Sitemap URL Extractor**: Extract all indexable URLs from an XML sitemap to audit site-wide SEO health.
- **Web Page to Markdown Converter**: Convert audited web pages into clean Markdown documentation.
- **Readable Article Extractor**: Extract core readable copy from pages that pass SEO on-page checks.

### FAQ and support

#### How is the audit score calculated?

The score is `floor(100 × passed checks / 19)`. All 19 checks have equal weight.

#### Are failed HTTP pages charged?

No. Pages returning non-2xx codes, network timeouts, or blocked by robots are delivered with issue details but are not charged.

#### Does the Actor execute JavaScript?

No. Audits are performed directly on static HTML responses for fast and consistent results.

#### Support and inquiries

For issues, bug reports, or feature requests, contact support via the Apify Console.

# Actor input Schema

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

Provide 1 to 30 HTTP or HTTPS page URLs. The Actor audits only these URLs and does not crawl links.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org/about/"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items produced by this run.

# 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/about/"
    ]
};

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

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

```

## MCP server setup

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