# AI Search AEO Monitor — AIO, Perplexity & ChatGPT ($15-$18/1K) (`studio001/ai-search-aeo-brand-monitor`) Actor

Track brand mentions, citations, SOV & organic AIO displacement across Google AI Overviews ($18/1K Gold), Perplexity, ChatGPT & Gemini ($15/1K BYOK, 256MB). Native MCP (/mcp), real-time Standby REST API, or weekly trendMode batch. $0 on failures.

- **URL**: https://apify.com/studio001/ai-search-aeo-brand-monitor.md
- **Developed by:** [YEONG JUN YOO](https://apify.com/studio001) (community)
- **Categories:** SEO tools, AI, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $18.00 / 1,000 google ai overview queries checked

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Search AEO Brand Monitor (Google AI Overviews, Perplexity, ChatGPT & Gemini)

**Answer Engine Optimization (AEO) brand visibility, citation share, Share-of-Voice (SOV%), and weekly diff monitor (`256 MB` RAM) across Google AI Overviews, Perplexity Sonar, ChatGPT Search, and Google Gemini Search Grounding — engineered for SaaS marketing teams, SEO agencies, Clay B2B GTM pipelines, weekly crons (`trendMode`), and MCP AI agents.**

Traditional rank trackers stop at the 10 blue links while buyers increasingly ask AI answer engines for software shortlists and product comparisons. Yet official standalone SaaS AEO dashboards lock teams into `$99–$499/month` contracts, and generic browser-based ChatGPT scrapers time out under Turnstile walls or burn `4,096 MB` RAM containers (`$0.20/1K` advertised Free decoy rates).

`studio001/ai-search-aeo-brand-monitor` solves AEO tracking cleanly at **`256 MB` RAM**:

- **Zero-Key Default Engine (`google_aio`):** Queries live Google Search + inline `<div data-subtree="aimc">` AI Overview blocks via lightweight `GOOGLE_SERP` HTTP (with bounded retry and optional `UNBLOCKER` fallback) plus top-10 organic SERP fallback results when Google omits an AI Overview.
- **Managed Perplexity (`perplexity`):** Powered out-of-the-box by `perplexity/sonar` with structured URL citations—or pass your own `perplexityApiKey` / `openrouterApiKey` for discounted BYOK pricing.
- **Full 4-Engine BYOK (`chatgpt`, `gemini`, `perplexity`):** Bring your own OpenRouter, OpenAI, Perplexity, or Gemini keys (`isSecret: true`) to audit all four AI engines in a single normalized run at `$0.015/check` (`GOLD`).
- **Weekly `trendMode` Diff Engine:** Persists brand mention, citation share, and URL changes in an Apify Key-Value Store so weekly schedules automatically flag `new_citations`, `lost_citations`, and `share_of_voice_delta_pct`.

***

### Table of Contents

1. [Why Studio 001 AEO Brand Monitor Beats Browser Scrapers](#why-studio-001-aeo-brand-monitor-beats-browser-scrapers)
2. [Supported Engines: Managed Zero-Key vs. Optional 4-Engine BYOK](#supported-engines-managed-zero-key-vs-optional-4-engine-byok)
3. [Pay-Per-Event (PPE) Pricing & Cost Estimator](#pay-per-event-ppe-pricing--cost-estimator)
4. [Quick Start & Input Examples](#quick-start--input-examples)
5. [Weekly Cron `trendMode` & Brand Share-of-Voice Scoring](#weekly-cron-trendmode--brand-share-of-voice-scoring)
6. [Clay B2B GTM Enrichment Recipe (`Run Apify Actor`)](#clay-b2b-gtm-enrichment-recipe-run-apify-actor)
7. [Output Dataset Sample & Field Dictionary](#output-dataset-sample--field-dictionary)
8. [Integrations: MCP Server (`LIMITED_PERMISSIONS`), n8n, Python, Node.js & cURL](#integrations-mcp-server-limited_permissions-n8n-python-nodejs--curl)
9. [High-ROI Multi-Actor Pipelines (Studio 001 Ecosystem)](#high-roi-multi-actor-pipelines-studio-001-ecosystem)
10. [Architecture, Ethics & Run Telemetry (`OUTPUT_METRICS`)](#architecture-ethics--run-telemetry-output_metrics)
11. [Frequently Asked Questions (FAQ)](#frequently-asked-questions-faq)

***

### Why Studio 001 AEO Brand Monitor Beats Browser Scrapers

| Capability | **`studio001/ai-search-aeo-brand-monitor`** | Browser-Based AI UI Scrapers | Legacy Rank Trackers |
|---|---|---|---|
| **Memory & Speed** | **`256 MB` RAM**, ~3–7s HTTP/RPC execution | `2,048–4,096 MB` Playwright, `30–71s` timeouts | Blue-link rankings only |
| **Zero-Key Default Mode** | **`google_aio` works with ZERO external keys** | Breaks on login / Turnstile walls | N/A |
| **Bot & Account Safety** | **0 Turnstile solvers, 0 login cookie pools** | Fragile residential account rotation | N/A |
| **Google AIO Citations** | Extracts text + structured `TgQPHd` publisher/URLs + organic top 10 | Misses encoded redirect citations | No AI answer text |
| **Multi-Engine Flexibility** | Managed (`google_aio` + `perplexity`) + 4-engine BYOK | Single site only | N/A |
| **Weekly Delta (`trendMode`)** | Built-in snapshot diff (`new_citations`, `lost_citations`, `SOV delta`) | Manual external diffing | Limited AEO history |
| **Clay & MCP Support** | **`LIMITED_PERMISSIONS` + `256 MB`** single-row JSON | Heavy multi-row outputs | Manual CSV exports |
| **Failed Query Guarantee** | **`$0.00` event fee** on blocks/timeouts | Compute still consumed | Fixed seat fee |

***

### Supported Engines: Managed Zero-Key vs. Optional 4-Engine BYOK

Choose the exact mix of Managed infrastructure and Bring-Your-Own-Key (BYOK) endpoints per run inside `engines`:

| Engine ID | Upstream Source | Key Required? | Billing Event | Notes |
|---|---|---|---|---|
| `google_aio` | Google Search (`GOOGLE_SERP` inline `aimc` + optional `UNBLOCKER` fallback + top 10 organic SERP) | **No key needed** | `aio-check` | Ideal default for zero-config daily Quality Score, SEO audits, and Clay tables. Note: Google shows AI Overviews on ~50–60% of queries; when absent, `has_ai_answer: false` is reported alongside `organic_results`. |
| `perplexity` | Perplexity `sonar` live web-grounded search | **Optional** (Managed default or BYOK) | `perplexity-managed-check` (Managed) or `byok-engine-check` (if `perplexityApiKey` / `openrouterApiKey` supplied) | 100% query coverage with rich inline citation annotations (`15–25` URLs typical). |
| `chatgpt` | OpenAI Web Search (`openai/gpt-5-mini` native search via OpenRouter OR `openaiApiKey` Responses `web_search_preview`) | **Yes (BYOK)** (`openaiApiKey` or `openrouterApiKey`) | `byok-engine-check` | Clean official web-search grounding with zero Turnstile/session bans. |
| `gemini` | Google Gemini 2.5 Flash Search Grounding (`geminiApiKey` or `openrouterApiKey`) | **Yes (BYOK)** (`geminiApiKey` or `openrouterApiKey`) | `byok-engine-check` | Direct Google grounding metadata chunks & cited URLs. |

***

### Pay-Per-Event (PPE) Pricing & Cost Estimator

This Actor uses transparent **Apify Pay-Per-Event (PPE)** billing where every successful check triggers exactly one event matched to its engine and billing mode. Failed queries, missing BYOK keys, and rate-limited blocks emit `status: "error"` and charge **`$0.00` item fees**.

#### Event Pricing Schedule

| Event Name | Trigger Condition | FREE | BRONZE | SILVER | GOLD |
|---|---|---|---|---|---|
| `apify-actor-start` | One-time run initialization fee | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `aio-check` | Per `google_aio` query checked (`GOOGLE_SERP` included) | `$0.0250` | `$0.0220` | `$0.0200` | **`$0.0180`** |
| `perplexity-managed-check` | Per Managed `perplexity` query (zero BYOK key supplied) | `$0.0480` | `$0.0450` | `$0.0420` | **`$0.0400`** |
| `byok-engine-check` | Per `perplexity`, `chatgpt`, or `gemini` query using your BYOK key | `$0.0200` | `$0.0180` | `$0.0160` | **`$0.0150`** |

#### Monthly Budget & `$5.00` Credit Estimator (Including `$0.00005` Start Fee)

| Scenario | FREE Tier | BRONZE Tier | SILVER Tier | GOLD Tier | Checks per `$5.00` |
|---|---|---|---|---|---|
| **50 queries** (`google_aio` only) | `$1.25005` | `$1.10005` | `$1.00005` | `$0.90005` | ~200–277 AIO checks |
| **200 prompts** (weekly `google_aio` brand monitor) | `$5.00005` | `$4.40005` | `$4.00005` | `$3.60005` | N/A |
| **100 prompts** (Managed `perplexity` audit) | `$4.80005` | `$4.50005` | `$4.20005` | `$4.00005` | ~104–125 Managed |
| **1,000 checks** (4-engine BYOK audit across 250 queries) | `$20.00005` | `$18.00005` | `$16.00005` | `$15.00005` | ~250–333 BYOK |

***

### Quick Start & Input Examples

#### 1. Zero-Key Quick Start (Google AI Overview Only)

```json
{
  "queries": [
    "best crm software for small business",
    "what is generative engine optimization"
  ],
  "brandNames": ["HubSpot", "Salesforce"],
  "competitorBrands": ["Zoho", "Pipedrive"],
  "engines": ["google_aio"],
  "trendMode": true,
  "maxTotalChargeUsd": 0.25
}
```

#### 2. Full 4-Engine Weekly Monitor (Google AIO + BYOK OpenRouter)

```json
{
  "queries": [
    "best b2b email verification tools",
    "apify vs bright data pricing"
  ],
  "brandNames": ["Apify", "apify.com"],
  "competitorBrands": ["Bright Data", "Zyte", "Oxylabs"],
  "engines": ["google_aio", "perplexity", "chatgpt", "gemini"],
  "openrouterApiKey": "YOUR_OPENROUTER_API_KEY",
  "trendMode": true,
  "trendStoreName": "my-brand-aeo-weekly",
  "maxTotalChargeUsd": 0.5
}
```

#### Input Field Dictionary

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | `string[]` | `["best crm software for small business"]` | Search prompts/queries to monitor across engines. |
| `brandNames` | `string[]` | `["HubSpot", "Salesforce"]` | Your brand names or domains tracked for mentions & citation links. |
| `competitorBrands` | `string[]` | `["Zoho", "Pipedrive"]` | Competitor names/domains used to calculate `share_of_voice_pct`. |
| `gl` / `hl` | `string` | `"us"` / `"en"` | Google locale country & language parameters for `google_aio`. |
| `engines` | `string[]` | `["google_aio"]` | Target engines (`google_aio`, `perplexity`, `chatgpt`, `gemini`). |
| `fallbackToUnblockerOnLazyAio` | `boolean` | `false` | If `GOOGLE_SERP` returns a lazy `/async/folsrch` placeholder, try 1 fallback shot via Web Unblocker. |
| `trendMode` | `boolean` | `false` | Store & compare historical snapshots in Apify Key-Value Store (`trendStoreName`). |
| `trendStoreName` | `string` | `"studio001-aeo-trends"` | Key-Value Store name for persisting weekly snapshot history. |
| `openrouterApiKey` | `string` *(secret)* | `null` | Optional BYOK OpenRouter key enabling `perplexity`, `chatgpt`, and `gemini` under `byok-engine-check`. |
| `perplexityApiKey` | `string` *(secret)* | `null` | Optional direct Perplexity API key (`sonar`). |
| `openaiApiKey` | `string` *(secret)* | `null` | Optional direct OpenAI key (`web_search_preview` tool). |
| `geminiApiKey` | `string` *(secret)* | `null` | Optional direct Google AI Studio Gemini API key (`google_search` tool). |
| `proxyConfiguration` | `object` | `GOOGLE_SERP` | Apify proxy config (`GOOGLE_SERP` pre-selected). |
| `maxConcurrency` | `integer` | `3` | Bounded concurrent workers (`1–4`). |
| `maxTotalChargeUsd` | `number` | `null` | Hard PPE dollar spending ceiling per run. |

***

### Weekly Cron `trendMode` & Brand Share-of-Voice Scoring

When `trendMode` is enabled, each `(query, engine)` pair maintains a compact JSON record inside your named Apify Key-Value Store (`trendStoreName`). Subsequent scheduled runs emit exact week-over-week movement inside `trend_delta`:

- **`brand_mentioned_changed`:** Flags new wins or sudden disappearances in AI answers.
- **`brand_cited_changed`:** Alerts Slack/Clay when your domain gains or loses an explicit AI source citation pill.
- **`share_of_voice_delta_pct`:** Exact percentage point swing (`brand_mentions / (brand_mentions + competitor_mentions) * 100`).
- **`new_citations` & `lost_citations`:** Lists exact domains added to or dropped from the AI answer's citation set since the prior run!

Pair high-intent competitor domains discovered in `new_citations` with [**Similarweb Traffic & Channel Intel API**](https://apify.com/studio001/similarweb-traffic-channel-intel-api) to quantify how much search traffic those newly cited domains command.

***

### Clay B2B GTM Enrichment Recipe (`Run Apify Actor`)

Clay's **Run Apify Actor** node spends the Clay user's own Apify credits and requires zero Clay platform surcharges:

1. Create a Clay table of target accounts or category keywords (`Query`, `Brand`, `Competitor_1`).
2. Add **Run Apify Actor** → `studio001/ai-search-aeo-brand-monitor`.
3. Map single-row input JSON:
   ```json
   {
     "queries": ["{{Query}}"],
     "brandNames": ["{{Brand}}"],
     "competitorBrands": ["{{Competitor_1}}"],
     "engines": ["google_aio", "perplexity"],
     "maxTotalChargeUsd": 0.08
   }
   ```
4. Pipe rows where `brand_mentioned == false` or `share_of_voice_pct < 30` into Clay outbound outreach or [**B2B Email Finder & SMTP/MX Verifier**](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier) to contact the prospect's Head of Content/Growth with an exact AEO gap proof!

***

### Output Dataset Sample & Field Dictionary

#### Sample Record

```json
{
  "query": "best crm software for small business",
  "engine": "google_aio",
  "billing_mode": "managed_google_aio",
  "status": "ok",
  "error_code": null,
  "error": null,
  "has_ai_answer": true,
  "answer_text": "There is no single best CRM for every small business—the right choice depends on your budget... Best Overall & Growing Teams: HubSpot offers an intuitive interface... Zoho CRM provides...",
  "answer_chars": 1543,
  "citations": [
    {
      "url": "https://www.uschamber.com",
      "domain": "uschamber.com",
      "title": "CRM for Small Business: Top Free or Low-Cost Options",
      "publisher": "U.S. Chamber of Commerce"
    },
    {
      "url": "https://www.pcmag.com",
      "domain": "pcmag.com",
      "title": "The Best Small Business CRM Software We've Tested for 2026",
      "publisher": "PCMag"
    }
  ],
  "citation_domains": ["pcmag.com", "reddit.com", "uschamber.com", "youtube.com"],
  "citation_count": 4,
  "organic_results": [
    { "position": 1, "title": "Best Small Business CRM Software", "url": "https://www.hubspot.com/products/crm", "domain": "hubspot.com" }
  ],
  "brand_mentioned": true,
  "brand_cited": false,
  "brand_mention_count": 1,
  "brand_first_mention_pos": 1,
  "matched_brands": ["HubSpot"],
  "competitors_mentioned": ["Zoho"],
  "share_of_voice_pct": 50.0,
  "organic_brand_matched": true,
  "organic_brand_rank": 1,
  "aio_displacement_risk": false,
  "trend_delta": {
    "has_previous": true,
    "previous_checked_at": "2026-11-22T09:00:00+00:00",
    "brand_mentioned_changed": false,
    "brand_cited_changed": false,
    "share_of_voice_delta_pct": 10.0,
    "new_citations": ["uschamber.com"],
    "lost_citations": []
  },
  "latency_ms": 4812.4,
  "checked_at": "2026-11-29T05:15:00+00:00",
  "idempotency_key": "1f3a9d82c4e0b11847fa09b2"
}
```

#### Output Field Dictionary

| Field | Type | Description |
|---|---|---|
| `query` | `string` | Search query checked. |
| `engine` | `string` | Engine (`google_aio`, `perplexity`, `chatgpt`, `gemini`). |
| `billing_mode` | `string` | Exact billing mode applied (`managed_google_aio`, `managed_perplexity`, `byok_openrouter`, `byok_perplexity`, `byok_openai`, `byok_gemini`). |
| `status` | `string` | `"ok"` when checked (`$0` event fee if `"error"`). |
| `error_code` / `error` | `string \| null` | Machine error code (`ENABLEJS_CHALLENGE`, `BYOK_API_KEY_REQUIRED`, `API_KEY_REQUIRED`, `UPSTREAM_HTTP_ERROR`). |
| `has_ai_answer` | `boolean` | True when an AI Overview (`google_aio`) or LLM answer text (`perplexity`/`chatgpt`/`gemini`) was returned. |
| `answer_text` | `string \| null` | Extracted plain-text AI answer body. |
| `answer_chars` | `integer` | Character count of `answer_text`. |
| `citations` | `array` | List of cited sources (`url`, `domain`, `title`, `publisher`). |
| `citation_domains` | `string[]` | Deduplicated sorted list of cited domains. |
| `citation_count` | `integer` | Total structured citations found. |
| `organic_results` | `array` | Top 10 Google organic SERP results (`position`, `title`, `url`, `domain`, `display_cite`) when running `google_aio` (supports `/goto?url=` + `<cite>` breadcrumb normalization). |
| `brand_mentioned` | `boolean` | True if any target entry in `brandNames` appears in `answer_text`. |
| `brand_cited` | `boolean` | True if any target brand/domain appears inside AI `citations`. |
| `brand_mention_count` | `integer` | Total boundary-matched occurrences of your brands inside `answer_text`. |
| `brand_first_mention_pos` | `integer \| null` | Rank order (`1` = first mentioned) among all tracked brands and competitors in `answer_text`. |
| `matched_brands` | `string[]` | Exact tracked brand names matched in `answer_text`. |
| `competitors_mentioned` | `string[]` | Tracked competitors detected in `answer_text`. |
| `share_of_voice_pct` | `number` | `brand_mention_count / (brand_mention_count + competitor_mentions) * 100`. |
| `organic_brand_matched` | `boolean` | True if any tracked brand/domain ranks inside the top 10 organic SERP results. |
| `organic_brand_rank` | `integer \| null` | 1-based organic ranking position (`1..10`) of your tracked brand/domain when matched. |
| `aio_displacement_risk` | `boolean` | High-intent SEO alert: `true` when your brand ranks Top-5 organically yet is completely omitted and uncited inside the AI Overview above it. |
| `trend_delta` | `object \| null` | Week-over-week snapshot delta when `trendMode: true`. |
| `latency_ms` | `number \| null` | Request + parse latency in milliseconds. |
| `checked_at` | `string` | UTC ISO-8601 check timestamp. |
| `idempotency_key` | `string` | SHA-256 prefix over `query:engine:date` for deduplicating warehouse inserts. |

***

### Integrations: MCP Server (`LIMITED_PERMISSIONS`), n8n, Python, Node.js & cURL

`studio001/ai-search-aeo-brand-monitor` operates under **`LIMITED_PERMISSIONS`** at **`256 MB`** RAM, guaranteeing immediate discovery inside Apify's official `mcp.apify.com` agent tool registry.

#### 1. Apify MCP Server (Claude Desktop / Cursor)

```json
{
  "mcpServers": {
    "apify-aeo-monitor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?tools=actors,docs,studio001/ai-search-aeo-brand-monitor",
        "--header",
        "Authorization: Bearer YOUR_APIFY_API_TOKEN"
      ]
    }
  }
}
```

#### 2. n8n Weekly AEO Alert Workflow

1. **Schedule Trigger** (Every Monday `09:00`).
2. **HTTP Request (`POST`)** → `https://api.apify.com/v2/acts/studio001~ai-search-aeo-brand-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN`:
   ```json
   {
     "queries": ["best project management tools for startups"],
     "brandNames": ["Linear"],
     "competitorBrands": ["Jira", "Asana"],
     "engines": ["google_aio", "perplexity"],
     "trendMode": true
   }
   ```
3. **IF Node** (`{{$json.trend_delta.brand_cited_changed}} == true` or `{{$json.share_of_voice_pct}} < 40`) → post formatted citation delta card directly to Slack.

#### 3. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("studio001/ai-search-aeo-brand-monitor").call(
    run_input={
        "queries": ["what is generative engine optimization"],
        "brandNames": ["HubSpot", "Semrush"],
        "competitorBrands": ["Ahrefs"],
        "engines": ["google_aio"],
        "trendMode": True,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["engine"], item["has_ai_answer"], item["brand_mentioned"], item["share_of_voice_pct"], item["citation_domains"])
```

#### 4. Node.js (`apify-client`)

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "YOUR_APIFY_API_TOKEN" });
const run = await client.actor("studio001/ai-search-aeo-brand-monitor").call({
  queries: ["best crm software for small business"],
  brandNames: ["HubSpot"],
  competitorBrands: ["Zoho", "Pipedrive"],
  engines: ["google_aio"],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### 5. cURL

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/studio001~ai-search-aeo-brand-monitor/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["best crm software for small business"], "brandNames": ["HubSpot"], "engines": ["google_aio"]}'
```

***

### Use as a Real-Time API or Native MCP Server (Standby)

Run live brand visibility and AIO displacement checks synchronously without cold batch startup:

- **Native MCP Endpoint (`LIMITED_PERMISSIONS`, `256 MB`):** `https://studio001--ai-search-aeo-brand-monitor.apify.actor/mcp` (`tools/list` exposes `check_ai_search_visibility`)
- **Instant REST Endpoint:** `POST https://studio001--ai-search-aeo-brand-monitor.apify.actor/api/run`

```bash
curl -X POST "https://studio001--ai-search-aeo-brand-monitor.apify.actor/api/run" \
  -H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["best crm software for small business"], "brandNames": ["HubSpot"], "competitorBrands": ["Zoho"], "engines": ["google_aio"]}'
```

***

### High-ROI Multi-Actor Pipelines (Studio 001 Ecosystem)

Build full-funnel AI search, traffic, and outbound pipelines across Studio 001's 12 Actors (starter kits at [github.com/yeongjunyoo/studio001-apify-clients](https://github.com/yeongjunyoo/studio001-apify-clients)):

1. **Citation Domain Authority Audit:** Send `citation_domains` discovered in AI Overviews straight to [**Similarweb Traffic & Channel Intel API**](https://apify.com/studio001/similarweb-traffic-channel-intel-api) to benchmark monthly visits and search split of sites cited by AI.
2. **Paid vs. AI Organic Search Cross-Check:** Pair AEO brand mentions with [**Google Ads Transparency Direct-RPC**](https://apify.com/studio001/google-ads-transparency-direct-rpc) and contact winning editorial authors via [**B2B Email Finder & SMTP/MX Verifier**](https://apify.com/studio001/b2b-email-finder-smtp-mx-verifier).
3. **YouTube & Social AI Video Citations:** Notice YouTube videos inside `TgQPHd` citations? Extract full video scripts & chapters via [**YouTube Transcript & Chapters Pro API**](https://apify.com/studio001/youtube-transcript-chapters-pro-api), [**YouTube Channel & Search Pro API**](https://apify.com/studio001/youtube-channel-search-pro-api), and [**Instagram Reels AI Transcript & Hook Extractor**](https://apify.com/studio001/instagram-reels-ai-transcript-hook-extractor).
4. **GTM Hiring, Travel & Korea Commerce Monitoring:** Extend your warehouse with [**ATS Jobs Direct API**](https://apify.com/studio001/ats-jobs-direct-api), [**Google Hotels Multi-OTA Monitor**](https://apify.com/studio001/google-hotels-multi-ota-monitor), [**Coupang Search & Product Detail Pro API**](https://apify.com/studio001/coupang-search-detail-pro-api), [**Olive Young Global & KR Beauty API**](https://apify.com/studio001/oliveyoung-global-kr-beauty-api), and [**Naver Blog & Cafe Pro Scraper**](https://apify.com/studio001/naver-blog-cafe-pro-scraper).

***

### Architecture, Ethics & Run Telemetry (`OUTPUT_METRICS`)

- **No Turnstile Solvers or Cookie Pools:** Never hits browser CAPTCHA solvers or banned web accounts; uses Apify `GOOGLE_SERP` proxy (`http://www.google.com/search`) + official LLM web-search APIs (`perplexity/sonar`, OpenAI native web search, Gemini Search Grounding).
- **Accurate Google SERP & Citation Extraction:** Parses inline `<div data-subtree="aimc">` blocks alongside embedded `<!--TgQPHd|||...-->` citation metadata comments (`url`, `domain`, `title`, `publisher`) without inflating `/sorry/` false positives on healthy SERPs.
- **Full Telemetry:** Writes exact counts, proxy calls, external API spend, and per-1K margins into Key-Value Store `OUTPUT_METRICS`.

***

### Frequently Asked Questions (FAQ)

**Q. Do I have to supply API keys to use this Actor?**\
No. The default engine (`google_aio`) requires zero external API keys, and Managed Perplexity works out of the box when enabled on Apify Cloud. Optional BYOK keys only unlock lower BYOK tier pricing and ChatGPT/Gemini engines.

**Q. Why do some queries return `has_ai_answer: false` for `google_aio`?**\
Google itself selectively decides when to display an AI Overview (~50–60% of informational queries, lower on narrow navigational prompts). Rather than fabricating text or silently dropping the query, we still return `top 10` `organic_results` and brand match telemetry cleanly. Running `engines: ["google_aio", "perplexity"]` guarantees an AI answer + citations on 100% of prompts.

**Q. How do I avoid duplicate rows when scheduling weekly crons?**\
Upsert into your database/Clay warehouse using `idempotency_key` (`sha256` of `query:engine:date`) and enable `trendMode: true` to receive automatic delta comparisons inside `trend_delta`.

***

### Playbook: How High-Performing Growth & SEO Teams Win AEO Citations

Based on live extraction audits across hundreds of commercial SaaS and ecommerce prompts, brands that consistently capture position 1–3 citations in Google AI Overviews and Perplexity Sonar share four structural signals you can audit systematically with `trendMode`:

1. **Direct Entity Definition & Comparison Tables:** Pages featuring structured Markdown/HTML comparison tables (`X vs Y`, pricing columns, pros/cons matrices) are extracted verbatim far more frequently by `perplexity/sonar` and Google's `<div data-subtree="aimc">` summarizer than long narrative blog posts.
2. **Authoritative Community & Review Footprints:** Notice how Google AI Overviews frequently blend editorial reviews (`PCMag`, `US Chamber`, documentation hubs) alongside practitioner threads (`Reddit r/...`, YouTube demonstrations). Tracking `citation_domains` lets content teams target exact third-party publishers already trusted by the answer engine.
3. **Organic Top-10 Correlation:** When `brand_mentioned` is `false` in `has_ai_answer: true`, compare `organic_results` positions 1–10 in the exact same dataset row to see whether your SEO landing page is missing semantic headings or FAQ schema.
4. **Weekly Delta Automation:** Set an Apify Schedule every Monday at `08:00 UTC` with `trendMode: true` and pipe only rows where `trend_delta.brand_cited_changed == true` or `trend_delta.new_citations` is non-empty into Slack or n8n.

***

### Troubleshooting & Zero-Charge Error Codes

Whenever a check fails, blocks, or lacks a required BYOK key for optional engines, this Actor emits a diagnostic record (`status: "error"`) with **`$0.00` event billing**:

| `error_code` | Billed Event? | Meaning & Recommended Action |
|---|---|---|
| `ENABLEJS_CHALLENGE` | **$0.00** | Google returned an intermediate JS redirect page even after retry. Enable `GOOGLE_SERP` default proxy or `fallbackToUnblockerOnLazyAio: true`. |
| `CAPTCHA_OR_SORRY_GATE` | **$0.00** | Rate/CAPTCHA gate returned by upstream; safely aborted without brute forcing. |
| `API_KEY_REQUIRED` | **$0.00** | `perplexity` requested locally without `OPENROUTER_API_KEY` or customer `perplexityApiKey`/`openrouterApiKey`. Pass your own key or run on Apify Cloud Managed mode. |
| `BYOK_API_KEY_REQUIRED` | **$0.00** | `chatgpt` or `gemini` requested without `openrouterApiKey`, `openaiApiKey`, or `geminiApiKey`. Note `google_aio` works with zero API keys. |
| `UPSTREAM_HTTP_ERROR` | **$0.00** | Upstream timeout, invalid customer key (`401`/`403`), or provider `5xx` error cleanly isolated per `(query, engine)`. |
| `PROXY_UNAVAILABLE` | **$0.00** | Cloud proxy initialization failure; inspect Apify account proxy limits in Console. |

***

### Task Examples

Launch pre-configured zero-setup workflows directly from Apify Store:

- **[Google AI Overviews (AIO) Brand Citation Monitor (Zero Key)](https://apify.com/studio001/ai-search-aeo-brand-monitor/examples/google-ai-overviews-brand-monitor)** — Monitor brand mentions, citation URLs & Share-of-Voice in Google AI Overviews with zero API keys at 256MB RAM ($18/1K Gold).
- **[AI Search Brand Share-of-Voice & Sentiment Tracker](https://apify.com/studio001/ai-search-aeo-brand-monitor/examples/ai-search-share-of-voice-tracker)** — Measure brand Share-of-Voice, citation rank & sentiment vs competitors in Google AI Overviews and AI search engines at 256MB.
- **[Perplexity AI Brand Citations & Source Domain Monitor](https://apify.com/studio001/ai-search-aeo-brand-monitor/examples/perplexity-brand-citations-monitor)** — Track Perplexity Sonar brand mentions, exact source citations & competitor Share-of-Voice via Managed or BYOK mode at 256MB RAM.
- **[Weekly AEO Brand Citation Diff & Trend Monitor (Cron)](https://apify.com/studio001/ai-search-aeo-brand-monitor/examples/weekly-aeo-citation-trend-tracker)** — Track week-over-week Google AI Overview brand citation gains, drops & competitor displacement with persistent trendMode KV diffs.
- **[Multilingual & Korean AI Search AEO Monitor (gl=kr, hl=ko)](https://apify.com/studio001/ai-search-aeo-brand-monitor/examples/multilingual-korean-ai-search-aeo-audit)** — Monitor localized Google AI Overviews in Korean (gl=kr, hl=ko), Japanese, or EU markets for brand citations at 256MB RAM.

***

### Custom Data Pipelines & Enterprise SLA

Need dedicated rate limits, custom dataset schemas, private webhook/S3/Snowflake delivery, high-volume volume discounts, or bespoke multi-Actor pipelines?

- **Direct Engineering Contact:** <studio001.kr@gmail.com>
- **Supported Delivery:** Managed Apify Standby MCP integrations, dedicated residential/unblocker routing, custom cron monitoring, and SLA-backed ETL connectors.

# Actor input Schema

## `queries` (type: `array`):

List of search queries to monitor across selected AI search engines.

## `brandNames` (type: `array`):

Brand names or domains to monitor (case-insensitive matching across AI answer text, citations, and organic SERP links).

## `competitorBrands` (type: `array`):

Optional competitor brands/domains used to compute competitive Share-of-Voice % (brand_mentions / total_category_mentions).

## `gl` (type: `string`):

Two-letter country code for Google AI Overview locale (default: us).

## `hl` (type: `string`):

Language code for Google Search queries (default: en).

## `engines` (type: `array`):

Choose one or more AI engines: google_aio, perplexity, chatgpt, gemini.

## `fallbackToUnblockerOnLazyAio` (type: `boolean`):

When GOOGLE_SERP returns a lazy /async/folsrch placeholder without inline AI Overview after retry, optionally try 1 shot via Apify Web Unblocker.

## `trendMode` (type: `boolean`):

Persist previous snapshots in a named Key-Value Store and output trend_delta (brand gain/loss, SOV delta %, new & lost citation URLs).

## `trendStoreName` (type: `string`):

Named Apify Key-Value Store used when trendMode is enabled.

## `openrouterApiKey` (type: `string`):

Optional OpenRouter key supporting perplexity, chatgpt, and gemini engines via BYOK.

## `perplexityApiKey` (type: `string`):

Optional official Perplexity Sonar API key for BYOK mode.

## `openaiApiKey` (type: `string`):

Optional official OpenAI API key for ChatGPT native web search (BYOK mode).

## `geminiApiKey` (type: `string`):

Optional official Google AI Studio Gemini API key for Search Grounding (BYOK mode).

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Uses GOOGLE_SERP group by default for Google AI Overview queries.

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

Bounded parallel engine requests (1-4).

## `maxTotalChargeUsd` (type: `number`):

Optional hard Pay-Per-Event spending cap (USD) per run.

## Actor input object example

```json
{
  "queries": [
    "best crm software for small business",
    "what is generative engine optimization"
  ],
  "brandNames": [
    "HubSpot",
    "Salesforce"
  ],
  "competitorBrands": [
    "Zoho",
    "Pipedrive"
  ],
  "gl": "us",
  "hl": "en",
  "engines": [
    "google_aio"
  ],
  "fallbackToUnblockerOnLazyAio": false,
  "trendMode": false,
  "trendStoreName": "studio001-aeo-trends",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  },
  "maxConcurrency": 3,
  "maxTotalChargeUsd": 0.5
}
```

# Actor output Schema

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

Normalized per-(query, engine) AEO brand monitoring rows with citations and Share-of-Voice scores.

## `metrics` (type: `string`):

Engine check counts, zero-charge error diagnostics, external API spend, and unit economics telemetry.

# 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 = {
    "queries": [
        "best crm software for small business"
    ],
    "brandNames": [
        "HubSpot",
        "Salesforce"
    ],
    "engines": [
        "google_aio"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "GOOGLE_SERP"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio001/ai-search-aeo-brand-monitor").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 = {
    "queries": ["best crm software for small business"],
    "brandNames": [
        "HubSpot",
        "Salesforce",
    ],
    "engines": ["google_aio"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["GOOGLE_SERP"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio001/ai-search-aeo-brand-monitor").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 '{
  "queries": [
    "best crm software for small business"
  ],
  "brandNames": [
    "HubSpot",
    "Salesforce"
  ],
  "engines": [
    "google_aio"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "GOOGLE_SERP"
    ]
  }
}' |
apify call studio001/ai-search-aeo-brand-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio001/ai-search-aeo-brand-monitor"
        }
    }
}
```

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/cO8r8flGfs7syIYUN/builds/mTxv4y1p4jJtwNCqQ/openapi.json
