# Website SEO & Accessibility Audit: Score, Fixes, Tech (`lx112/website-seo-audit`) Actor

Audit any web page for SEO, security headers, accessibility (WCAG checks on the HTML) and speed. One 0-100 score per page with section scores, prioritized findings, robots.txt and sitemap checks and the detected tech stack. No proxies.

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

## Pricing

from $10.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

## Website SEO & Accessibility Audit: Score, Fixes, Tech

Give it a list of pages and get back, for each one, a **0-100 audit score** with four section scores
(**SEO, security headers, accessibility, speed**), a prioritized list of what to fix, robots.txt and
sitemap checks, and the **technologies** the site runs on. One clean result per URL, in seconds, with
no browser, proxy or API key.

- **SEO:** title and meta description (presence and length), H1s, canonical, `lang`, Open Graph and
  Twitter cards, structured data, `noindex`, robots.txt and sitemap.xml.
- **Security headers:** HTTPS, HSTS, Content-Security-Policy (including `unsafe-inline`),
  X-Frame-Options / `frame-ancestors`, X-Content-Type-Options, Referrer-Policy, Permissions-Policy,
  cookie flags.
- **Accessibility:** static WCAG 2.1 A/AA checks on the HTML: image alt text, form labels, link and
  button names, heading order, iframe titles, page language, zoom blocking and more, each finding
  tagged with its WCAG criterion.
- **Speed:** time to first byte, HTML size, compression, redirects, DOM size, scripts, stylesheets,
  images, inline script weight, third-party hosts and caching headers.
- **Tech stack:** CMS, frameworks, CDNs, analytics and more, from headers and page signatures.

### Who uses this

- **SEO and web agencies:** audit a prospect list or a client's key pages in bulk and attach the
  findings to a pitch or a monthly report.
- **Developers and QA:** check pages for header, SEO and accessibility regressions before and after a
  release.
- **Lead gen:** find sites with weak SEO, missing security headers or a given tech stack.
- **AI agents:** a structured page audit as JSON, without running Lighthouse.

### Input

| Field | Example | Notes |
|---|---|---|
| Pages to audit | `https://apify.com`, `basecamp.com` | One audit and one result per URL |

### Output (one dataset item per URL)

```json
{
  "input": "https://apify.com",
  "url": "https://apify.com/",
  "finalUrl": "https://apify.com/",
  "status": 200,
  "score": 93,
  "pass": false,
  "security": {
    "score": 94,
    "pass": true,
    "findings": [
      { "id": "csp-unsafe-inline", "severity": "minor", "detail": "CSP allows 'unsafe-inline' scripts" },
      { "id": "missing-referrer-policy", "severity": "minor", "detail": "No Referrer-Policy header" }
    ]
  },
  "seo": {
    "score": 100,
    "pass": true,
    "findings": [],
    "title": "Apify: Marketplace of ready-to-run tools for AI",
    "h1": ["114,232 tools for your AI"],
    "canonical": "https://apify.com/",
    "robotsTxt": true,
    "sitemap": true
  },
  "accessibility": {
    "score": 88,
    "pass": false,
    "findings": [{ "id": "frame-title", "severity": "serious", "detail": "WCAG 4.1.2: 1 iframes have no title" }]
  },
  "performance": {
    "score": 82,
    "pass": true,
    "findings": [{ "id": "large-html", "severity": "moderate", "detail": "HTML is 496 KB" }],
    "metrics": { "ttfb_ms": 456, "html_bytes": 507656, "compressed": "gzip", "redirects": 0, "dom_nodes": 1581, "scripts": 47 }
  },
  "tech": [
    { "name": "Amazon CloudFront", "category": "CDN" },
    { "name": "Next.js", "category": "Framework" }
  ],
  "auditedAt": "2026-11-08T16:55:10.735Z",
  "error": null
}
```

Pages that can't be fetched (unknown host, timeout, not HTML) still get an item with `error` and an
HTTP-style `status`; those aren't charged.

### Pricing

Pay per event: charged per **page audited**. Pages that fail cost nothing beyond Apify's actor start.

### Limits

- The actor reads the HTML the server sends and doesn't run a browser, so content a single-page app
  builds with JavaScript isn't audited, and speed figures are server-side (TTFB, page weight), not
  Core Web Vitals.
- Accessibility checks are the ones that can be decided from the HTML alone; colour contrast and
  keyboard behaviour need a browser and a person.
- Sites behind bot protection may refuse the request; the item then reports the status in `error`.
- Only public hosts are fetched; private and local addresses are refused.

# Actor input Schema

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

Page URLs to audit ("https://apify.com" or just "apify.com"). Each URL is one audit and one result.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com",
    "https://basecamp.com",
    "https://www.allbirds.com"
  ]
}
```

# Actor output Schema

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

One item per page; failed ones carry an error and are not charged.

# 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://apify.com",
        "https://basecamp.com",
        "https://www.allbirds.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lx112/website-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 = { "urls": [
        "https://apify.com",
        "https://basecamp.com",
        "https://www.allbirds.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lx112/website-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 '{
  "urls": [
    "https://apify.com",
    "https://basecamp.com",
    "https://www.allbirds.com"
  ]
}' |
apify call lx112/website-seo-audit --silent --output-dataset

```

## MCP server setup

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