# AI Bot Readiness Audit: robots.txt & llms.txt (`dvc-analytics/ai-bot-readiness-audit`) Actor

Bulk-check which AI crawlers each site's robots.txt allows (RFC 9309), plus llms.txt, llms-full.txt, ai.txt and noai meta/header directives.

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

## Pricing

from $3.00 / 1,000 result rows

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 Bot Readiness Audit: robots.txt & llms.txt

**AI Bot Readiness Audit** is a bulk AI crawler checker. For every site you enter, it reads robots.txt and works out whether each known AI crawler (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot and about 20 more) may fetch the homepage. It also checks for llms.txt, llms-full.txt and ai.txt, and for `noai` / `noimageai` directives in meta tags and the X-Robots-Tag header. You get one row per site. No login, API key or proxy is needed.

### What it does

- **robots.txt AI crawler check.** robots.txt is evaluated with a matcher written to RFC 9309, not Python's `urllib.robotparser`. It selects the group whose user-agent token matches the crawler, falls back to `*`, supports `*` and `$` wildcards, applies the longest matching rule, and lets `Allow` win ties. Each crawler is reported as allowed or blocked for `/`, along with which group decided it.
- **Training vs. search vs. user fetch.** Every crawler in the built-in list has an operator and a purpose (`training`, `search` or `user-fetch`). The summary flags tell you if a site blocks *all* training crawlers or *all* AI search crawlers. The second case matters for AI search visibility (GEO).
- **llms.txt checker.** Reports whether `/llms.txt` exists, its URL after redirects, its size, its first `# ` heading and how many markdown links it contains. Also checks `/llms-full.txt`. HTML "soft 404" pages are not counted as files.
- **noai directives and ai.txt.** Reads the homepage `<meta name="robots">` and the `X-Robots-Tag` header, and checks for `/ai.txt`.
- **Plain readiness notes.** Each row includes a short list of the findings in plain words.
- Export as JSON, CSV or Excel, or read the results through the Apify API, integrations and MCP.

### Use cases

- Auditing your own sites before or after you change your AI bot policy ("did we really block AI bots?").
- Checking that a block on AI training crawlers does not also block AI search and answer crawlers.
- Researching which publishers in a niche allow or block GPTBot and other AI crawlers.
- Tracking llms.txt adoption across a list of documentation sites or competitors.
- Running a weekly scheduled check across a portfolio of client domains (agencies, SEO teams).

### Input

| Field | Type | Description |
|---|---|---|
| `sites` | list of strings (1-1000) | Domains or URLs. Each one is reduced to its origin, so `example.com/blog` becomes `https://example.com`. Duplicates are removed. |
| `maxConcurrency` | integer, default 5, max 20 | Number of sites audited in parallel. |
| `extraUserAgents` | list of strings, optional | Extra robots.txt tokens to evaluate (e.g. `Bingbot`). They are reported with operator and purpose `custom`. |

```json
{
  "sites": ["https://www.python.org", "https://www.djangoproject.com", "llmstxt.org"],
  "maxConcurrency": 5,
  "extraUserAgents": ["Bingbot"]
}
```

### Output example

A real row (the `bots` list is shortened here; the actor returns one entry per crawler):

```json
{
  "input": "https://llmstxt.org",
  "site": "https://llmstxt.org",
  "robotsTxtStatus": 200,
  "robotsTxtFound": true,
  "bots": [
    {"bot": "GPTBot", "operator": "OpenAI", "purpose": "training", "allowed": true, "matchedGroup": "none"},
    {"bot": "OAI-SearchBot", "operator": "OpenAI", "purpose": "search", "allowed": true, "matchedGroup": "none"}
  ],
  "aiBotsBlocked": 0,
  "aiBotsAllowed": 27,
  "blocksAllTrainingBots": false,
  "blocksAllSearchBots": false,
  "sitemaps": ["https://llmstxt.org/sitemap.xml"],
  "llmsTxtFound": true,
  "llmsTxtUrl": "https://llmstxt.org/llms.txt",
  "llmsTxtBytes": 637,
  "llmsTxtTitle": "llms.txt",
  "llmsTxtLinks": 3,
  "llmsFullTxtFound": false,
  "llmsFullTxtBytes": null,
  "metaRobots": null,
  "xRobotsTag": null,
  "noaiDirective": false,
  "aiTxtFound": false,
  "readinessNotes": ["robots.txt found (HTTP 200).", "All 27 AI crawlers checked may fetch '/'.", "llms.txt found (637 bytes, 3 links)."],
  "checkedAt": "2026-11-22T11:58:00+00:00",
  "error": null
}
```

