# Website Audit → Prioritized Fix List (`moonweil/website-qa`) Actor

Crawl your website and get one report: SEO, accessibility, security and broken-link issues on every page, each scored and ranked by severity with the URLs affected and a plain-language fix. Optional performance scoring. Hand the list straight to a developer.

- **URL**: https://apify.com/moonweil/website-qa.md
- **Developed by:** [Aleksandr Jelohhin](https://apify.com/moonweil) (community)
- **Categories:**
- **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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Website Audit → Prioritized Fix List

Point this Actor at your website and get back **one report that tells you what to
fix first**. It crawls every page and checks it for SEO, accessibility, security
and broken links, scores each area, and then rolls everything up into a ranked,
plain-language to-do list — issue, severity, the URLs affected, and a
recommendation you can hand straight to a developer.

No setup, no API keys, no dashboards to learn. Run it on demand, on a schedule,
or from the API.

### What it checks

| Area | What you get |
|------|--------------|
| **SEO** | Title, meta description, canonical, robots directives, H1s, headings, language, Open Graph & Twitter cards, structured data, word count — with clear warnings (missing title, duplicate H1, noindex, thin content …). |
| **Accessibility** | WCAG 2.1 A/AA checks on the rendered page: violations with severity, the failing elements, and a score. |
| **Security** | Missing or weak security headers (HSTS, CSP, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, frame protection), insecure cookies, mixed content, HTTP→HTTPS. Passive only — nothing is probed or attacked. |
| **Broken links** | Every link and image checked, with the page each dead URL sits on. |
| **Performance** *(optional)* | Lighthouse-style scores and Core Web Vitals (FCP, LCP, CLS, TBT, Speed Index) per page. Off by default — it's the slowest check. |

Turn any area on or off in the `checks` input. The Actor only starts a browser
when a check needs one, so an SEO-and-links run stays fast and cheap.

### Input

```json
{
  "startUrls": [{ "url": "https://example.com" }],
  "crawl": true,
  "maxPages": 100,
  "checks": { "seo": true, "accessibility": true, "brokenLinks": true, "security": true, "lighthouse": false }
}
```

### Output

**Dataset** — one row per page:

```json
{
  "url": "https://example.com/pricing",
  "status": "completed",
  "scores": { "overall": 84, "seo": 92, "accessibility": 76, "security": 81 },
  "seo": { "title": "Pricing", "warnings": ["missing_meta_description"] },
  "accessibility": { "counts": { "critical": 0, "serious": 3 } },
  "security": { "warnings": ["missing_csp"] },
  "brokenLinks": { "broken": 2 }
}
```

**Key-value store** — a run `SUMMARY` (pages scanned, average scores, totals) and
a **`REPORT`**: the prioritized fix list.

```json
{
  "health": "needs_attention",
  "overallScore": 68,
  "topIssues": [
    { "id": "seo:missing_title", "severity": "high", "affectedPages": 12,
      "recommendation": "Add one unique, descriptive title to every affected page.",
      "affectedUrls": ["https://example.com/a", "https://example.com/b"] }
  ]
}
```

### Use it for

- A pre-launch or monthly site health check
- Handing a clean, prioritized backlog to a dev or agency
- Catching regressions in CI (fail the build on a dropping score)
- Auditing client sites at scale from the API

### Pricing

Pay per page audited, with accessibility and performance billed only on the pages
where you enable them — you never pay for a check you didn't run.

# Actor input Schema

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

One or more URLs to begin analysis from.

## `crawl` (type: `boolean`):

Follow same-domain links from the start URLs. When off, only the start URLs are analyzed.

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

Hard limit on the number of pages analyzed. Protects compute cost.

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

How many pages to process in parallel.

## `sameDomainOnly` (type: `boolean`):

Restrict the crawl to the hostname of each start URL (www and apex are treated as equal).

## `includeSubdomains` (type: `boolean`):

Also follow links to subdomains of the start URL's registrable domain.

## `useSitemap` (type: `boolean`):

Seed the crawl from the site's /sitemap.xml (and /sitemap\_index.xml) in addition to the start URLs.

## `respectRobotsTxt` (type: `boolean`):

Skip URLs disallowed by the target site's robots.txt.

## `checks` (type: `object`):

Which checks to run. SEO, security and broken links are fast HTTP checks. Accessibility opens each page in a real browser. Lighthouse runs a full performance audit in its own browser — the slowest check, off by default.

## `lighthouseFormFactor` (type: `string`):

Device profile for the performance audit: mobile or desktop.

## `lighthouseCategories` (type: `array`):

Which performance-report categories to score: performance, accessibility, seo, best-practices, pwa.

## `excludePatterns` (type: `array`):

Glob-ish deny patterns, e.g. /logout, /cart\*, \*.zip

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds for fetching a page.

## `analyzerTimeoutSecs` (type: `integer`):

Timeout in seconds for a single analyzer on a single page. A slow analyzer fails that page's analyzer, not the run.

## `maxRunTimeSecs` (type: `integer`):

Optional wall-clock budget for the whole run. The crawl stops enqueuing new pages once it is exceeded.

## `outputDetail` (type: `string`):

summary keeps the dataset compact; detailed includes the full analyzer evidence per page.

## `debug` (type: `boolean`):

Verbose logging. Also allows stack traces into the dataset.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "crawl": false,
  "maxPages": 100,
  "maxConcurrency": 5,
  "sameDomainOnly": true,
  "includeSubdomains": false,
  "useSitemap": false,
  "respectRobotsTxt": true,
  "checks": {
    "seo": true,
    "accessibility": true,
    "brokenLinks": true,
    "security": true,
    "lighthouse": false
  },
  "lighthouseFormFactor": "mobile",
  "lighthouseCategories": [
    "performance",
    "accessibility",
    "seo",
    "best-practices"
  ],
  "excludePatterns": [],
  "requestTimeoutSecs": 30,
  "analyzerTimeoutSecs": 60,
  "outputDetail": "summary",
  "debug": false
}
```

# Actor output Schema

## `pages` (type: `string`):

One row per page: per-dimension scores (SEO, accessibility, security, broken links, performance) and overall, the scored deductions, and the per-analyzer evidence.

## `report` (type: `string`):

The decision-ready report: overall health and score, plus issues ranked by severity and reach, each with a plain-language recommendation and the affected URLs.

## `summary` (type: `string`):

Pages with issues, total broken links and average scores by dimension across the crawl.

# 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://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("moonweil/website-qa").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://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("moonweil/website-qa").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://apify.com"
    }
  ]
}' |
apify call moonweil/website-qa --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moonweil/website-qa"
        }
    }
}

```

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/xCrq2qpNzHvrAd9FQ/builds/eEcPJYp3Fo5nEOGzO/openapi.json
