# GEO / AEO & Agent-Readiness Business Auditor (`preponderant_sunray_v2w/leadsignal-geo-auditor`) Actor

Audits businesses for AI Search visibility (Google AI Overviews, Perplexity, ChatGPT Search, Claude, Grok) and Website Agent-Readiness (llms.txt, AI crawler blocks, LocalBusiness & FAQ JSON-LD Schema, and agent-actionable booking/forms).

- **URL**: https://apify.com/preponderant_sunray_v2w/leadsignal-geo-auditor.md
- **Developed by:** [Victor Dsouza](https://apify.com/preponderant_sunray_v2w) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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

<p align="center">
  <img src="https://api.apify.com/v2/key-value-stores/e5G2xpZ1kDzbioQxs/records/icon.png" alt="GEO / AEO & Agent-Readiness Business Auditor Logo" width="128" height="128" style="border-radius: 24px;" />
</p>

## GEO / AEO & Agent-Readiness Business Auditor

An all-in-one hybrid Apify Actor that audits local and online businesses for **AI Search Visibility** (Google AI Overviews, Perplexity, ChatGPT Search, Claude, Grok) and **Website Agent-Readiness** (`/llms.txt`, AI crawler blocks, `LocalBusiness` & `FAQPage` JSON-LD Schema, AEO direct-answer blocks, and AI-agent actionable booking/forms).

***

### How the 3-Stage Hybrid Engine Works

1. **Stage 1 — City AI Visibility Check (Runs Once per Batch)**
   - **Google AI Overviews & Local Pack:** Searches `"best {niche} in {location}"` to extract Google AI Overview citations, Local Pack recommendations, and Page 1 organic domains.
   - **Live AI Search Engines (Optional via OpenRouter):** Queries `perplexity/sonar` and `openai/gpt-4o-mini:online` once for the target city to extract recommended local competitors and cited authority directories (Yelp, BBB, Healthgrades, etc.).
2. **Stage 2 — High-Speed HTTP & Signal Scan**
   - Scans business websites in parallel via fast HTTP (`undici` + `cheerio`).
   - Audits `/robots.txt` (AI crawler blocks like `GPTBot`, `OAI-SearchBot`, `ClaudeBot`, `PerplexityBot`, `Google-Extended`), `/llms.txt` (with anti-soft-404 protection), Schema.org `JSON-LD` (`@graph`, `LocalBusiness` subtypes, `FAQPage`, `ReserveAction`, `sameAs`), meta `noai` tags, Q\&A headings, booking widgets, and accessible lead forms.
3. **Stage 3 — Smart Headless Browser Fallback**
   - Automatically launches headless Chromium (`Playwright`) only for websites that return a client-side JS shell or anti-bot challenge during Stage 2.

***

### Inputs

| Field | Type | Required | Description |
| :--- | :--- | :---: | :--- |
| `businesses` | `Array<object \| string>` | **Yes** | List of businesses as `[{ "name": "Acme Dental", "website": "https://acmedental.com" }]` or plain URL strings. |
| `niche` | `string` | No | Target industry or category (e.g., `"dentists"`, `"med spas"`, `"roofers"`). |
| `location` | `string` | No | Target city and state/region (e.g., `"Austin, TX"`). |
| `country` | `string` | No | Two-letter ISO country code (default: `"US"`). |
| `checkGoogleAiOverview` | `boolean` | No | Check Google Search & AI Overviews for `"best {niche} in {location}"` (default: `true`). |
| `openRouterApiKey` | `string` | No | Optional OpenRouter API key to query live Perplexity Sonar & ChatGPT Search citations for the city. |
| `aiEngines` | `string[]` | No | OpenRouter web-search models to query when `openRouterApiKey` is provided. |
| `maxConcurrency` | `integer` | No | Number of websites to scan in parallel during Stage 2 (default: `10`). |

***

### Outputs

Each audited business produces one structured record in the **Default Dataset** containing:

- **`agentReadinessScore` (`0–100`):** Overall GEO/AEO & AI-agent readiness health score (`100` = fully optimized, `<60` = needs GEO/AEO optimization).
- **`opportunity`:** Qualification flag (`qualifies`), priority score (`strength`), and prioritized `reasons[]` with human-readable `evidence` for every gap detected.
- **`aiVisibility`:** Whether the business is cited in Google AI Overviews, ranked on Page 1, cited in Perplexity/ChatGPT Search, which local competitors were recommended instead, and which cited directories they are missing.
- **`signals`:** Full technical breakdown of `/llms.txt`, `/robots.txt` AI bot permissions, `JSON-LD` schemas, question headings, direct-answer blocks, booking links, and form accessibility for browser agents.
- **`contacts` & `pitchOpener`:** Extracted business emails, phone numbers, and a factual 2-sentence outreach opener tailored to the exact audit findings.

Additionally, the full city-wide AI search benchmark is saved to the run's Key-Value Store under **`CITY_AI_VISIBILITY`**.

***

### Connect to Your AI Agent (MCP & API)

#### 1. Apify MCP Server (Claude Desktop, Cursor, Windsurf, OpenAI Agents)

```json
{
  "mcpServers": {
    "geo-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "preponderant_sunray_v2w/leadsignal-geo-auditor"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### 2. Single-Call REST API

```bash
curl -X POST "https://api.apify.com/v2/acts/preponderant_sunray_v2w~leadsignal-geo-auditor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "niche": "dentists",
    "location": "Austin, TX",
    "businesses": [
      { "name": "Austin Dental Spa", "website": "https://www.austindentalspa.com" }
    ]
  }'