`matchedGroup` is `specific` when a group names the crawler, `wildcard` when the `User-agent: *` group applied, and `none` when no group applies or there is no robots.txt.

### How much does it cost?

Pay per result: **$3 per 1,000 sites** ($0.003 per row), plus the Apify actor start fee of $0.00005 per run. You pay only for rows in the dataset. Unreachable sites still return a row with an `error` field, because "unreachable" is part of the answer.

### Data source & legality

The actor fetches at most five small public files per site: `/`, `/robots.txt`, `/llms.txt`, `/llms-full.txt` and `/ai.txt`. These are the same files any browser or crawler can request. It identifies itself with the user agent `Mozilla/5.0 (compatible; DVC-ApifyActor/1.0)`. It does not log in, solve captchas, use proxies or collect personal data. You are responsible for following the terms of the sites you audit.

### Limits

- Only the homepage path `/` is evaluated against robots.txt rules.
- robots.txt is read up to 512 KB, as RFC 9309 allows. The timeout is 15 seconds per request, with up to 2 retries on 429, 5xx and timeouts.
- If robots.txt returns HTTP 5xx, every crawler is reported as blocked, because RFC 9309 says crawlers must then assume a full disallow. A 4xx response means everything is allowed.
- Group matching uses exact product tokens, as RFC 9309 specifies. A group for `Claude` does not apply to `ClaudeBot`. Some crawlers follow their own looser rules.
- robots.txt is a request, not an access control. This actor reports what the file says, not what any crawler actually does.
- Sites behind bot protection may return 403 for the homepage. This is reported in `error`, and the robots.txt results are still filled in.
- The built-in crawler list is maintained by hand and may not include every new AI crawler. Use `extraUserAgents` for tokens that are missing.

### FAQ

**Can I check whether GPTBot is blocked in robots.txt?** Yes. Look up the `GPTBot` entry in `bots`. `allowed: false` means its group (or the `*` group) disallows `/`.

**Does it follow redirects?** Yes, for all requests. `llmsTxtUrl` shows the final URL.

**Can I schedule it?** Yes. Create a task with your site list and add an Apify Schedule (for example, weekly) to track changes over time.

**Can I use it via API or integrations?** Yes. Use the Apify API, the API clients, webhooks, or integrations such as Make, Zapier and Google Sheets.

**Can AI agents use it?** Yes. The actor can be called through the Apify MCP server, so an AI agent can run an AI bot audit and read the JSON rows.

**Why is a bot "allowed" when I never mentioned it?** If no group names the crawler and there is no `*` group that disallows `/`, robots.txt permits access by default.

### Support

Found a wrong result or a missing crawler? Open an issue on the **Issues** tab and include the site and the bot name.

# Actor input Schema

## `sites` (type: `array`):

One domain or URL per line (1-1000). Each entry is reduced to its origin (scheme + host), e.g. 'example.com/blog' becomes https://example.com. Duplicates are removed.

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

How many sites are audited in parallel (1-20). Each site gets 5 small requests.

## `extraUserAgents` (type: `array`):

Optional extra robots.txt product tokens to evaluate in addition to the built-in AI crawler list, e.g. 'Googlebot' or 'Bingbot' (max 50). They appear in 'bots' with operator and purpose 'custom'.

## Actor input object example

```json
{
  "sites": [
    "https://www.python.org",
    "https://www.djangoproject.com"
  ],
  "maxConcurrency": 5,
  "extraUserAgents": []
}
```

# Actor output Schema

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

Result rows in the default dataset.

# 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 = {
    "sites": [
        "https://www.python.org",
        "https://www.djangoproject.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dvc-analytics/ai-bot-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 = { "sites": [
        "https://www.python.org",
        "https://www.djangoproject.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("dvc-analytics/ai-bot-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 '{
  "sites": [
    "https://www.python.org",
    "https://www.djangoproject.com"
  ]
}' |
apify call dvc-analytics/ai-bot-readiness-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dvc-analytics/ai-bot-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/ufDqVtUDOVoZFNu8O/builds/AR0GI6bQQedlg2qJ0/openapi.json
