# SEO Audit Report - 25 checks, score and fixes (`by_jotaro/seo-audit-report`) Actor

Crawl a website and get a technical SEO audit: 25 checks, a weighted 0-100 score per page, prioritized fixes with severity and effort, and a site summary. Export JSON, HTML and Markdown. No API keys or browser needed.

- **URL**: https://apify.com/by_jotaro/seo-audit-report.md
- **Developed by:** [David Torkanevskiy](https://apify.com/by_jotaro) (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

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## SEO Audit Report

Technical SEO audit for any URL: a weighted **0-100 score**, **25 checks**, and a **fix list** with severity (`critical` / `high` / `medium` / `low`) and effort labels (`S` / `M`).

No API keys, no headless browser, no proxies. One URL in — a structured audit out.
Set `maxPages` above 1 to crawl a site and score every page.

**Live on the Apify Store:** https://apify.com/by_jotaro/seo-audit-report\
**Source code:** https://github.com/ByJotaro/seo-audit-actor (MIT)

```bash
curl -X POST "https://api.apify.com/v2/acts/by_jotaro~seo-audit-report/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com"]}'
```

### What you get

- **Dataset item per page**: `url`, `finalUrl` (after redirects), `score`, `grade`, `status`, `responseMs`, `htmlKb`, `checks[]`, `fixes[]`
- **Key-value store**: `report-<domain>-<ts>` (HTML report) and `report-<domain>-<ts>.md` (Markdown)
- **SUMMARY** key with all URLs and scores; in crawl mode it also carries a site summary (average/min/max score, worst page, top issues by page count)

### Checks (25)

- **Availability and indexing**: HTTP status, HTTPS, accidental `noindex`, `robots.txt`, `sitemap.xml`, charset, `lang`
- **Meta and content**: title length, meta description, viewport, single H1, H2s, heading order, image `alt`, anchors
- **Social and rich results**: Open Graph, Twitter Card, favicon, JSON-LD structured data
- **Performance and security**: HTML weight, TTFB, external asset count, mixed content, security headers
- **Canonicalization**: canonical tag

### Input

```json
{
  "urls": ["https://example.com"],
  "maxPages": 1,
  "sameDomainOnly": true
}
```

- `urls` — pages to audit (or crawl starts).
- `maxPages` — `1` audits only the given URLs; `> 1` follows internal links of each start URL until this many pages are audited (max 50).
- `sameDomainOnly` — when crawling, stay on the start URL's host.

### Output example

```json
{
  "url": "https://example.com",
  "domain": "example.com",
  "status": 200,
  "responseMs": 532,
  "htmlKb": 0.6,
  "score": 58,
  "grade": "C - needs work",
  "weightedPassed": 38,
  "weightedTotal": 66,
  "checks": [{"id": "title", "name": "Title 30-60 characters", "severity": "high", "effort": "S", "ok": false, "detail": "87 chars: ..."}],
  "fixes": [{"id": "title", "name": "Title 30-60 characters", "sev": "high", "effort": "S", "detail": "...", "rec": "Rewrite the title: ..."}]
}
```

### Run locally

```bash
pip install -r requirements.txt
python main.py --url https://example.com          # writes out/<domain>.md + .html
python main.py --batch urls.txt                   # one URL per line, # = comment
```

On the Apify platform the same `main.py` runs in actor mode: reads the input from
`Actor.get_input()`, pushes one dataset item per URL and stores the reports in the
key-value store.

### Deploy to Apify

```bash
npm i -g apify-cli
apify login --token <YOUR_TOKEN>
apify push
```

### Limits

- Audits the server-rendered HTML (SPAs are analyzed as delivered, without JS execution).
- One HTTP request per page (redirects followed; the crawl follows the redirect target's host).
- Crawl mode (`maxPages > 1`) honors `robots.txt` `Disallow` rules for the `*` user-agent and the `Crawl-delay` directive (capped at 5 s). Disallowed links are skipped and counted in the site summary (`skippedByRobots`).

### License

MIT

# Actor input Schema

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

One or more pages to audit (https://example.com). Each URL costs one audit.

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

1 = audit only the given URLs. Above 1 = follow internal links of each start URL (same domain) until this many pages are audited. Max 50.

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

When crawling (maxPages > 1), follow only links on the start URL's host.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "maxPages": 1,
  "sameDomainOnly": true
}
```

# Actor output Schema

## `dataset` (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://example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("by_jotaro/seo-audit-report").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"] }

# Run the Actor and wait for it to finish
run = client.actor("by_jotaro/seo-audit-report").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"
  ]
}' |
apify call by_jotaro/seo-audit-report --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,by_jotaro/seo-audit-report"
        }
    }
}
```

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/6fMfhZAwdSGxP40kE/builds/S1wp6hdXCXdsLJity/openapi.json
