# AI Crawler Access, Server-HTML Visibility & Bot IP Verifier (`ademcakal_00/ai-crawler-bot-ip-verifier`) Actor

Audit GPTBot, OAI-SearchBot, ClaudeBot, and PerplexityBot robots.txt rules, server-rendered HTML visibility, llms.txt, and verify real vs. spoofed AI bot IPs against official vendor CIDR ranges.

- **URL**: https://apify.com/ademcakal_00/ai-crawler-bot-ip-verifier.md
- **Developed by:** [Adem Cakal](https://apify.com/ademcakal_00) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 1,000 url ai crawler audits

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

## AI Crawler Access, Server-HTML Visibility & Bot IP Verifier

Deterministically audit whether AI search engines and assistants (**ChatGPT / OAI-SearchBot**, **GPTBot**, **ClaudeBot**, **Claude-SearchBot**, **PerplexityBot**, **Googlebot**, **Bingbot**) can crawl and read your websites without JavaScript, and verify real vs. spoofed AI crawler IP addresses against official vendor CIDR lists.

Built for **AI agents (MCP / x402)**, **technical SEO teams**, **GEO agencies**, and **automated n8n / Make workflows**. Zero headless browsers, zero LLM hallucinations, sub-second execution, and strict JSON output schemas.

### Key Features

- **Exact RFC 9309 `robots.txt` Evaluation:** Evaluates 13 major AI and search crawlers using longest-match precedence, wildcards (`*`, `$`), Allow/Disallow tie-breaking, and Cloudflare `Content-Signal` parsing.
- **Server-Rendered HTML Visibility Check:** Measures actual readable word count without executing JavaScript and detects empty SPA app shells (`<div id="root"></div>`, `__next`, `__nuxt`), missing `<main>` / `<nav>` landmarks, `<html lang>`, unlabelled inputs, missing image alt text, `noindex`, and JSON-LD validity.
- **`/llms.txt` Detection:** Checks availability and basic Markdown structure of `/llms.txt`.
- **Official IP CIDR Bot Spoof Verification:** Verifies `IP + User-Agent` pairs or raw Apache/Nginx access log lines directly against official published JSON IP ranges from **OpenAI**, **Anthropic**, **Perplexity**, **Google**, and **Microsoft Bing** (IPv4 and IPv6). Counts verified hits, spoofed scraper hits, unverifiable bots, and AI assistant referrals (`chatgpt.com`, `perplexity.ai`, `claude.ai`, `copilot.microsoft.com`, `gemini.google.com`).
- **MCP & Agentic Payment Ready:** Runs with `LIMITED_PERMISSIONS` and strict Dataset Output Schema so AI agents can call it directly via Apify MCP (`mcp.apify.com`) or Pay-Per-Event agentic payments.

### How to Use

#### Mode 1: Audit Website AI Crawler Access & Server HTML (`url_audit`)

```json
{
  "mode": "url_audit",
  "urls": [
    "https://example.com",
    "https://docs.apify.com"
  ],
  "delayMs": 250
}
```

#### Mode 2: Verify Real vs. Spoofed AI Bot IPs (`bot_ip_verify`)

```json
{
  "mode": "bot_ip_verify",
  "ipChecks": [
    {
      "ip": "20.171.207.1",
      "userAgent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.0"
    },
    {
      "ip": "198.51.100.42",
      "userAgent": "Mozilla/5.0 (compatible; GPTBot/1.0)"
    }
  ]
}
```

You can also pass raw Apache/Nginx log strings in `accessLogLines`, or set `"mode": "both"` to run URL audits and IP verification in one job.

### Example Output (`url_audit`)

```json
{
  "recordType": "url_audit",
  "url": "https://example.com/",
  "httpStatus": 200,
  "fetchMs": 182,
  "aiReadyScore": 75,
  "passedChecks": 9,
  "totalChecks": 12,
  "serverHtmlWords": 24,
  "scriptTagCount": 0,
  "emptyAppShell": false,
  "robotsFound": false,
  "llmsTxtFound": false,
  "blockedSearchBots": [],
  "blockedTrainingBots": [],
  "bots": [
    {
      "agent": "OAI-SearchBot",
      "owner": "OpenAI",
      "purpose": "search",
      "allowed": true,
      "group": "none",
      "rule": null
    }
  ],
  "error": null
}
```

### Example Output (`bot_ip_verify`)

```json
{
  "recordType": "bot_ip_check",
  "ip": "198.51.100.42",
  "userAgent": "Mozilla/5.0 (compatible; GPTBot/1.0)",
  "claimedBot": "GPTBot",
  "owner": "OpenAI",
  "purpose": "training",
  "verificationState": "spoofed",
  "officialRangesChecked": 16,
  "error": null
}
```

### Pricing (Pay-Per-Event)

Transparent Pay-Per-Event pricing with no hidden browser or proxy surcharges:

| Event | Price | Example Cost |
|---|---|---|
| `url-audit` | `$0.015` per URL | 100 URLs = `$1.50` |
| `bot-ip-batch` | `$0.010` per 100 IP / log entries | 10,000 log lines = `$1.00` |

### FAQ

#### Why does server-rendered HTML matter for AI crawlers?

Major AI retrieval crawlers (including GPTBot, ClaudeBot, and PerplexityBot) typically fetch raw HTML without running client-side JavaScript. If your site renders its main copy inside an empty React/Vue/Next app shell, AI assistants may see an empty page even when `robots.txt` allows them.

#### How does IP verification detect fake GPTBot or ClaudeBot traffic?

Any scraper can copy a `GPTBot` or `ClaudeBot` User-Agent header. This Actor downloads the official published JSON IP range files from OpenAI, Anthropic, Perplexity, Google, and Bing on each run and performs exact IPv4/IPv6 CIDR matching. IPs outside the vendor's published prefixes are flagged as `spoofed`.

#### Does this Actor work with MCP, n8n, and Make?

Yes. Because it runs with `LIMITED_PERMISSIONS` and structured JSON output schemas, you can invoke it directly from Apify MCP (`mcp.apify.com`), n8n, Make, LangGraph, CrewAI, or standard REST API calls.

# Actor input Schema

## `mode` (type: `string`):

Choose 'url_audit' to audit URLs for AI crawler access (robots.txt, server HTML, llms.txt, schema), 'bot_ip_verify' to verify IP + User-Agent pairs or server access log lines against official vendor CIDR ranges, or 'both' to run both in one job.

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

Public website URLs to audit for GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, Googlebot, and Bingbot access plus server-rendered HTML readiness.

## `customAgents` (type: `array`):

Optional list of extra robots.txt User-Agent tokens to evaluate alongside the default 13 AI and search bots.

## `ipChecks` (type: `array`):

JSON array of objects like \[{"ip": "20.171.207.1", "userAgent": "Mozilla/5.0 (compatible; GPTBot/1.0)"}] to verify against official published vendor CIDR lists.

## `accessLogLines` (type: `array`):

Standard Apache/Nginx combined or common access log lines to scan for verified vs. spoofed AI crawler hits and AI assistant referrals (ChatGPT, Perplexity, Claude, Copilot, Gemini).

## `delayMs` (type: `integer`):

Delay in milliseconds between auditing consecutive URLs (0 to 5000).

## Actor input object example

```json
{
  "mode": "url_audit",
  "urls": [
    "https://example.com"
  ],
  "customAgents": [],
  "ipChecks": [],
  "accessLogLines": [],
  "delayMs": 250
}
```

# Actor output Schema

## `overview` (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("ademcakal_00/ai-crawler-bot-ip-verifier").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("ademcakal_00/ai-crawler-bot-ip-verifier").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 ademcakal_00/ai-crawler-bot-ip-verifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ademcakal_00/ai-crawler-bot-ip-verifier"
        }
    }
}
```

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/etdcQAL4kdaWLnDPi/builds/5gCt4OTsXqQzdaxGP/openapi.json
