# AI Readiness & llms.txt Auditor (`brianboyang/site-ai-readiness`) Actor

Audits websites for AI-crawler visibility: robots rules for GPTBot/ClaudeBot/PerplexityBot, llms.txt, sitemap, structured data.

- **URL**: https://apify.com/brianboyang/site-ai-readiness.md
- **Developed by:** [boyang zhang](https://apify.com/brianboyang) (community)
- **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

## AI Readiness & llms.txt Auditor

Check whether your website is legible to AI: **ChatGPT, Claude, Perplexity, Google AI**.

AI crawlers decide what your site allows through `robots.txt`, and AI assistants increasingly read curated plain-text files like `llms.txt`. If GPTBot is disallowed and there is no `llms.txt`, your pages may be missing from AI answers even though your SEO is fine. This Actor turns that question into a scored, repeatable audit.

### What it does

For each URL you pass in, the Actor fetches the homepage, `robots.txt`, `llms.txt` and `sitemap.xml`, then:

- reads the `robots.txt` rules and evaluates them **per AI crawler**: `GPTBot`, `ClaudeBot`, `PerplexityBot`, `Google-Extended`, `CCBot`, `ai2bot`, `OAI-SearchBot`
- reports verdicts `allow` / `block` / `block-partial` / `unlisted-allow`
- checks `llms.txt` presence and size
- checks sitemap declaration (robots `Sitemap:` line, HTML `<link rel="sitemap">`, or a reachable `/sitemap.xml`)
- checks JSON-LD structured data blocks, `<title>`, meta description and OpenGraph tags
- computes an **aiScore from 0 to 100** and lists the concrete blockers that cost you points

One input URL = one output row. No pagination, no crawling the whole site.

### Input

```json
{
  "urls": ["https://example.com", "https://yourbrand.com"],
  "maxUrls": 50,
  "timeoutSecs": 12
}
```

- `urls` — array of strings. `https://` is added when missing.
- `maxUrls` — safety cap per run (1-500, default 50).
- `timeoutSecs` — per-request timeout (3-60, default 12).

### Output

One dataset row per URL:

| field | meaning |
|---|---|
| `aiScore` | 0-100 readiness score (higher = more AI-legible) |
| `aiBotsBlocked` | which AI crawlers `robots.txt` hard-blocks (`/` disallow) |
| `botVerdicts` | per-crawler verdict map |
| `llmsTxt`, `llmsTxtBytes` | whether an `llms.txt` exists and how big |
| `robotsTxt`, `sitemap` | presence flags |
| `jsonLdBlocks`, `metaDescription`, `title`, `openGraph` | on-page signal inventory |
| `blockers` | human-readable list of what to fix, worst first |
| `httpStatus` | homepage status code as seen by this Actor |

Scoring starts at 100 and deducts: missing `llms.txt` -20, no JSON-LD -15, each hard-blocked bot -15/-5, unreachable homepage -30, missing `robots.txt` -10, missing meta description -10, no sitemap -10, partial path blocks -5.

### Example reading of a real result

A company site scored **70** here because its `robots.txt` explicitly disallows `GPTBot`, `Google-Extended` and `CCBot` — its SEO is fine, but ChatGPT and Claude are told to stay out. Fixing it is a three-line `robots.txt` edit, and this audit finds that without reading the file by hand.

### Use it for

- AI-SEO / GEO audits for client sites, in bulk
- monitoring your own domains after a CMS or CDN migration rewrote `robots.txt`
- finding prospects: audit a competitor set, then sell the fixes
- pre-launch checks: is the new site actually readable by AI assistants

### Notes and limits

- Public pages only. Pages behind a login are not tested.
- The Actor reads and reports, it does not modify anything on your site.
- Requests are sent with an honest `SiteAiReadinessBot/0.1` user agent; each run makes at most 4 requests per URL.
- If a site returns an error to our requests, `httpStatus` and `blockers` show that instead of guessing.

### Pricing

This Actor is designed for pay-per-event pricing: one charge per audited URL. If the store page shows no price, the Actor currently runs free of charge (platform usage still applies to your account). Check the **Pricing** section of this Actor's store page for the current rate.

### Feedback

Open an issue on this Actor's page in Apify Console — a broken audit costs me money too, so reports get fixed.

# Actor input Schema

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

Website URLs to audit, one string each, e.g. \["https://example.com"]. Every audited URL is billed as one result.

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

Safety cap for one run.

## `timeoutSecs` (type: `integer`):

Per-request timeout.

## Actor input object example

```json
{
  "urls": [
    "https://example.com"
  ],
  "maxUrls": 50,
  "timeoutSecs": 12
}
```

# Actor output Schema

## `results` (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("brianboyang/site-ai-readiness").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("brianboyang/site-ai-readiness").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 brianboyang/site-ai-readiness --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brianboyang/site-ai-readiness"
        }
    }
}
```

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/Tdty440raS0UNR8aM/builds/Iy3NEZwQJcZBTgCNE/openapi.json
