# AI Crawler Access Audit: robots.txt, GPTBot, llms.txt (`kacperor/ai-crawler-access-audit`) Actor

Check in bulk which AI crawlers a website lets in. For every domain: allowed, partially restricted or blocked for 19 AI bots (GPTBot, ClaudeBot, PerplexityBot, Google-Extended…), whether llms.txt exists, and the sitemaps it declares.

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

## Pricing

$3.00 / 1,000 domains

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 Access Audit: robots.txt, GPTBot, ClaudeBot, llms.txt

Find out — for one site or ten thousand — **which AI crawlers are allowed in**. For every domain the tool reads `robots.txt` the way a crawler does and tells you, bot by bot, whether it is allowed, partially restricted or blocked. It also checks for `llms.txt` and lists the sitemaps the site declares.

Covers 19 AI bots: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, anthropic-ai, Google-Extended, PerplexityBot, Perplexity-User, Applebot-Extended, Amazonbot, meta-externalagent, CCBot, Bytespider, DuckAssistBot, cohere-ai, MistralAI-User and Diffbot — each tagged by purpose (training, search, or acting on a user's request).

### What you can do with it

- **AI visibility (GEO) audits** — a site that blocks OAI-SearchBot or PerplexityBot cannot be cited by those assistants. Check your own and your clients' sites in one run.
- **Policy checks** — confirm that the bots you meant to block are really blocked, and that you did not block search assistants by accident.
- **Research and journalism** — measure how many publishers, shops or universities block AI training.
- **Before you crawl** — check what a list of sites permits.

### Input

| Field | What it does |
|---|---|
| `domains` | Websites to audit |
| `maxConcurrency` | Domains checked in parallel |

### Output

Real output from a run on 16 Nov 2026 (long text and lists shortened here).

```json
{
  "domain": "nytimes.com",
  "robotsTxt": "found",
  "error": null,
  "wildcardAccess": "partial",
  "allowedBots": [],
  "partialBots": [
    "Amazonbot",
    "MistralAI-User"
  ],
  "blockedBots": [
    "GPTBot",
    "OAI-SearchBot",
    "ChatGPT-User"
  ],
  "blocksAllAiTraining": false,
  "blocksAiSearch": true,
  "namedAiBots": [
    "GPTBot",
    "OAI-SearchBot",
    "ChatGPT-User"
  ],
  "hasLlmsTxt": false,
  "llmsTxtLength": 0,
  "hasLlmsFullTxt": false,
  "sitemaps": [
    "https://www.nytimes.com/sitemaps/new/news.xml.gz",
    "https://www.nytimes.com/sitemaps/new/sitemap.xml.gz",
    "https://www.nytimes.com/sitemaps/new/collections.xml.gz"
  ],
  "bots": {
    "GPTBot": {
      "operator": "OpenAI",
      "purpose": "training",
      "access": "blocked",
      "namedInRobots": true,
      "disallowRules": 1,
      "crawlDelay": null
    },
    "OAI-SearchBot": {
      "operator": "OpenAI",
      "purpose": "search",
      "access": "blocked",
      "namedInRobots": true,
      "disallowRules": 1,
      "crawlDelay": null
    }
  }
}
```

`access` is `blocked` when the homepage is disallowed for that bot, `partial` when some paths are disallowed, `allowed` otherwise. `wildcardAccess` is what a bot not named in the file gets.

### Good to know

- The audit reads what the site *declares* in robots.txt. It does not test firewall or CDN rules that may block bots regardless of robots.txt.
- Rule precedence follows the robots.txt standard: the longest matching rule wins, and Allow wins a tie.
- A site without robots.txt allows everything; a robots.txt that cannot be fetched is reported as unknown, not as allowed.
- You pay per audited domain.

# Actor input Schema

## `domains` (type: `array`):

Websites to audit, e.g. nytimes.com.

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

How many domains are checked at the same time.

## Actor input object example

```json
{
  "domains": [
    "nytimes.com",
    "apify.com"
  ],
  "maxConcurrency": 8
}
```

# Actor output Schema

## `results` (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 = {
    "domains": [
        "nytimes.com",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kacperor/ai-crawler-access-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 = { "domains": [
        "nytimes.com",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kacperor/ai-crawler-access-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 '{
  "domains": [
    "nytimes.com",
    "apify.com"
  ]
}' |
apify call kacperor/ai-crawler-access-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kacperor/ai-crawler-access-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/74X0LNfulIOuxNzXy/builds/yRRfHrjb3aZesLF2j/openapi.json
