# AI Crawler Readiness Checker: robots.txt & llms.txt (`rationalistic_tail/ai-crawler-readiness-checker`) Actor

Check which AI and search crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Googlebot, Bingbot…) your robots.txt allows, whether a sitemap is declared, and whether llms.txt is missing or has broken links. Plus security.txt and ads.txt. CI pass/fail, AI-ready summary.

- **URL**: https://apify.com/rationalistic_tail/ai-crawler-readiness-checker.md
- **Developed by:** [Jerry Lin](https://apify.com/rationalistic_tail) (community)
- **Categories:** SEO tools, Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 site checkeds

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?

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 Crawler Readiness Checker: robots.txt, llms.txt & AI bots

See **which AI assistants and search engines your robots.txt lets in**: GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Googlebot, Bingbot and more. It also checks:

- whether a **sitemap** is declared
- whether your **llms.txt** is missing, malformed or full of **broken links**
- **security.txt** (RFC 9116) and **ads.txt / app-ads.txt**

You get one row per website, a 0–100 readiness score, and a pass/fail summary for scheduled runs and CI. It reads only **well-known public files**. It does not crawl pages, log in, or collect personal data.

### What can you use it for?

- 🤖 **AI visibility check.** Find out whether ChatGPT search (OAI-SearchBot), Claude or Perplexity can reach your site, or whether a CDN or SEO plugin rule blocks them by accident.
- 🛑 **AI-training opt-out audit.** Confirm GPTBot, CCBot, Google-Extended and others are really blocked on every domain you own. `mustBlockCrawlers` raises an alert if one is not.
- 🧭 **Policy monitoring and CI.** Schedule it weekly, or run it after each deploy, with `failRunOnAlert`. A robots.txt change that blocks Googlebot or an AI search bot fails the run.
- 📄 **llms.txt maintenance.** Validate the structure and HEAD-check the links your llms.txt publishes, so AI tools are not pointed at 404s.
- 🔍 **Competitive and market research.** Compare the AI-crawler policies of publishers, competitors or clients in one table.
- 🧠 **AI agents.** *"Does example.com block GPTBot, and does it have a working llms.txt?"* through the Apify MCP server.

### Example output (real run)

Platform run on 2026-11-18 with 3 sites, taking **29 s** at 256 MB and costing **$0.012** (2 × $0.005 + $0.002 start). The non-existent domain was **not charged**.

| Site | Status | Score | Blocked crawlers | llms.txt | Charged? |
|---|---|---|---|---|---|
| https://www.nytimes.com | warn | 60 (C) | 14 incl. GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, CCBot, Google-Extended | missing | yes |
| https://docs.apify.com | warn | 80 (B) | none | valid (20 links checked, 0 broken) | yes |
| https://no-such-host-zz9.example | unreachable (`origin_dns_error`) | – | – | – | **no** |

Row for `https://www.nytimes.com` (shortened: 5 of the 18 crawler verdicts shown, file details trimmed):

```json
{
  "origin": "https://www.nytimes.com",
  "status": "warn",
  "alerts": [],
  "warnings": ["llms_txt_missing", "security_txt_missing_expires"],
  "aiReadinessScore": 60,
  "aiReadinessGrade": "C",
  "robotsTxtStatus": "ok",
  "sitemapDeclared": true,
  "llmsTxtStatus": "missing",
  "blockedCrawlers": ["GPTBot", "OAI-SearchBot", "ChatGPT-User", "ClaudeBot", "Claude-SearchBot", "Claude-User", "anthropic-ai", "Google-Extended", "PerplexityBot", "Perplexity-User", "CCBot", "Applebot-Extended", "Bytespider", "Meta-ExternalAgent"],
  "partiallyBlockedCrawlers": ["Amazonbot", "Googlebot", "Bingbot", "Applebot"],
  "securityTxtStatus": "present_with_issues",
  "robotsTxt": { "httpStatus": 200, "groups": 70, "sitemapCount": 25 },
  "crawlers": [
    { "name": "GPTBot", "operator": "OpenAI", "category": "ai_training", "verdict": "blocked", "matchedGroup": "specific", "rootAllowed": false, "disallowRules": 1 },
    { "name": "OAI-SearchBot", "operator": "OpenAI", "category": "ai_search", "verdict": "blocked", "matchedGroup": "specific", "rootAllowed": false, "disallowRules": 1 },
    { "name": "PerplexityBot", "operator": "Perplexity", "category": "ai_search", "verdict": "blocked", "matchedGroup": "specific", "rootAllowed": false, "disallowRules": 1 },
    { "name": "CCBot", "operator": "Common Crawl", "category": "ai_training", "verdict": "blocked", "matchedGroup": "specific", "rootAllowed": false, "disallowRules": 1 },
    { "name": "Googlebot", "operator": "Google Search", "category": "search", "verdict": "partially_blocked", "matchedGroup": "specific", "rootAllowed": true, "disallowRules": 92 }
  ],
  "adsTxt": { "state": "present", "recordCount": 32, "directCount": 32, "resellerCount": 0 }
}
```

`OUTPUT_SUMMARY.llmSummary` from the same run:

> Checked 3 origin(s): 0 ok, 2 with warnings, 0 with alerts, 1 unreachable. llms.txt present on 1/2; sitemap declared in robots.txt on 2/2. Most blocked crawlers: GPTBot (1), OAI-SearchBot (1), ChatGPT-User (1), ClaudeBot (1), Claude-SearchBot (1). Alerts: https://no-such-host-zz9.example: origin_dns_error.

The default input (example.com, vercel.com) ran in 33 s:

- **vercel.com** scored 90 (A), with a valid llms.txt (11 sections, 112 links, 20 checked, 0 broken).
- **example.com** scored 20 (F), with no robots.txt, no sitemap and no llms.txt.

Row `status` is one of:

- `ok`
- `warn`: findings only
- `alert`: a rule you set was broken
- `unreachable`

### What it checks

- 🤖 **AI and search crawler matrix.** 18 built-in tokens:

  - OpenAI GPTBot / OAI-SearchBot / ChatGPT-User
  - Anthropic ClaudeBot / Claude-SearchBot / Claude-User / anthropic-ai
  - Google-Extended
  - PerplexityBot / Perplexity-User
  - CCBot, Applebot-Extended, Bytespider, Meta-ExternalAgent, Amazonbot
  - Googlebot, Bingbot, Applebot

  You can add your own tokens. Each token gets `allowed`, `partially_blocked` or `blocked`, plus whether its **own rule group** or only `User-agent: *` applies.
- 🗺️ **Sitemap**: every `Sitemap:` line in robots.txt.
- 📄 **llms.txt** ([llmstxt.org](https://llmstxt.org)):
  - missing, empty or an HTML soft-404
  - H1 title, `>` summary, `##` sections
  - up to N links HEAD-checked politely
  - whether `/llms-full.txt` is present
- 🛡️ **security.txt**: `Contact` and `Expires` are present and not expired (RFC 9116). Contact values are **never stored**.
- 📢 **ads.txt / app-ads.txt**: DIRECT / RESELLER counts and invalid lines. No account IDs are stored.
- 📊 **Readiness score 0–100 (A–F)**: rewards a clear, machine-readable policy. It does **not** reward allowing or blocking AI crawlers; that is your choice.
- 🚨 **Alerts you control**:
  - Googlebot or Bingbot blocked
  - `mustAllowCrawlers` / `mustBlockCrawlers`
  - llms.txt missing or with broken links
  - sitemap missing
  - security.txt missing or expired
  - score below a threshold

#### Example input (policy check for CI)

```json
{
  "origins": ["https://example.com", "docs.example.org"],
  "mustAllowCrawlers": ["OAI-SearchBot", "PerplexityBot"],
  "mustBlockCrawlers": ["GPTBot", "CCBot"],
  "requireLlmsTxt": true,
  "maxLlmsLinks": 20,
  "failRunOnAlert": true
}
```

### How verdicts are decided

- The crawler's **own** `User-agent` group is used when one exists (case-insensitive product token, RFC 9309), otherwise the `*` group.
- `blocked` = the site root `/` is disallowed for that token; `partially_blocked` = the root is allowed but the group has `Disallow` rules; `allowed` = no Disallow rules apply.
- No robots.txt (4xx) means everything is allowed; a 5xx robots.txt means everything is blocked.
- Google-Extended and Applebot-Extended are **control tokens** (they decide whether content may be used for AI training), not separate crawlers. Their verdict is reported the same way.

### Readiness score

| Part | Points |
| --- | --- |
| robots.txt reachable and plain text (missing = 5) | 15 |
| Sitemap declared in robots.txt | 15 |
| Explicit rules for at least one AI crawler token | 10 |
| Googlebot and Bingbot not blocked | 15 |
| llms.txt valid (present with issues = 10) | 25 |
| Share of checked llms.txt links that work | 10 |
| security.txt valid (present with issues = 5) | 10 |

### How much does it cost?

Pay-per-event. There is no subscription and no separate compute bill.

| Event | Price |
|---|---|
| `site-checked`: one website whose robots.txt answered (HTTP status below 500) | **$0.005** |
| Actor start (one event per GB; default 256 MB = 1 event) | **$0.002** |

Examples:

- The 3-site run above cost **$0.012**.
- 100 sites ≈ **$0.50**.
- 1,000 sites ≈ **$5.00**.
- **Free:** sites that do not resolve, refuse connections, time out, or answer robots.txt with a 5xx server error (nothing else is fetched from those).

Set a maximum cost per run and the Actor stops cleanly at the limit.

### Polite and limited by design

- Per website it requests only:
  - `/robots.txt`
  - `/llms.txt` and `/llms-full.txt` (HEAD)
  - `/.well-known/security.txt`
  - `/ads.txt` and `/app-ads.txt`
  - optionally, up to N URLs that **llms.txt itself publishes**
- **robots.txt is honoured** for every other request, including redirects and llms.txt links. A `5xx` robots.txt means "do not crawl" (RFC 9309).
- Rate-limited per host: 1 request per second by default, and a longer `Crawl-delay` wins. At most 5 sites in parallel.
- Identifying User-Agent `AiCrawlerReadinessChecker`. No proxies, cookies or JavaScript rendering.
- Private, local and IP-address targets are refused. Please check sites you own or are allowed to check.

### Use it from AI agents (MCP)

```
https://mcp.apify.com?tools=rationalistic_tail/ai-crawler-readiness-checker
```

The Actor runs with **limited permissions**.

### FAQ

**Does robots.txt stop AI crawlers?** robots.txt is a public request that reputable crawlers follow; it is not access control. This Actor reports what your robots.txt *says* to each token. It does not test whether a crawler obeys it.

**Should I allow or block AI crawlers?** That is a business decision. Many sites block AI-training crawlers (GPTBot, CCBot, Google-Extended) while allowing AI search and user-triggered fetchers (OAI-SearchBot, ChatGPT-User, PerplexityBot) so they can still be cited. Use **mustAllowCrawlers** / **mustBlockCrawlers** to enforce whatever you choose.

**Is llms.txt an official standard?** No. It is a community proposal ([llmstxt.org](https://llmstxt.org)) adopted by many documentation sites. The Actor checks the common structure (H1 title, summary, sections, links) and whether the links work.

**Why does my site show `partially_blocked` for Googlebot?** Your `User-agent: *` group has Disallow rules (e.g. `/admin`). That is normal; only `blocked` means the whole site is off limits.

**Why was llms.txt reported as `blocked_by_robots`?** The Actor follows your robots.txt too. If your rules disallow `/llms.txt` for all bots, it does not read it.

**Does it render JavaScript or crawl pages?** No. Only the files listed above.

### More tools from this developer

- [Broken Link Checker: Find 404s & Broken #Anchors](https://apify.com/rationalistic_tail/broken-link-anchor-checker)
- [XML Sitemap Validator, Extractor & Generator](https://apify.com/rationalistic_tail/sitemap-validator-generator)
- [Bulk Schema Markup Validator – JSON-LD Checker](https://apify.com/rationalistic_tail/json-ld-structured-data-validator)
- [SSL Expiry Checker + Security Headers & DMARC](https://apify.com/rationalistic_tail/tls-headers-email-auth-monitor)
- [Bulk Lighthouse Audit API – Core Web Vitals & CI](https://apify.com/rationalistic_tail/lighthouse-budget-auditor)

# Actor input Schema

## `origins` (type: `array`):

Public websites to check, e.g. \["https://example.com", "docs.example.org"]. Only the scheme + host (+ port) is used; paths are ignored. https:// is assumed when missing. IP addresses and internal names are ignored. Max 1000.

## `extraCrawlers` (type: `array`):

Additional robots.txt user-agent tokens to evaluate on top of the built-in list (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, anthropic-ai, Google-Extended, PerplexityBot, Perplexity-User, CCBot, Applebot-Extended, Bytespider, Meta-ExternalAgent, Amazonbot, Googlebot, Bingbot, Applebot).

## `mustAllowCrawlers` (type: `array`):

Raise an alert when any of these tokens is blocked at the site root, e.g. \["OAI-SearchBot", "PerplexityBot"] if you want to appear in AI search.

## `mustBlockCrawlers` (type: `array`):

Raise an alert when any of these tokens is not blocked at the site root, e.g. \["GPTBot", "CCBot", "Google-Extended"] to enforce an AI-training opt-out.

## `requireSearchCrawlersAllowed` (type: `boolean`):

Treat a root-level block of Googlebot or Bingbot as an alert (catches an accidental "Disallow: /").

## `requireLlmsTxt` (type: `boolean`):

Treat a missing, empty or HTML (soft-404) /llms.txt as an alert instead of a warning.

## `requireSitemap` (type: `boolean`):

Treat a robots.txt without a Sitemap: line as an alert instead of a warning.

## `requireSecurityTxt` (type: `boolean`):

Treat a missing /.well-known/security.txt, a missing Contact field or an expired Expires field as an alert instead of a warning.

## `checkLlmsLinks` (type: `boolean`):

HEAD-check the URLs that llms.txt itself publishes (GET fallback only when HEAD is rejected). robots.txt is honoured for every link.

## `maxLlmsLinks` (type: `integer`):

Upper limit of llms.txt links checked per origin, in file order (0-100).

## `maxBrokenLlmsLinks` (type: `integer`):

Raise an alert when more than this many checked llms.txt links are broken (4xx/5xx or unreachable). Fewer broken links are listed as a warning.

## `checkLlmsFullTxt` (type: `boolean`):

One HEAD request to /llms-full.txt to report whether it exists (the file is not downloaded).

## `checkSecurityTxt` (type: `boolean`):

RFC 9116 checks: Contact and Expires present, not expired. Contact values are never stored (only how many and which URI schemes).

## `checkAdsTxt` (type: `boolean`):

Counts DIRECT / RESELLER records and invalid lines. Publisher account IDs are not stored.

## `minScore` (type: `integer`):

Raise an alert when the 0-100 readiness score is below this value. 0 = never alert on the score.

## `failRunOnAlert` (type: `boolean`):

For CI / scheduled monitoring: end the run as FAILED if any origin has an alert, so Apify notifications or webhooks fire. Results are still saved.

## `requestDelayMs` (type: `integer`):

Minimum gap between two HTTP requests to the same host (250-60000 ms). A larger robots.txt Crawl-delay always wins.

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

How many origins are checked at the same time (1-5).

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

Timeout for each HTTP request (5-60 s).

## Actor input object example

```json
{
  "origins": [
    "https://example.com",
    "https://vercel.com"
  ],
  "extraCrawlers": [],
  "mustAllowCrawlers": [],
  "mustBlockCrawlers": [],
  "requireSearchCrawlersAllowed": true,
  "requireLlmsTxt": false,
  "requireSitemap": false,
  "requireSecurityTxt": false,
  "checkLlmsLinks": true,
  "maxLlmsLinks": 20,
  "maxBrokenLlmsLinks": 0,
  "checkLlmsFullTxt": true,
  "checkSecurityTxt": true,
  "checkAdsTxt": true,
  "minScore": 0,
  "failRunOnAlert": false,
  "requestDelayMs": 1000,
  "maxConcurrency": 3,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `origins` (type: `string`):

One row per origin with crawler verdicts, sitemap, llms.txt, security.txt and ads.txt results, alerts and warnings.

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

Pass/fail, alerts, scores, most-blocked crawlers and an llmSummary paragraph.

# 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 = {
    "origins": [
        "https://example.com",
        "https://vercel.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("rationalistic_tail/ai-crawler-readiness-checker").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 = { "origins": [
        "https://example.com",
        "https://vercel.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("rationalistic_tail/ai-crawler-readiness-checker").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 '{
  "origins": [
    "https://example.com",
    "https://vercel.com"
  ]
}' |
apify call rationalistic_tail/ai-crawler-readiness-checker --silent --output-dataset

```

## MCP server setup

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

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/KSEYUtDdk4YdFbFy2/builds/AqhEMp67qn9B4kYbB/openapi.json
