# On-Page SEO Audit (Titles, Meta, Headings, Schema, Links) (`gigsmith/on-page-seo-audit`) Actor

Audit any list of URLs for on-page SEO: title, meta description, headings, canonical, robots/noindex, Open Graph, image alt text, links, structured data, word count, HTTPS and redirects. 0-100 score plus a fix list per page. $0.006 per page, no Google API.

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

## Pricing

from $6.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 Audit: check titles, meta, headings, schema and links for any URL list

**On-Page SEO Audit** checks every page you give it for the on-page SEO problems that matter, and returns a **0–100 score**, a **prioritised fix list** and every on-page field as one dataset row per URL. Titles, meta descriptions, headings, canonical tags, noindex, Open Graph, image alt text, links, structured data, word count, HTTPS and redirects are all covered, and it **costs $0.006 per page**.

The checks are deterministic HTML and HTTP rules that run inside the Actor. There are no Google API calls and no third-party SEO services, so results are fast, repeatable and cheap enough to run on every page of a site every week.

### What does this SEO audit check?

- 🏷️ **Title tag**: missing, too short, too long (30–60 characters), duplicated
- 📝 **Meta description**: missing, too short or too long (70–160 characters)
- 🚫 **Indexability**: `noindex` / `nofollow` in meta robots or the `X-Robots-Tag` header
- 🔗 **Canonical**: missing, pointing elsewhere, or multiple canonical tags
- 🔠 **Headings**: missing or multiple H1, empty H1, H1 identical to the title, skipped heading levels, full H1–H6 counts
- 📄 **Content**: visible word count, thin content (under 300 words), text-to-HTML ratio
- 🖼️ **Images**: images without `alt`, empty alt, with a sample of offending image URLs
- 🌐 **Links**: internal, external and nofollow counts, links with no anchor text, and optional **broken-link checking**
- 📣 **Social tags**: Open Graph (`og:title`, `og:description`, `og:image`...) and Twitter card
- 🧩 **Structured data**: JSON-LD types, invalid JSON-LD blocks, microdata types
- 🔒 **Technical**: HTTP status, redirect chain, HTTPS, mixed content, response time, HTML size, `lang`, viewport, charset, favicon, hreflang

### Who uses an on-page SEO audit?

- **SEO agencies** auditing client sites and tracking fixes week over week
- **Site owners and marketers** checking new landing pages before launch
- **Developers** adding an SEO gate to CI or a release checklist via the Apify API
- **Content teams** finding thin pages, missing descriptions and image alt text at scale

### How to run an SEO audit on a list of URLs

1. Click **Try for free**.
2. Paste the pages into **URLs to audit**.
3. Optionally tick **Check links for broken ones**.
4. Click **Start**. The **Scores** view lists each page's score and issue counts; the **Issues** view has one row per issue, ready to sort and assign.

#### Input example

```json
{
  "startUrls": [
    { "url": "https://books.toscrape.com/" },
    { "url": "https://www.example.com/" }
  ],
  "checkLinks": true,
  "maxLinksToCheck": 20
}
```

| Field | What it does |
|---|---|
| `startUrls` | Pages to audit. Each URL is fetched once; there is no crawling |
| `checkLinks` | Also request the links on each page and report broken ones (4xx/5xx) |
| `maxLinksToCheck` | Links checked per page (default 20) |
| `includeLinkLists` | Add every internal and external link URL to the row |
| `maxPages`, `maxConcurrency`, `requestDelaySecs` | Run size, parallelism and per-site delay |

#### Output example

This is real output from a test run on `https://books.toscrape.com/` with link checking on (5 links):

```json
{
  "url": "https://books.toscrape.com/",
  "status": "ok",
  "error": null,
  "finalUrl": "https://books.toscrape.com/",
  "httpStatus": 200,
  "redirectChain": [],
  "responseSeconds": 1.142,
  "https": true,
  "title": "All products | Books to Scrape - Sandbox",
  "titleLength": 40,
  "metaDescription": "",
  "metaDescriptionLength": 0,
  "metaRobots": "NOARCHIVE,NOCACHE",
  "indexable": true,
  "canonical": null,
  "lang": "en-us",
  "h1": [
    "All products"
  ],
  "headingCounts": {
    "h1": 1,
    "h2": 0,
    "h3": 20,
    "h4": 0,
    "h5": 0,
    "h6": 0
  },
  "wordCount": 320,
  "images": 20,
  "imagesMissingAlt": 0,
  "internalLinks": 94,
  "externalLinks": 0,
  "openGraph": {
    "title": null,
    "description": null,
    "image": null,
    "url": null,
    "type": null,
    "site_name": null
  },
  "structuredData": {
    "jsonLdBlocks": 0,
    "jsonLdInvalidBlocks": 0,
    "jsonLdTypes": [],
    "microdataTypes": []
  },
  "mixedContent": 1,
  "linkCheck": {
    "checked": 5,
    "broken": [],
    "redirected": 0
  },
  "score": 88,
  "issueCounts": {
    "error": 0,
    "warning": 2,
    "notice": 4
  },
  "issues": [
    {
      "severity": "warning",
      "code": "meta-description-missing",
      "message": "No meta description."
    },
    {
      "severity": "warning",
      "code": "mixed-content",
      "message": "1 resources load over insecure http:// on an https page."
    },
    {
      "severity": "notice",
      "code": "canonical-missing",
      "message": "No rel=\"canonical\" link."
    },
    {
      "severity": "notice",
      "code": "heading-level-skip",
      "message": "Heading levels skip (h1->h3)."
    },
    {
      "severity": "notice",
      "code": "og-incomplete",
      "message": "Open Graph tags missing: og:title, og:description, og:image."
    },
    {
      "severity": "notice",
      "code": "structured-data-missing",
      "message": "No structured data (JSON-LD or microdata)."
    }
  ]
}
```

