# On-Page SEO Audit: Titles, Meta, Headings (`praise-most-high/onpage-seo-checker`) Actor

Reads each page you list once and returns one flat row of on-page SEO signals: title, meta description, h1 headings, canonical, robots directives, counts and a coded issues list. Honours robots.txt and Crawl-delay.

- **URL**: https://apify.com/praise-most-high/onpage-seo-checker.md
- **Developed by:** [angel nguyen](https://apify.com/praise-most-high) (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 $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: Titles, Meta, Headings

Run an SEO audit on any list of pages and get one row per page. This on-page SEO checker reads each page's title, meta description, h1 headings, canonical link and robots directives, counts words, images and links, and adds a coded list of issues. Use it as a meta description checker for a handful of URLs or as a bulk SEO audit for up to 1,000 pages in one run.

### What the Actor returns

Reads each page you list once, honours robots.txt and Crawl-delay, returns one flat typed row of on-page signals per page with a coded issues list, charges per page with no run fee of its own, and gives every failed page an error row that says why.

- Values are as each page serves them, without running its JavaScript.
- The Actor reads only the URLs you give. It follows no links and fetches no images, scripts or stylesheets.
- Rows hold head fields, heading text and counts. They never hold body text.

Measured from our own box on 2026-11-23: the example input below returned 3 page rows and 0 error rows in 3.252 run seconds.

### Input

Only `urls` is required. The one-field happy path:

```json
{ "urls": ["https://www.nist.gov/"] }
```

The full example input:

```json
{
  "urls": ["https://www.nist.gov/", "https://www.usgs.gov/", "https://www.va.gov/"],
  "maxPages": 3
}
```

| Field | Type | Default | Meaning |
|---|---|---|---|
| `urls` | array of strings | (required) | Absolute http or https URLs, 1 to 1000. A URL that repeats after its `#fragment` is removed is read once and counted as a duplicate. |
| `maxPages` | integer | 100 | Read at most this many unique URLs, in input order (1 to 1000). The rest get no request. |
| `mode` | string | `seo` | `seo` returns the on-page SEO row. `productSchema` also checks each page's Product structured data (see Product schema mode). Any other value gives one `INVALID_INPUT` row naming `mode`, and no request is sent. |

### Output fields

A page row holds the first 22 fields; in productSchema mode it also holds `productSchema`, after `checkedAt`. An error row holds `error`, `errorCode`, `input`, `url`, `httpStatus` and `errorMessage`.

| Field | Type | Meaning |
|---|---|---|
| `url` | string | The input URL as given. |
| `finalUrl` | string | The URL after redirects. |
| `httpStatus` | integer or null | The final HTTP status. |
| `title` | string or null | Text of the first `title` in `head`, else the first anywhere. |
| `titleLength` | integer | Title length in Unicode code points; 0 when null. |
| `metaDescription` | string or null | Content of the first `meta name="description"`. |
| `metaDescriptionLength` | integer | Its length in code points; 0 when null. |
| `h1` | array of strings | Text of each non-empty `h1`, in document order, at most 20. |
| `h1Count` | integer | Count of non-empty `h1` elements. |
| `canonical` | string or null | Resolved href of the first `link rel="canonical"`. |
| `robotsMeta` | string or null | Content of the first `meta name="robots"`, lower-cased. |
| `xRobotsTag` | string or null | The `X-Robots-Tag` response header. |
| `hreflangCount` | integer | `link rel="alternate"` elements with an `hreflang` attribute. |
| `schemaTypes` | array of strings | Unique JSON-LD `@type` values, top level and `@graph`. |
| `wordCount` | integer | Words in the body text, with script, style, noscript, template and svg removed. |
| `imagesTotal` | integer | Count of `img` elements. |
| `imagesMissingAlt` | integer | `img` elements with no `alt` attribute (`alt=""` counts as present). |
| `internalLinks` | integer | Links to the same host (a leading `www.` is ignored). |
| `externalLinks` | integer | Links to another http or https host. |
| `issues` | array of objects | Each `{code, severity}`, in the fixed order below. |
| `sourceUrl` | string | The page the row was read from. |
| `checkedAt` | string | Run time, ISO 8601 UTC. |
| `productSchema` | object | productSchema mode only: the product structured data check described under Product schema mode. |
| `error` | boolean | Error rows only: true. |
| `errorCode` | string | Error rows only: the code. |
| `input` | string | Error rows only: the input value or field that failed. |
| `errorMessage` | string | Error rows only: why. |

### Issue codes

These thresholds are this Actor's own rules, not a search engine's.

| Code | Severity | When |
|---|---|---|
| `TITLE_MISSING` | error | no title |
| `TITLE_TOO_LONG` | warning | title over 60 characters |
| `TITLE_TOO_SHORT` | warning | title of 1 to 9 characters |
| `META_DESCRIPTION_MISSING` | warning | no meta description |
| `META_DESCRIPTION_TOO_LONG` | warning | over 160 characters |
| `META_DESCRIPTION_TOO_SHORT` | notice | 1 to 49 characters |
| `H1_MISSING` | warning | no non-empty h1 |
| `H1_MULTIPLE` | notice | more than one h1 |
| `CANONICAL_MISSING` | notice | no canonical link |
| `CANONICAL_OTHER_URL` | notice | canonical differs from `finalUrl` (host case and one trailing slash ignored) |
| `NOINDEX` | error | `robotsMeta` or `xRobotsTag` holds `noindex` |
| `IMAGES_MISSING_ALT` | warning | one or more images with no alt attribute |
| `SCHEMA_PARSE_ERROR` | notice | a JSON-LD block that is not valid JSON |
| `LOW_WORD_COUNT` | notice | fewer than 200 words |

### Your pages, their terms

A page's content belongs to its publisher, and you are responsible for using the output under that publisher's terms. A page whose title or heading names a person returns that text as published.

### A real output row

The first row of the example run, measured on 2026-11-23:

```json
{
  "url": "https://www.nist.gov/",
  "finalUrl": "https://www.nist.gov/",
  "httpStatus": 200,
  "title": "National Institute of Standards and Technology",
  "titleLength": 46,
  "metaDescription": "NIST promotes U.S. innovation and industrial competitiveness by advancing measurement science, standards, and technology in ways that enhance economic security and improve our quality of life.",
  "metaDescriptionLength": 192,
  "h1": [],
  "h1Count": 0,
  "canonical": "https://www.nist.gov/",
  "robotsMeta": null,
  "xRobotsTag": null,
  "hreflangCount": 0,
  "schemaTypes": ["Article"],
  "wordCount": 670,
  "imagesTotal": 20,
  "imagesMissingAlt": 0,
  "internalLinks": 132,
  "externalLinks": 21,
  "issues": [
    { "code": "META_DESCRIPTION_TOO_LONG", "severity": "warning" },
    { "code": "H1_MISSING", "severity": "warning" }
  ],
  "sourceUrl": "https://www.nist.gov/",
  "checkedAt": "2026-11-23T15:45:50.119Z"
}
```

### Robots and pacing

- robots.txt is read once per host per run, before any other request to that host.
- The product token is `onpage-seo-checker`; its group is used when present, else the `*` group.
- Crawl-delay is honoured up to 30 s. A host asking for more gets a `ROBOTS_DISALLOWED` row and no request.
- At least 1 s passes between two requests to one host, and the Actor sends one request at a time.
- A disallowed path, redirect targets included, gets no request.

### Errors

Every failed input or page gives one error row. Error rows are never charged.

| Code | When |
|---|---|
| `NO_INPUT` | `urls` is empty or absent |
| `INVALID_INPUT` | a URL is not absolute http or https, more than 1000 URLs, or `maxPages` out of range |
| `ROBOTS_DISALLOWED` | robots.txt disallows the path, or asks for a Crawl-delay over 30 s |
| `ROBOTS_UNREACHABLE` | robots.txt answered 429, 5xx or nothing; read as complete disallow |
| `SOURCE_HTTP_ERROR` | a non-2xx final status, a timeout, a DNS failure, a reset, or more than 5 redirects |
| `SOURCE_TOO_LARGE` | a body over 5 MB |
| `NOT_HTML` | the page is not text/html or application/xhtml+xml |
| `NO_RESULTS` | no page row and no other error row; the message names the counts |

A run with at least one page row ends SUCCEEDED. A run with none ends FAILED, and its status message names the error codes. The `SUMMARY` record in the key-value store counts requests, redirects and error rows per URL.

### Product schema mode

Set `mode` to `productSchema` to see whether a product page carries the structured data that merchant listings and AI shopping product feeds ask for. Each page row keeps its 22 SEO fields, with the same values, and gains one more field, `productSchema`. Error rows do not change.

What it reads:

- JSON-LD blocks (script elements of type application/ld+json; top level, arrays and @graph) whose @type is or includes Product.
- Then microdata: elements with itemscope and an itemtype ending in schema.org/Product. A value comes from the content attribute, else href or src on link, a and img elements, else the text; a nested itemscope is read as an object.
- The first Product on the page is checked, JSON-LD before microdata. `productCount` counts every Product found. When `offers` is a list, the first offer is checked.
- A page with no Product gives `source` `none`, every row `missing` (the two `UNVERIFIED` rows excepted) and a score of 0.

The `productSchema` object holds `source` (`json-ld`, `microdata` or `none`), `productCount`, `readinessScore`, `requiredOk`, `requiredTotal`, `recommendedOk`, `recommendedTotal` and `checks`: one row per property below, in this order, each with `property`, `status`, `schemaOrg`, `google`, `openai` and `reason`.

| Property | Requirement | schema.org | Google | OpenAI |
|---|---|---|---|---|
| `name` | required | defined | required | title required |
| `image` | required | defined | required | image_url required |
| `offers` | required | defined | required | none |
| `offers.price` | required | defined | required | price required |
| `offers.priceCurrency` | required | defined | required | price required |
| `description` | required | defined | recommended | description required |
| `sku` | required | defined | recommended | item_id required |
| `brand.name` | required | defined | recommended | brand required |
| `offers.availability` | required | defined | recommended | availability required |
| `offers.url` | required | defined | recommended | url required |
| `offers.seller.name` | required | defined | UNVERIFIED | seller_name required |
| `gtin` | recommended | defined | recommended | gtin optional |
| `mpn` | recommended | defined | recommended | mpn optional |
| `material` | recommended | defined | recommended | material optional |
| `color` | recommended | defined | recommended | color optional |
| `size` | recommended | defined | recommended | size optional |
| `category` | recommended | defined | recommended | product_category optional |
| `offers.itemCondition` | recommended | defined | recommended | condition optional |
| `isVariantOf or inProductGroupWithID` | recommended | defined | recommended | group_id conditional |
| `offers.shippingDetails` | recommended | defined | recommended | shipping optional |
| `offers.hasMerchantReturnPolicy` | recommended | defined | recommended | return_policy optional |
| `aggregateRating` | recommended | defined | recommended | star_rating optional |
| `target_countries` | unverified | UNVERIFIED | UNVERIFIED | target_countries required |
| `store_country` | unverified | UNVERIFIED | UNVERIFIED | store_country required |

A row is required when Google or OpenAI requires it, else recommended. The schema.org column reads defined when the property appears on the schema.org Product or Offer page. The Google column for `offers.seller.name` reads `UNVERIFIED` because Google's merchant listing page did not settle its level when we checked it. `gtin` also covers `gtin8`, `gtin12`, `gtin13` and `gtin14`. `brand.name` also accepts a brand given as plain text.

Each row has one of four statuses:

- `present`: the property is on the page and passes the rules below.
- `missing`: the property is absent, or an empty or whitespace-only string.
- `invalid`: the property is on the page but breaks a rule below.
- `UNVERIFIED`: an OpenAI feed field that no page property holds.

A property is `invalid` in these cases, and only these:

- `image` is not an absolute http or https URL (a string, the first of a list, or an ImageObject url).
- `offers` is an AggregateOffer. Google merchant listings need an Offer.
- `offers.price` is not a number above 0. A numeric string counts; "0" and a price with a currency sign do not.
- `offers.priceCurrency` is not three upper-case letters.
- `offers.availability` is not a schema.org ItemAvailability value, bare or after an http or https schema.org/ prefix.
- `offers.itemCondition` is not a schema.org OfferItemCondition value, read the same way.
- `offers.url` is not an absolute http or https URL.
- `sku` holds whitespace.
- A `gtin` value is not 8, 12, 13 or 14 digits with a valid GS1 check digit.

The score is this Actor's own measure, not Google's or OpenAI's. Only `present` counts:

readinessScore = round(70 x requiredOk / 11 + 30 x recommendedOk / 11)

The two `UNVERIFIED` rows, `target_countries` and `store_country`, are required fields of the OpenAI product feed. They describe where a merchant sells and where the store is based, and no page property holds them, so their status is always `UNVERIFIED` and they are left out of every count.

The specs the table was checked against:

- schema.org Product: https://schema.org/Product
- Google merchant listing structured data: https://developers.google.com/search/docs/appearance/structured-data/merchant-listing
- OpenAI product feed spec: https://developers.openai.com/commerce/specs/file-upload/products

### Pricing

- **0.006 USD per page audited** (6.00 USD per 1,000 pages).
- Start charge: 0.00005 USD per started GB of run memory, at least one; at the default 4 GB that is 0.0002 USD per run.
- productSchema mode charges the same page-audited event, once per page row, and has no price of its own.

Error rows and duplicates are free.

### For the Apify MCP server and AI agents

Each row is flat and typed, with `url` as the key. Branch on the `issues` codes, and on `error` with `errorCode` for failed pages. A short example request:

```json
{ "urls": ["https://www.usgs.gov/", "https://www.va.gov/"], "maxPages": 2 }
```

### Support and feedback

Open an issue on the Issues tab of this Actor's page. Issues are answered within 14 days.

# Actor input Schema

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

The pages to check. Absolute http or https URLs, 1 to 1000 per run. Each page is read once; no links are followed.

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

Read at most this many unique URLs, in input order (1 to 1000). URLs past the limit get no request and are counted in the run SUMMARY as notDeliveredAfterLimit.

## `mode` (type: `string`):

seo (the default) returns the on-page SEO row. productSchema returns the same row plus a productSchema object: the page's Product structured data checked against schema.org, Google merchant listing and OpenAI product feed fields, with a 0 to 100 readiness score. Same price per page in both modes.

## Actor input object example

```json
{
  "urls": [
    "https://www.nist.gov/",
    "https://www.usgs.gov/",
    "https://www.va.gov/"
  ],
  "maxPages": 3,
  "mode": "seo"
}
```

# Actor output Schema

## `rows` (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 = {
    "urls": [
        "https://www.nist.gov/",
        "https://www.usgs.gov/",
        "https://www.va.gov/"
    ],
    "maxPages": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("praise-most-high/onpage-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://www.nist.gov/",
        "https://www.usgs.gov/",
        "https://www.va.gov/",
    ],
    "maxPages": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("praise-most-high/onpage-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://www.nist.gov/",
    "https://www.usgs.gov/",
    "https://www.va.gov/"
  ],
  "maxPages": 3
}' |
apify call praise-most-high/onpage-seo-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,praise-most-high/onpage-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/4rbZZLVynMxIFgL6N/builds/ntaBgSZtg1oZ3bNZA/openapi.json
