# Bulk On-Page SEO & Page Speed Audit (`jackalalpha/bulk-seo-page-speed-audit`) Actor

Audits a list of URLs for on-page SEO and basic speed: title, meta, headings, canonical, indexability, images, links, structured data, TTFB, size and compression, with issues and a 0-100 score. Plain HTTP, no browser.

- **URL**: https://apify.com/jackalalpha/bulk-seo-page-speed-audit.md
- **Developed by:** [Jackal Alpha](https://apify.com/jackalalpha) (community)
- **Categories:** SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 pages audited

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/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

## Bulk SEO Audit Tool: On-Page Check & Page Speed

By Jackal Alpha.

This bulk SEO audit tool checks a list of URLs and returns one on-page SEO record per page: title, meta description, canonical, indexability, headings, word count, images, links, Open Graph, Twitter card and JSON-LD types, plus basic speed numbers (time to first byte, download time, HTML size, compression and cache header). Each record lists the problems found and a 0-100 score. Price: $0.003 per audited page ($3 per 1,000); failed, unreachable and non-HTML URLs are free. It reads pages as the server sends them, with no JavaScript rendering, and it audits only the URLs you give: no crawling, no broken-link test and no Core Web Vitals unless you add your own Google PageSpeed API key.

### What it does not do

- **No JavaScript rendering.** Pages are read as the server sends them. A page that builds its content in the browser is audited as served, so it may show a missing title, few words or no h1 even if real visitors see more.
- **Speed numbers are not real-user data.** They are measured from Apify's servers with one plain HTTP request. Time to first byte includes DNS, connection and TLS setup. They say nothing about rendering, images, scripts or Core Web Vitals.
- **Not a Lighthouse run**, unless you add your own Google PageSpeed Insights API key (see below).
- It audits the single URL you give. It does not crawl, check robots.txt, test broken links or compare against a sitemap.

### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| `urls` | list of strings | three public sites | Pages to audit. A missing scheme is treated as https. Fragments (`#...`) are dropped and repeats are skipped. |
| `pageSpeedApiKey` | secret string | empty | Your own Google PageSpeed Insights API key. Leave empty to skip PageSpeed. |
| `pageSpeedStrategy` | `mobile` or `desktop` | `mobile` | Device profile for PageSpeed. Only used with a key. |

Fixed settings: user agent `Mozilla/5.0 (compatible; JackalAlpha-SEO-Audit/0.1)`, 5 pages at a time, 20 second timeout, 5 MB HTML cap, up to 10 redirects, one retry on a network error or a 5xx response. Links to private, loopback or link-local addresses are refused, including after redirects.

### Output

One dataset record per input URL.

| Field | Meaning |
|---|---|
| `url`, `normalizedUrl`, `finalUrl` | The URL as given, after cleaning, and after redirects. |
| `statusCode`, `redirects`, `redirectCount` | Final status and the list of `{url, status}` redirect hops. |
| `https` | Whether the final URL is https. |
| `ttfbMs`, `downloadMs`, `htmlBytes` | Request start to first byte, request start to last byte, decoded HTML size. |
| `compression`, `cacheControl` | `content-encoding` and `cache-control` response headers. |
| `title`, `titleLength` | Title tag text and its length. |
| `metaDescription`, `metaDescriptionLength` | Meta description and its length. |
| `canonical` | Canonical link href, or null. |
| `metaRobots`, `xRobotsTag`, `indexable` | Robots meta (also googlebot), X-Robots-Tag header, and whether neither says `noindex` or `none`. |
| `h1Count`, `h1`, `h2Count` | Heading counts and h1 text. |
| `wordCount` | Words in the body, without scripts and styles. |
| `lang` | The html `lang` attribute. |
| `hasViewport` | Viewport meta present. |
| `imageCount`, `imagesMissingAlt` | Images, and images with no `alt` attribute. An empty `alt=""` counts as fine (decorative). |
| `internalLinks`, `externalLinks` | Links to the same site (www ignored) and to other sites. Anchors, mailto, tel and javascript links are skipped. |
| `openGraph`, `twitterCard` | Whether Open Graph or Twitter card tags are present. |
| `jsonLdTypes` | `@type` values found in JSON-LD blocks. |
| `hreflangCount` | Number of hreflang alternate links. |
| `issues` | List of `{code, severity, message}`. |
| `score` | 0-100, see below. |
| `pageSpeed` | Only with a key: Lighthouse performance score, lab metrics, and field data when Google has it. |
| `pageSpeedError` | Set if the PageSpeed call failed. The audit itself is still delivered and charged. |
| `checkedAt` | ISO time. |
| `error` | Set instead of the audit fields when the URL could not be audited. |

### Issues and score

Score = 100 minus 20 per error, 8 per warning and 3 per info issue, never below 0.

| Severity | Codes |
|---|---|
| error | `not_https`, `noindex`, `missing_title` |
| warning | `title_too_short` (under 10 characters), `title_too_long` (over 60), `missing_meta_description`, `missing_h1`, `multiple_h1`, `missing_canonical`, `images_missing_alt`, `no_viewport`, `slow_ttfb` (over 800 ms), `large_html` (over 1 MB), `no_compression` (HTML over 2 KB with no gzip, deflate or brotli) |
| info | `meta_description_too_short` (under 70), `meta_description_too_long` (over 160), `missing_lang`, `no_open_graph`, `thin_content` (under 300 words), `redirect_chain` (3 or more redirects) |

The thresholds are common rules of thumb, not Google rules. Treat the score as a way to sort a long list, not as a ranking prediction.

### Optional PageSpeed Insights

If you paste your own Google API key into `pageSpeedApiKey`, each audited page is also sent to Google's PageSpeed Insights v5 API (`runPagespeed`, performance category). You get `pageSpeed.performanceScore` (0-100), lab values (first contentful paint, largest contentful paint, total blocking time, cumulative layout shift, speed index) and, when Google has data for the page, field values from real Chrome users (`lcpMs`, `inpMs`, `cls`, `fcpMs`, `category`). Google lets you call the API without a key only for trial use, and the shared keyless quota is often exhausted, so a key is needed for bulk use. Your key, your Google quota. Each PageSpeed call can take 10 to 30 seconds. The key is stored as a secret input and is not written to the output.

### Pricing

Pay per event: **$0.003 per page audited** (event `page-audited`). A page counts when it returned an HTML response and the audit was delivered. Invalid URLs, timeouts, HTTP errors (4xx, 5xx), non-HTML content and oversize pages are free. Set a maximum charge on the run and it stops when the limit is reached; the status message says how many URLs were not processed.

Worked example: 1,000 URLs where 940 return HTML and 60 fail or are not HTML. You pay 940 x $0.003 = $2.82. Platform usage costs are separate from this event price.

### FAQ

**Why is a page I know exists marked with an error?** Some sites block automated requests or answer with a 403 or a bot check. The record shows the status.

**Why does the audit say no title or h1 on a modern web app?** The title and headings are probably added by JavaScript. This Actor does not run JavaScript.

**Can I audit a page behind a login?** No. Only public pages.

# Actor input Schema

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

Public http(s) page URLs to audit, one per line (up to 5,000 per run). A missing scheme is treated as https. Repeats are skipped. Links to private or internal addresses are refused.

## `pageSpeedApiKey` (type: `string`):

Your own Google API key with the PageSpeed Insights API enabled. When set, each audited page also gets a Lighthouse performance score and Core Web Vitals. Leave empty to skip. Google quota applies to your key.

## `pageSpeedStrategy` (type: `string`):

Device profile Lighthouse simulates. Only used with a PageSpeed API key.

## Actor input object example

```json
{
  "urls": [
    "https://example.com",
    "https://www.wikipedia.org",
    "https://developer.mozilla.org"
  ],
  "pageSpeedStrategy": "mobile"
}
```

# 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://example.com",
        "https://www.wikipedia.org",
        "https://developer.mozilla.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jackalalpha/bulk-seo-page-speed-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://example.com",
        "https://www.wikipedia.org",
        "https://developer.mozilla.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("jackalalpha/bulk-seo-page-speed-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://example.com",
    "https://www.wikipedia.org",
    "https://developer.mozilla.org"
  ]
}' |
apify call jackalalpha/bulk-seo-page-speed-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jackalalpha/bulk-seo-page-speed-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/2ik2KpFYzMcca23GP/builds/35IGBy4WHGgQtI5oS/openapi.json
