# Bulk Website SEO Audit + AI Readiness Checker (`miniswarm/site-readiness-audit`) Actor

Audit many URLs in one run and get a 0–100 readiness score per page with prioritised fixes: robots.txt rules for AI crawlers, llms.txt, sitemap, JSON-LD schema, metadata, headings, canonicals, hreflang, security headers and text extractability. Pure HTTP. Charged only for successfully audited URLs.

- **URL**: https://apify.com/miniswarm/site-readiness-audit.md
- **Developed by:** [Miniswarm](https://apify.com/miniswarm) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 urls audited

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/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 Website SEO Audit + AI Readiness Checker

Audit a list of URLs in one run and get a structured readiness record for each page: classic technical SEO plus AI/answer-engine readiness, a 0–100 score, and a prioritised list of fixes. It is pure HTTP (no browser, no proxy), so it is cheap enough to run on hundreds of pages at a time.

Use it to audit your own site before a migration, to check a prospect's site for an agency pitch, or to feed structured audit data into your own dashboard or AI agent. Every record is JSON, so you can filter, sort and join it.

### What it checks

| Check (`checks` value) | What you get per URL |
|---|---|
| robots.txt (`robots`) | robots.txt is fetched and parsed for the page's site; by default (`respectRobots: true`) the page is skipped if it disallows this Actor |
| AI crawler access (`aiBots`) | robots.txt rules for named user agents: `allowed` / `disallowed` for the page's path, for GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, CCBot, Bingbot, Googlebot |
| llms.txt (`llmsTxt`) | Present at `/llms.txt`, and whether it starts with a `# Title` line |
| Sitemap (`sitemap`) | XML sitemap found (from robots.txt or `/sitemap.xml`), number of `<loc>` entries, whether it is an index |
| Structured data (`schema`) | JSON-LD `@type` values found, blocks that fail to parse |
| Metadata (`meta`) | Title and meta description, flagged when missing |
| Headings (`headings`) | h1/h2/h3 counts, first h1 text, missing or multiple h1 |
| Canonical (`canonical`) | Canonical URL, flagged when missing |
| hreflang (`hreflang`) | Declared alternates, invalid language codes or empty hrefs |
| Security headers (`headers`) | HSTS, CSP, X-Content-Type-Options, frame protection, Referrer-Policy |
| Text extractability (`extractability`) | Word count and share of the response that is server-rendered text (what a crawler can read without JavaScript) |

Each issue comes with `code`, `severity` and a concrete `fix`, and each page gets a `readinessScore` from 0 to 100, so you can triage a list of 500 URLs in a spreadsheet.

### Input

```json
{
  "urls": [
    "https://example.com/",
    "https://example.com/pricing",
    "https://example.com/blog/post-1"
  ],
  "maxUrls": 100,
  "checks": ["robots", "aiBots", "llmsTxt", "sitemap", "schema", "meta", "headings", "canonical", "hreflang", "headers", "extractability"],
  "respectRobots": true
}
```

| Field | Description |
|---|---|
| `urls` (required) | Public http(s) URLs to audit. Duplicates are removed. The Actor audits exactly these pages; it does not follow links. |
| `maxUrls` | Maximum number of URLs to process (default 100, max 1000). |
| `checks` | Subset of the checks above (default: all). Disabled checks are left out of the score. |
| `respectRobots` | Default `true`. If robots.txt disallows this Actor's User-Agent (`SiteReadinessAudit/1.0 (+Apify Actor)`) or `*` for the path, the page is not fetched and the record has status `skipped_robots`. |

### Output

One dataset record per URL. Example (shortened):

```json
{
  "url": "https://example.com/",
  "status": "ok",
  "finalUrl": "https://example.com/",
  "httpStatus": 200,
  "redirectChain": [],
  "title": "Example Domain",
  "metaDescription": null,
  "canonical": null,
  "hreflang": [],
  "headingsOutline": { "h1": 0, "h2": 0, "h3": 0, "firstH1": null },
  "jsonLdTypes": [],
  "jsonLdErrors": [],
  "aiBotAccess": { "GPTBot": "allowed", "ClaudeBot": "allowed", "PerplexityBot": "allowed", "Google-Extended": "allowed" },
  "llmsTxt": { "present": false, "looksValid": false },
  "sitemap": { "present": false, "urlCount": 0, "source": null },
  "wordCount": 25,
  "serverRenderedTextRatio": 0.27,
  "securityHeaders": { "hsts": false, "csp": false, "xContentTypeOptions": false, "xFrameOptions": false, "referrerPolicy": false },
  "readinessScore": 49,
  "issues": [
    { "code": "LOW_SERVER_RENDERED_TEXT", "severity": "high", "fix": "Little text in the initial HTML; content may be JS-rendered and invisible to AI crawlers. Server-render key content." },
    { "code": "MISSING_META_DESCRIPTION", "severity": "medium", "fix": "Add a meta description (70-160 chars)." }
  ],
  "checkedAt": "2026-12-05T05:55:08.266Z"
}
```

`status` is one of `ok`, `error`, `blocked` or `skipped_robots`. Errors are records too: a URL that returns 4xx/5xx, times out, is not HTML, is disallowed by robots.txt or is refused by the private-address guard has an `error` field. Use those to see which of your pages a non-browser crawler cannot read at all; it is often the most useful finding in the run.

A `SUMMARY` record in the run's key-value store holds status counts, the average score and the ten most common issues.

### Score (0–100)

Weighted sum: AI bot access 20 (share of the 10 bots allowed), HTTP 2xx 15, extractability 15, title + meta description 10, structured data 10, security headers 10 (2 each), canonical 5, single h1 5, llms.txt 5, sitemap 5. Disabled checks are dropped and the remaining weights rescaled. It is a simple, transparent heuristic, not a ranking prediction.

### Pricing: charged only for successfully audited URLs

This Actor uses pay-per-event pricing. You are charged **once per URL that is successfully audited** (record status `ok`, which means an HTML page was fetched and analysed). URLs that return an error status, time out, are not HTML, are disallowed by robots.txt or are refused by the private-address guard are **not charged**.

| Your Apify plan | Price per audited URL |
|---|---|
| Free | $0.015 |
| Bronze | $0.012 |
| Silver | $0.011 |
| Gold | $0.010 |
| Platinum | $0.010 |
| Diamond | $0.010 |

There is no separate start fee.

### Limits of v1 (read this before you run it)

- **No JavaScript rendering.** Pages whose content is built in the browser will look thin or empty. This is deliberate: it shows what a non-browser crawler sees.
- **The Actor identifies itself as a bot.** Sites that block non-browser user agents, including some large news and media sites, return 403. A 403 shows that the request was refused for this Actor; it does not show how the site treats GPTBot or any other crawler. Those URLs are reported as errors and are **not charged**. We do not spoof a browser user agent.
- **No link crawling.** Only the URLs you list are audited, plus each site's public `robots.txt`, `llms.txt` and sitemap.
- **robots.txt is respected by default**, including for redirect targets. You can turn this off with `respectRobots: false` for sites you own or are allowed to audit.
- 15-second timeout per request, first 2 MB of each page, up to 5 redirects, 5 pages in parallel. HTTP and HTTPS only; private and internal addresses are refused. No login, no cookies.
- The sitemap check reads only the first sitemap found on the same origin; an index file is counted by its entries. Links inside pages are not checked.
- AI crawler access is read from robots.txt rules for the named user agents only. The Actor never sends requests as those bots. A site can still block a bot at its firewall; this Actor cannot see that.
- **Batch runs only.** Use [Apify Schedules](https://docs.apify.com/platform/schedules) to re-run on a cadence.

### Run it from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/miniswarm~site-readiness-audit/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://example.com","https://example.com/pricing"]}'
```

The run's default dataset holds one record per URL. The same call works from the Apify JavaScript and Python clients.

### FAQ

**Can it crawl a whole site?** No. Give it the list of URLs you want audited (for example from your sitemap), up to 1000 per run.

**Why do some URLs come back as errors?** Usually the site blocks bot user agents (403), the page is slow (over 15 s) or robots.txt disallows it (respected by default). None of those are charged.

**Does it fix my pages?** No. It gives you `code`, `severity` and `fix` per issue so you or your developer can fix them.

**Can I get the data as CSV or Excel?** Yes: export the dataset from Apify Console or the dataset API.

**Which pages may I audit?** Public pages you are allowed to access. By default the Actor respects robots.txt, and it never logs in or bypasses paywalls.

# Actor input Schema

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

Public http(s) URLs to audit.

## `maxUrls` (type: `integer`):

Maximum number of URLs to audit.

## `checks` (type: `array`):

Which checks to run.

## `respectRobots` (type: `boolean`):

Skip pages disallowed for our User-Agent.

## Actor input object example

```json
{
  "maxUrls": 100,
  "checks": [
    "robots",
    "aiBots",
    "llmsTxt",
    "sitemap",
    "schema",
    "meta",
    "headings",
    "canonical",
    "hreflang",
    "headers",
    "extractability"
  ],
  "respectRobots": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

JSON record with totals, status counts, average score and top issues for the run.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("miniswarm/site-readiness-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("miniswarm/site-readiness-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 '{}' |
apify call miniswarm/site-readiness-audit --silent --output-dataset

```

## MCP server setup

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