Pages that can't be audited come back with `"status": "error"` and a plain-English reason, for example `"The page returned HTTP 404, so it could not be audited. Nothing was charged."`. The run's `OUTPUT` record has a summary with counts and charged events.

#### How the score works

Every page starts at 100. Each **error** costs 10 points, each **warning** 4 and each **notice** 1, down to a minimum of 0. Errors are things that can stop a page ranking (noindex, no title, no H1, broken links, invalid JSON-LD, plain http). Warnings hurt click-through or quality signals. Notices are best-practice suggestions.

### How much does an SEO audit cost?

This Actor uses **pay-per-event** pricing. You pay only for pages that were audited.

| Event | Price | When it's charged |
|---|---|---|
| `page-audited` | **$0.006** | Once per HTML page fetched and audited, link checking included |

- No monthly rental. Apify platform usage is included in the price. The only other charge is Apify's standard run-start event of $0.00005 per run.
- 1,000 pages cost **$6**, and 10,000 pages cost **$60**.
- Pages that return 4xx/5xx, aren't HTML, fail to load or are blocked by robots.txt are **not charged**.
- Set **Max charge per run** in the run options to cap your spend. When it's reached, the remaining pages are marked `skipped`, free of charge.

### FAQ

**Does it measure Core Web Vitals or PageSpeed?** No. This Actor focuses on on-page HTML and HTTP checks and does not call Google PageSpeed Insights or run Lighthouse. Response time and HTML size are reported as simple speed signals.

**Does it crawl my whole site?** No, it audits the URLs you give it. Feed it your sitemap URLs or the output of a crawler Actor to audit a whole site.

**Does it render JavaScript?** No. It audits the HTML your server returns, which is what most search engines see first.

**Is it polite to the sites it audits?** Yes. It follows robots.txt, waits at least 1 second between requests to the same site (or the site's `Crawl-delay`, if longer), and identifies itself as `GigsmithBot`.

**Can I schedule it?** Yes. Use Apify Schedules to run it weekly and compare scores over time, or call it from Make, Zapier, n8n or the Apify API.

**Something went wrong?** Open an issue on the **Issues** tab with the run link and I'll fix it.

### Keywords

SEO audit, on-page SEO checker, SEO audit tool, meta tag checker, title tag checker, meta description checker, H1 checker, canonical checker, noindex checker, image alt text checker, broken link checker, structured data checker, schema markup checker, bulk SEO audit, technical SEO audit, SEO API

***

Made by **Gigsmith**.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to audit. Each URL is fetched once (no crawling). Pages blocked by robots.txt are skipped and not charged.

## `checkLinks` (type: `boolean`):

Also request the links found on each page (HEAD, then GET if refused) and report broken ones (4xx/5xx). Included in the page price; slower, because each site is still rate-limited.

## `maxLinksToCheck` (type: `integer`):

Only used with link checking.

## `includeLinkLists` (type: `boolean`):

Adds every internal and external link URL (up to 500 each).

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

Stop after this many URLs.

## `requestDelaySecs` (type: `integer`):

Minimum gap between two requests to one website. A robots.txt Crawl-delay is honoured when it is longer.

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

Pages processed at once across different sites. Requests to the same site still wait for the delay above.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    },
    {
      "url": "https://www.example.com/"
    }
  ],
  "checkLinks": false,
  "maxLinksToCheck": 20,
  "includeLinkLists": false,
  "maxPages": 500,
  "requestDelaySecs": 1,
  "maxConcurrency": 3
}
```

# Actor output Schema

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

Default dataset items, shown in the "Scores" view.

## `issuesView` (type: `string`):

Default dataset items, shown in the "Issues" view.

## `detailsView` (type: `string`):

Default dataset items, shown in the "All fields" view.

## `runSummary` (type: `string`):

JSON summary of the run: URLs processed, ok/error/skipped counts, HTTP requests and charged events.

# 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 = {
    "startUrls": [
        {
            "url": "https://books.toscrape.com/"
        },
        {
            "url": "https://www.example.com/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gigsmith/on-page-seo-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 = { "startUrls": [
        { "url": "https://books.toscrape.com/" },
        { "url": "https://www.example.com/" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gigsmith/on-page-seo-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 '{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/"
    },
    {
      "url": "https://www.example.com/"
    }
  ]
}' |
apify call gigsmith/on-page-seo-audit --silent --output-dataset

```

## MCP server setup

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