# AI SERP Visibility Monitor - DataForSEO Rank API (`changeable_peddler/ai-serp-visibility-monitor`) Actor

Analyze Google top-10 SERP visibility, competitor rankings, and AI Overview mentions or citations for target domains using DataForSEO.

- **URL**: https://apify.com/changeable\_peddler/ai-serp-visibility-monitor.md
- **Developed by:** [Sean](https://apify.com/changeable_peddler) (community)
- **Categories:** SEO tools, Marketing, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00 / 1,000 keyword serp analyzeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## AI SERP Visibility Monitor - DataForSEO Rank and AI Overview API

Analyze live Google top-10 SERP visibility for your brand, client, or competitors. The Actor uses DataForSEO Google Organic Live Advanced results to return one structured report per keyword with organic rankings, competitor pressure, AI Overview mentions/citations, SERP features, and recommended actions.

Use this Actor as an AI SERP visibility monitor, Google AI Overview rank API, and GEO visibility API for brand, competitor, and client reporting.

### What It Does

- Checks each keyword in Google Organic Live results for a selected location, language, and device.
- Detects whether target domains rank in the top 10.
- Compares target rankings against tracked competitor domains.
- Requests Google AI Overview data when available and reports mentions/citations.
- Produces a compact opportunity score and action list for SEO, GEO, and content teams.

### Typical Use Cases

- Weekly AI search visibility monitoring for client brands.
- Competitor rank and AI Overview citation checks before content planning.
- Automated SEO QA for keyword portfolios.
- Lead-gen enrichment for agencies selling AI search optimization.

### Related workflow

Use [Keyword ROI Scorer](https://apify.com/changeable_peddler/keyword-roi-scorer) to choose terms, [SERP Content Brief Generator](https://apify.com/changeable_peddler/serp-content-brief-generator) to plan content, and [AI SERP Visibility Monitor](https://apify.com/changeable_peddler/ai-serp-visibility-monitor) to track organic rankings and AI Overview citations. Add competitor extensions with [PPC Ad Creative Monitor](https://apify.com/changeable_peddler/ppc-ad-creative-monitor), [Shopping Price Gap Finder](https://apify.com/changeable_peddler/shopping-price-gap-finder), and [App Store ASO Opportunity Finder](https://apify.com/changeable_peddler/app-store-aso-opportunity-finder).

Suite positioning: see `../docs/suites/SEO_AND_AI_VISIBILITY_SUITE.md`.

### Demo input

```json
{
    "keywords": ["best web scraping api", "apify alternatives"],
    "targetDomains": ["apify.com"],
    "competitorDomains": ["browse.ai", "phantombuster.com", "dataforseo.com"],
    "locationCode": 2840,
    "languageCode": "en",
    "device": "desktop",
    "includeAiOverview": true,
    "concurrency": 2
}
````

Each keyword is intentionally bounded to one top-10 SERP request so the unit of work is clear and predictable.

### What you get back

The default dataset contains one row per keyword:

- `visibilityScore`: strength of target organic plus AI Overview visibility.
- `opportunityScore`: urgency/opportunity based on missing rankings, competitor advantage, and AI Overview gaps.
- `targetPresence`: target domains found, best rank, URLs, and AI Overview citation status.
- `competitorPresence`: competitor domains found and best rank.
- `aiOverview`: AI Overview presence, citations, and a short text snippet.
- `topOrganicResults`: normalized top-10 organic results.
- `recommendedActions`: practical next steps for ranking or AI citation improvement.

### Pricing Model

The recommended pay-per-event price is `$0.025` per `keyword-serp-analyzed` event. The Actor charges the event before report work starts so Apify user budget limits are respected.

The top-10 cap is deliberate: it gives users a clear unit of value for batch SEO monitoring.

### Notes

DataForSEO credentials are configured as encrypted Apify Actor environment variables. They are not part of the input and are never written to the dataset.

# Actor input Schema

## `keywords` (type: `array`):

Search queries to analyze. Each keyword uses one DataForSEO Google Organic Live Advanced top-10 request.

## `targetDomains` (type: `array`):

Domains to measure as the owned brand or client. Use bare domains such as example.com.

## `competitorDomains` (type: `array`):

Optional competitor domains to compare against in organic results and AI Overview citations.

## `locationCode` (type: `integer`):

DataForSEO Google location code. 2840 is United States.

## `languageCode` (type: `string`):

Google language code, for example en, es, de, or fr.

## `device` (type: `string`):

Google SERP device type.

## `includeAiOverview` (type: `boolean`):

Request asynchronous Google AI Overview data when available.

## `concurrency` (type: `integer`):

Number of keywords to process in parallel.

## Actor input object example

```json
{
  "keywords": [
    "best web scraping api",
    "apify alternatives"
  ],
  "targetDomains": [
    "apify.com"
  ],
  "competitorDomains": [
    "browse.ai",
    "phantombuster.com",
    "dataforseo.com"
  ],
  "locationCode": 2840,
  "languageCode": "en",
  "device": "desktop",
  "includeAiOverview": true,
  "concurrency": 2
}
```

# Actor output Schema

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

One row per keyword with target ranks, competitor ranks, AI Overview visibility, SERP features, and recommended actions.

## `runSummary` (type: `string`):

Counts for analyzed keywords, API errors, and charged events.

# 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 = {
    "keywords": [
        "best web scraping api",
        "apify alternatives"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("changeable_peddler/ai-serp-visibility-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 = { "keywords": [
        "best web scraping api",
        "apify alternatives",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("changeable_peddler/ai-serp-visibility-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "best web scraping api",
    "apify alternatives"
  ]
}' |
apify call changeable_peddler/ai-serp-visibility-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=changeable_peddler/ai-serp-visibility-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "AI SERP Visibility Monitor - DataForSEO Rank API",
        "description": "Analyze Google top-10 SERP visibility, competitor rankings, and AI Overview mentions or citations for target domains using DataForSEO.",
        "version": "0.0",
        "x-build-id": "6IzVYsBje049p0t7A"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/changeable_peddler~ai-serp-visibility-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-changeable_peddler-ai-serp-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/changeable_peddler~ai-serp-visibility-monitor/runs": {
            "post": {
                "operationId": "runs-sync-changeable_peddler-ai-serp-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/changeable_peddler~ai-serp-visibility-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-changeable_peddler-ai-serp-visibility-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "keywords",
                    "targetDomains"
                ],
                "properties": {
                    "keywords": {
                        "title": "Keywords",
                        "minItems": 1,
                        "maxItems": 100,
                        "type": "array",
                        "description": "Search queries to analyze. Each keyword uses one DataForSEO Google Organic Live Advanced top-10 request.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "best web scraping api"
                        ]
                    },
                    "targetDomains": {
                        "title": "Target Domains",
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "description": "Domains to measure as the owned brand or client. Use bare domains such as example.com.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "apify.com"
                        ]
                    },
                    "competitorDomains": {
                        "title": "Competitor Domains",
                        "maxItems": 50,
                        "type": "array",
                        "description": "Optional competitor domains to compare against in organic results and AI Overview citations.",
                        "items": {
                            "type": "string"
                        },
                        "default": [
                            "browse.ai",
                            "phantombuster.com",
                            "dataforseo.com"
                        ]
                    },
                    "locationCode": {
                        "title": "Location Code",
                        "minimum": 1,
                        "type": "integer",
                        "description": "DataForSEO Google location code. 2840 is United States.",
                        "default": 2840
                    },
                    "languageCode": {
                        "title": "Language Code",
                        "minLength": 2,
                        "maxLength": 10,
                        "type": "string",
                        "description": "Google language code, for example en, es, de, or fr.",
                        "default": "en"
                    },
                    "device": {
                        "title": "Device",
                        "enum": [
                            "desktop",
                            "mobile"
                        ],
                        "type": "string",
                        "description": "Google SERP device type.",
                        "default": "desktop"
                    },
                    "includeAiOverview": {
                        "title": "Include AI Overview",
                        "type": "boolean",
                        "description": "Request asynchronous Google AI Overview data when available.",
                        "default": true
                    },
                    "concurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 5,
                        "type": "integer",
                        "description": "Number of keywords to process in parallel.",
                        "default": 2
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
