# AI Visibility Scorecard for Local Businesses (`growth-installations/ai-visibility-scorecard`) Actor

A shareable one-page scorecard per local business: does ChatGPT, Perplexity, Gemini, Copilot or Google AI name them for buyer questions in their city, and which competitor gets recommended instead. HTML card plus a summary row.

- **URL**: https://apify.com/growth-installations/ai-visibility-scorecard.md
- **Developed by:** [Growth Installations](https://apify.com/growth-installations) (community)
- **Categories:** Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $500.00 / 1,000 business scorecards

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

## AI Visibility Scorecard for Local Businesses

When a homeowner asks ChatGPT for "the best HVAC company in Richmond", does your client come up? Or a competitor? This Actor asks **ChatGPT, Perplexity, Gemini, Copilot, Google AI Overview and Google AI Mode** the questions buyers really ask in a city. Then it builds a **one-page scorecard for each local business**:

- an AI visibility score (0–100) and grade
- which assistants named the business and which skipped it
- **which competitor got recommended instead**, quoting the AI's own words
- the websites the AI drew its answer from
- three concrete fixes

Every scorecard is a self-contained HTML page. Send the link, print it to PDF, or screenshot it to PNG. A summary row covers the whole market.

Built for agencies that sell local SEO or AI search optimization: run a city and a niche, then send each prospect their own scorecard.

### Live run (3 Nov 2026): HVAC companies in Richmond, VA

Two questions × 6 assistants (8 answers came back), 30 businesses from Google Maps, 3 scorecards:

| Business | Score | Headline |
|---|---|---|
| Woodfin - Your Home Team | **92 A** | AI named Woodfin in 8 of 8 answers. |
| Davis & Green Services | **12 D** | AI named Davis & Green Services in 1 of 8 answers. Woodfin got picked 7x when Davis & Green Services was left out. |
| Michael & Son Services | **0 F** | AI never named Michael & Son Services. It sent people to Woodfin instead. |

What ChatGPT said: *"Woodfin – Your Home Team, Automatic Climate, and James River Air Conditioning at the top of my list for HVAC companies in Richmond, VA. Here are the companies I'd contact first."*

Summary row: average score 34 · never named: Michael & Son Services · most recommended: Woodfin (8 of 8 answers), Automatic Climate HVAC & Air Conditioning (5 of 8) · where the AI looked: jamesriverair.com, reviews.birdeye.com, consumeraffairs.com, serviceagent.ai, bestprosintown.com.

![Sample scorecard](sample_scorecard_richmond.png)

### Input

- **city** + **niche** (16 presets such as hvac, plumber, roofing, dentist, med-spa, pi-lawyer; any other text works too)
- **businesses** (optional): `Name` or `Name | website.com`, one per line. Leave it empty to score the most-reviewed businesses on Google Maps.
- **promptCount** (1–5 standard buyer questions) or **prompts** (your own)
- **engines**: all six by default
- **agencyName** and **accentColor** to brand the cards

### Output

- **One dataset row per business**, `type: scorecard`, with these fields: score, grade, headline, named_by, missing_from, picked_instead, top_rival, top_rival_quote, times_named, times_top3, times_site_cited, rating, reviews, website, phone, maps_url, per-engine details, prompts, cited_domains, and **scorecard_url** (the HTML page in the run's key-value store).
- **One summary row**, `type: summary`, with average_score, grades, never_named, most_recommended_rivals, engines_answered and cited_domains. It's also saved as `SUMMARY`.

### How the score works

score = 100 × (0.6 × share of answers that name the business + 0.3 × share where it's in the top 3 + 0.1 × share that cite its website)

Grades: A ≥ 70, B ≥ 50, C ≥ 30, D ≥ 10, F below that. A rival only counts as "picked instead" when it's in the top 3 of an answer that left the business out.

### Pricing (pay per event)

| Event | Price |
|---|---|
| Market scan (per run, up to 40 Maps businesses) | $0.60 |
| AI question (one question asked across all selected assistants) | $0.20 |
| **Scorecard** (per business) | **$0.50** |

10 scorecards with 3 questions cost **$6.20**. Scoring more businesses in the same city reuses the same answers, so only the per-scorecard fee goes up.

AI answers change from day to day. Every card shows the date it was checked and the questions asked, so anyone can check them.

CLI: `python cli.py --city "Richmond, VA" --niche hvac --max 5` (needs APIFY_TOKEN). Add `--maps-json/--search-json` to rerun saved datasets offline at no cost.

# Actor input Schema

## `city` (type: `string`):

City and state the businesses serve, e.g. 'Richmond, VA'.

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

Business type. Presets: hvac, plumber, electrician, roofing, dentist, med-spa, pi-lawyer, chiropractor, auto-repair, moving, pest-control, landscaping, pool, garage-door, foundation, water-damage. Any other text is used as the Google Maps search and in the questions.

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

Optional. One per line, 'Business name' or 'Business name | website.com'. Leave empty to score the most-reviewed businesses on Google Maps.

## `maxScorecards` (type: `integer`):

How many businesses to score when the list above is empty.

## `promptCount` (type: `integer`):

How many standard buyer questions to ask each AI ('best X in city', 'top rated X near city', 'most trusted X', 'affordable X with good reviews', 'which X do locals recommend'). Each question is one charge.

## `prompts` (type: `array`):

Optional. Your own questions instead of the standard ones, e.g. 'emergency AC repair in Richmond, VA'.

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

Which assistants to ask. All six by default.

## `agencyName` (type: `string`):

Shown in the footer of every scorecard, so you can send it to prospects.

## `accentColor` (type: `string`):

Hex color for headings and the top rule of the card.

## `maxPlaces` (type: `integer`):

How many local businesses to load from Google Maps so we can recognize which rival the AI recommended (up to 40).

## `countryCode` (type: `string`):

Two-letter Google country code.

## Actor input object example

```json
{
  "city": "Richmond, VA",
  "niche": "hvac",
  "maxScorecards": 10,
  "promptCount": 3,
  "engines": [
    "chatgpt",
    "perplexity",
    "gemini",
    "copilot",
    "ai_overview",
    "ai_mode"
  ],
  "accentColor": "#2563eb",
  "maxPlaces": 40,
  "countryCode": "us"
}
```

# Actor output Schema

## `scorecards` (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 = {
    "city": "Richmond, VA",
    "niche": "hvac"
};

// Run the Actor and wait for it to finish
const run = await client.actor("growth-installations/ai-visibility-scorecard").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 = {
    "city": "Richmond, VA",
    "niche": "hvac",
}

# Run the Actor and wait for it to finish
run = client.actor("growth-installations/ai-visibility-scorecard").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 '{
  "city": "Richmond, VA",
  "niche": "hvac"
}' |
apify call growth-installations/ai-visibility-scorecard --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,growth-installations/ai-visibility-scorecard"
        }
    }
}
```

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/RWrAJyoROpYmUdwZO/builds/cLeQ2xGpMqVBSPmSs/openapi.json
