# Website SEO & Broken Link Audit (`myagizm/website-seo-audit`) Actor

Audit public HTML pages for on-page SEO signals and a bounded sample of link statuses. Returns one report per accessible page.

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

## Pricing

from $24.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 & Broken Link Audit

Run a bounded on-page SEO check on public HTML pages. The Actor reports page titles, meta descriptions, canonical URLs, language, heading counts, image alt-text coverage, internal/external link counts, and a configurable sample of link HTTP statuses.

### Output

Each dataset row represents one successfully audited page. The `score` is a transparent on-page heuristic (0–100), not a search-engine ranking prediction. `issues` identifies missing or overlong metadata, heading problems, images without alt text, and confirmed broken-link statuses. HTTP 401/403/407/429 responses and timeouts are marked inaccessible or inconclusive; they are not mislabeled as broken links.

This is a lightweight HTML audit. It does not run a browser, measure Core Web Vitals, log in, or claim to assess rendered JavaScript content.

### Input

Provide public HTTP/HTTPS page URLs in `startUrls`. Set `maxPages` (1–100), `maxLinksPerPage` (0–10), and `timeoutSeconds` (15–240). By default only same-host links are checked; turn on `includeExternalLinks` only when you want the bounded link checks to include other public domains.

Private/local network targets, URLs with credentials, unsupported schemes, and nonstandard ports are rejected. Redirects are validated before they are followed. Requests are direct; no paid proxy or identity rotation is used.

### Pricing

PAY_PER_EVENT: $0.024 per stored page report at the Gold tier. Failed and zero-result runs do not store rows and do not charge result events.

***

## 网站 SEO 与失效链接审计

对公开 HTML 页面进行有限范围的站内 SEO 检查。Actor 会返回页面标题、描述、规范链接、语言、标题层级、图片 alt 文本覆盖率、站内/站外链接数量，以及可配置数量的链接 HTTP 状态。

### 输出

每条数据记录对应一个成功审计的页面。`score` 是透明的站内检查启发式分数（0–100），不是搜索引擎排名预测。`issues` 会标记缺失或过长的元数据、标题层级问题、缺少 alt 文本的图片，以及确认失效的链接。HTTP 401/403/407/429 和超时会标记为无法访问或无法判断，不会误报为失效链接。

这是轻量级 HTML 审计；不会运行浏览器、测量 Core Web Vitals、登录网站，也不会声称检查 JavaScript 渲染后的内容。

### 输入

在 `startUrls` 中填写公开的 HTTP/HTTPS 页面地址。可设置 `maxPages`（1–100）、`maxLinksPerPage`（0–10）和 `timeoutSeconds`（15–240）。默认只检查同一主机名的链接；只有确实需要时才开启 `includeExternalLinks`，以便在有限数量内检查其他公开域名。

本地/私有网络地址、带凭据的 URL、不支持的协议和非标准端口都会被拒绝。Actor 会在跟随重定向前再次验证目标。请求直接发送，不使用付费代理或身份轮换。

### 价格

按事件计费：Gold 计划每条已保存的页面报告 $0.024。失败或零结果运行不会存储记录，也不会产生结果事件费用。

### Errors & billing

Input errors finish with status SUCCEEDED, no results and no charge; see the OUTPUT record for the reason.

#### 错误与计费

输入错误会以 SUCCEEDED 状态结束，无结果且不收费；原因请查看 OUTPUT 记录。

# Actor input Schema

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

Absolute public HTTP or HTTPS page URLs to audit. Private-network, localhost, credential-bearing, and nonstandard-port URLs are rejected.

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

Maximum number of unique pages to audit in this run (1–100).

## `maxLinksPerPage` (type: `integer`):

Maximum number of same-site links to check per page. Set to 0 to skip link status checks; the hard maximum is 10.

## `includeExternalLinks` (type: `boolean`):

When enabled, the bounded link checks may include external domains; blocked and rate-limited links are reported as inaccessible, not broken.

## `timeoutSeconds` (type: `integer`):

Global deadline for all requested pages and link checks (15–240 seconds).

## Actor input object example

```json
{
  "startUrls": [
    "https://example.com/"
  ],
  "maxPages": 10,
  "maxLinksPerPage": 3,
  "includeExternalLinks": false,
  "timeoutSeconds": 120
}
```

# Actor output Schema

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

One row per successfully audited page.

## `fullJson` (type: `string`):

Complete page and link-check records.

# 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": [
        "https://example.com/"
    ],
    "maxPages": 10,
    "maxLinksPerPage": 3,
    "includeExternalLinks": false,
    "timeoutSeconds": 120
};

// Run the Actor and wait for it to finish
const run = await client.actor("myagizm/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 = {
    "startUrls": ["https://example.com/"],
    "maxPages": 10,
    "maxLinksPerPage": 3,
    "includeExternalLinks": False,
    "timeoutSeconds": 120,
}

# Run the Actor and wait for it to finish
run = client.actor("myagizm/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 '{
  "startUrls": [
    "https://example.com/"
  ],
  "maxPages": 10,
  "maxLinksPerPage": 3,
  "includeExternalLinks": false,
  "timeoutSeconds": 120
}' |
apify call myagizm/website-seo-audit --silent --output-dataset

```

## MCP server setup

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