```

# Actor input Schema

## `niche` (type: `string`):

Niche or category to test AI search recommendations for (e.g. dentists, emergency plumbers, med spas).

## `location` (type: `string`):

Target city and state (e.g. Austin, TX).

## `country` (type: `string`):

Two-letter ISO country code (e.g. US, CA, GB, AU).

## `businesses` (type: `array`):

Array of businesses as \[{ "name": "Acme Dental", "website": "https://acmedental.com" }] or plain website URL strings.

## `checkGoogleAiOverview` (type: `boolean`):

Runs 1 Playwright search on Google for 'best {niche} in {location}' to capture Google AI Overview citations.

## `openRouterApiKey` (type: `string`):

Optional OpenRouter key to query live Perplexity Sonar & ChatGPT Search citations once for the city.

## `aiEngines` (type: `array`):

OpenRouter web-search models to check when openRouterApiKey is provided.

## `useGoogleSerpProxy` (type: `boolean`):

Unblocks Google Search & Google AI Overviews on Apify Cloud via groups=\['GOOGLE_SERP'] over HTTP without needing Chromium.

## `useDatacenterProxy` (type: `boolean`):

Enable on Apify Cloud to route fast HTTP website checks through your Datacenter proxy pool.

## `useResidentialProxy` (type: `boolean`):

Enable on Apify Cloud to route Google Search and anti-bot fallback checks through US Residential IPs.

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

How many websites to scan in parallel during Stage 2 HTTP mode.

## Actor input object example

```json
{
  "niche": "dentists",
  "location": "Austin, TX",
  "country": "US",
  "businesses": [
    {
      "name": "Austin Dental Spa",
      "website": "https://www.austindentalspa.com"
    }
  ],
  "checkGoogleAiOverview": true,
  "aiEngines": [
    "perplexity/sonar",
    "openai/gpt-4o-mini:online"
  ],
  "useGoogleSerpProxy": true,
  "useDatacenterProxy": false,
  "useResidentialProxy": false,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `businessAudits` (type: `string`):

Complete GEO/AEO & Agent-Readiness audit results, scores, signals, contacts, and pitch openers for each business.

## `cityAiVisibility` (type: `string`):

City-wide Google AI Overview, Local Pack, Perplexity, and ChatGPT Search citations and recommended competitors.

# 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 = {
    "niche": "dentists",
    "location": "Austin, TX",
    "businesses": [
        {
            "name": "Austin Dental Spa",
            "website": "https://www.austindentalspa.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("preponderant_sunray_v2w/leadsignal-geo-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 = {
    "niche": "dentists",
    "location": "Austin, TX",
    "businesses": [{
            "name": "Austin Dental Spa",
            "website": "https://www.austindentalspa.com",
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("preponderant_sunray_v2w/leadsignal-geo-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 '{
  "niche": "dentists",
  "location": "Austin, TX",
  "businesses": [
    {
      "name": "Austin Dental Spa",
      "website": "https://www.austindentalspa.com"
    }
  ]
}' |
apify call preponderant_sunray_v2w/leadsignal-geo-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,preponderant_sunray_v2w/leadsignal-geo-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/U1ZUwUM6VdPBFBpNj/builds/qgpxeJCqe9nwru85R/openapi.json
