# GEO & AI Search Readiness Auditor: 14 AI Bots, llms.txt & SSR (`bbird923/geo-ai-readiness-batch-auditor`) Actor

Zero-LLM deterministic GEO audit across 15 signals: 14 AI search vs training bots in robots.txt (GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot), llms.txt validation, JS-only SPA shell detection, JSON-LD sameAs authority, verified emails & Clay-ready outreach hooks.

- **URL**: https://apify.com/bbird923/geo-ai-readiness-batch-auditor.md
- **Developed by:** [bbird](https://apify.com/bbird923) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 sites audited

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/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

## GEO & AI Search Readiness Batch Auditor (Zero LLM Cost, 15 Deterministic Signals)

Batch-audit hundreds or thousands of websites for **2026 Generative Engine Optimization (GEO) & AI Crawler Readiness** — with **zero LLM token cost**, **zero headless browsers**, and **100% deterministic, reproducible signals**.

Built for **GEO / Technical SEO agencies, B2B SaaS content teams, e-commerce AI-shopping consultants, Clay GTM engineers, n8n pipelines, and AI agents (MCP)**.

***

### Why Agencies Use This Instead of Generic SEO Checkers or AI Scrapers

| Capability | Legacy SEO Crawlers | LLM-Based Scrapers | **GEO & AI Search Readiness Batch Auditor** |
| :--- | :--- | :--- | :--- |
| **14 AI Bots `robots.txt` Matrix** | Rarely grouped or misses RFC 9309 precedence | Inconsistent | **RFC 9309 longest-prefix parser separating 7 AI Search Bots vs. 7 AI Training Bots** |
| **`/llms.txt` & `/llms-full.txt`** | Often fooled by 200 HTML soft-404s | Expensive | **Soft-404 HTML guard + `llmstxt.org` spec validation (`# H1`, `>` summary, Markdown links)** |
| **JS-Only SPA Detection** | Requires slow headless Chrome | High compute cost | **Pure-HTML SSR readability + empty SPA shell detector (`JS_ONLY_SHELL_UNREADABLE_BY_AI`)** |
| **Entity Graph & Authority `sameAs`** | Basic schema check | Unstructured | **Extracts all JSON-LD `@type`s + counts Wikipedia, Wikidata, LinkedIn, Crunchbase & GitHub `sameAs` anchors** |
| **Outreach Qualification** | Raw errors only | Hallucination risk | **0–100 `geoReadinessScore` (A–F) + 0–100 `outreachPriorityScore` + zero-hallucination `outreachHook`** |

***

### The 15 Deterministic GEO Metrics (100-Point Model)

1. **AI Search Crawlers Access (18 pts)** — Checks 7 real-time citation/search bots (`OAI-SearchBot`, `ChatGPT-User`, `PerplexityBot`, `Perplexity-User`, `Claude-SearchBot`, `Claude-User`, `Applebot`) using RFC 9309 longest-prefix matching (`Allow` wins ties with `Disallow`).
2. **AI Training Crawler Governance (4 pts)** — Separately audits 7 training crawlers (`GPTBot`, `ClaudeBot`, `anthropic-ai`, `Google-Extended`, `CCBot`, `Bytespider`, `Meta-ExternalAgent`) and detects accidental wildcard `Disallow: /` lockouts.
3. **Meta Robots & HTTP `X-Robots-Tag` Directives (8 pts)** — Flags `noindex`, `noai`, `noimageai`, and `nosnippet` across HTML `<meta>` tags and multi-value HTTP headers.
4. **`/llms.txt` Presence (8 pts)** — Confirms a live plain-text/Markdown `/llms.txt` and rejects HTML/JSON soft-404 traps.
5. **`/llms.txt` Spec Compliance (6 pts)** — Validates `llmstxt.org` structure (`# H1` title, `>` summary blockquote, Markdown links `[label](url)`).
6. **`/llms-full.txt` Presence (4 pts)** — Verifies extended LLM context availability with soft-404 protection.
7. **SSR Pure-HTML Readability (12 pts)** — Strips `<script>`, `<style>`, `<noscript>`, `<svg>`, and comments to count real words visible to non-JS AI crawlers and detect JS-only SPA shells (`<div id="root"></div>`, `<div id="app"></div>`, etc.).
8. **Text-to-HTML Signal Ratio (4 pts)** — Measures visible content bytes vs. raw HTML payload size.
9. **Core Entity JSON-LD (8 pts)** — Detects `Organization` / `LocalBusiness` (+5) and `WebSite` (+3).
10. **Rich Citation JSON-LD (6 pts)** — Detects `FAQPage` / `HowTo` (+3) and `Product` / `SoftwareApplication` / `Article` / `Person` (+3).
11. **Authoritative `sameAs` Entity Anchors (6 pts)** — Counts entity disambiguation links to **Wikipedia, Wikidata, LinkedIn, Crunchbase, and GitHub**.
12. **XML Sitemap & `<lastmod>` Freshness (6 pts)** — Inspects Sitemaps declared in `robots.txt` (or `/sitemap.xml` / `/sitemap_index.xml`, including `.xml.gz`) and calculates days since latest `<lastmod>`.
13. **Canonical URL Hygiene (4 pts)** — Verifies `<link rel="canonical">` presence and host match.
14. **OpenGraph & Meta Snippet Completeness (3 pts)** — Checks `<title>`, meta description, and `og:title` / `og:description`.
15. **Semantic HTML5 & Heading Hierarchy (3 pts)** — Evaluates semantic landmarks (`<main>`, `<article>`, `<nav>`, `<header>`, `<footer>`, `<section>`) and clean single-`<h1>` + `<h2>` structure.

Plus **Public Contact & DNS Deliverability Verification**: extracts public business emails (with automatic contact-page fallback), social links, and runs live async **DNS MX / SPF / DMARC** checks to identify mail providers (`Google Workspace`, `Microsoft 365`, etc.) and un-enforced DMARC policies.

***

### Example Input

```json
{
  "domains": [
    "stripe.com",
    "figma.com",
    "npr.org"
  ],
  "agencyPersona": "geo_seo_agency",
  "minOutreachPriority": 0,
  "maxGeoScore": 100,
  "checkLlmsFullTxt": true,
  "checkSitemap": true,
  "checkContactPage": true,
  "checkDnsEmailAuth": true
}
```

### Example Output (Flat, Clay & CSV Ready)

```json
{
  "domain": "npr.org",
  "finalUrl": "https://www.npr.org/",
  "status": "ok",
  "httpStatus": 200,
  "geoReadinessScore": 48,
  "geoGrade": "D",
  "outreachPriorityScore": 72,
  "outreachTier": "B - Warm GEO Prospect",
  "agencyPersona": "geo_seo_agency",
  "geoGapFlagsCount": 7,
  "geoGapFlags": [
    "AI_SEARCH_CRAWLERS_BLOCKED",
    "AI_TRAINING_CRAWLERS_BLOCKED",
    "MISSING_LLMS_TXT",
    "MISSING_LLMS_FULL_TXT",
    "MISSING_ORGANIZATION_SCHEMA",
    "MISSING_CONTENT_RICH_SCHEMA",
    "MISSING_SAMEAS_ENTITY_ANCHORS"
  ],
  "recommendedPitchAngle": "AI search crawler unblocking + llmstxt.org setup",
  "outreachHook": "Ran a quick AI-crawler check on npr.org (48/100, Grade D) — robots.txt currently blocks OAI-SearchBot, ChatGPT-User (+3 more) on the root path and there is no /llms.txt index live yet. Happy to send over the 1-page AI search crawler unblocking + llmstxt.org setup diff if ChatGPT/Perplexity visibility is on your roadmap this quarter.",
  "aiSearchAccessRatePct": 28.6,
  "blockedAiSearchBots": ["OAI-SearchBot", "ChatGPT-User", "PerplexityBot", "Perplexity-User", "Claude-SearchBot"],
  "blockedAiTrainingBots": ["GPTBot", "ClaudeBot", "anthropic-ai", "Google-Extended", "CCBot", "Bytespider", "Meta-ExternalAgent"],
  "hasLlmsTxt": false,
  "isJsOnlyShell": false,
  "visibleWordCount": 7920,
  "authoritativeSameAsCount": 0,
  "hasSitemap": true
}
```

***

### Transparent Pay-Per-Event Pricing

- **`site-audited`** — Charged **only when a valid website audit record (`status == "ok"`) is pushed** to your dataset.
- Unreachable/HTTP-error sites and records excluded by `minOutreachPriority` or `maxGeoScore` are **not charged**.
- Fully respects Apify `maxTotalChargeUsd` limits and stops gracefully as soon as `event_charge_limit_reached` triggers.

***

### Integrations: Clay, n8n & MCP

- **Clay**: Map your `Domain` column into `domains` and pull flat fields (`geoReadinessScore`, `geoGrade`, `outreachPriorityScore`, `blockedAiSearchBots`, `hasLlmsTxt`, `isJsOnlyShell`, `primaryEmail`, `outreachHook`) directly into columns.
- **n8n**: Import [`templates/n8n-geo-outreach-workflow.json`](./templates/n8n-geo-outreach-workflow.json) to automate weekly GEO lead qualification and routing.
- **MCP (AI Agents)**: Connect via Apify's MCP endpoint so Claude Desktop, Cursor, or autonomous sales agents can read `auditSummaryMarkdown` and `geoScoreBreakdown` directly.

***

### Local Development & Testing

```bash
python -m unittest discover -s tests -v
```

Simulate Pay-Per-Event charging locally:

```bash
ACTOR_TEST_PAY_PER_EVENT=true python -m src
```

# Actor input Schema

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

List of website domains or URLs to audit (e.g. 'stripe.com' or 'https://figma.com'). Duplicates are automatically removed.

## `startUrls` (type: `array`):

Optional standard Apify URL list (useful when chaining leads from Google Maps, Search, or CRM Actors).

## `agencyPersona` (type: `string`):

Customizes the 0-100 outreachPriorityScore and deterministic English outreachHook to match the exact services your team sells.

## `minOutreachPriority` (type: `integer`):

Only push sites scoring at or above this outreachPriorityScore (e.g. set 65 to keep high-urgency GEO prospects only; filtered sites are not charged).

## `maxGeoScore` (type: `integer`):

Only push sites with geoReadinessScore at or below this ceiling (e.g. set 70 to exclude already-optimized sites from your outreach list).

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

In addition to /llms.txt spec validation, also inspects /llms-full.txt (with soft-404 HTML protection).

## `checkSitemap` (type: `boolean`):

Inspects Sitemaps declared in robots.txt (or /sitemap.xml fallback, including .xml.gz) to compute days since latest <lastmod>.

## `checkContactPage` (type: `boolean`):

If no public business email is found on the homepage, automatically fetches the site's contact page to extract public emails.

## `checkDnsEmailAuth` (type: `boolean`):

Runs fast async DNS lookups to verify email MX records, identify mail providers (Google Workspace / M365), and check DMARC enforcement.

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

Number of websites audited simultaneously. Higher concurrency speeds up large batches.

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

Maximum seconds to wait for each website HTTP response.

## `maxSites` (type: `integer`):

Safety cap on the maximum number of unique domains processed in a single run.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "figma.com",
    "npr.org"
  ],
  "agencyPersona": "geo_seo_agency",
  "minOutreachPriority": 0,
  "maxGeoScore": 100,
  "checkLlmsFullTxt": true,
  "checkSitemap": true,
  "checkContactPage": true,
  "checkDnsEmailAuth": true,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 15,
  "maxSites": 1000
}
```

# 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": [
        "stripe.com",
        "figma.com",
        "npr.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bbird923/geo-ai-readiness-batch-auditor").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": [
        "stripe.com",
        "figma.com",
        "npr.org",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bbird923/geo-ai-readiness-batch-auditor").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": [
    "stripe.com",
    "figma.com",
    "npr.org"
  ]
}' |
apify call bbird923/geo-ai-readiness-batch-auditor --silent --output-dataset

```

## MCP server setup

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

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/bPBarbFfH0bD2hADU/builds/Dc875sqNgb9bvTGFH/openapi.json
