# Google Business Profile Kpi Analyzer (`shahabuddin38/google-business-profile-kpi-analyzer`) Actor

Google Business Profile KPI Analyzer helps businesses, agencies, and local SEO teams track profile visibility, customer actions, and conversion intent using clear KPI dashboards, insights, and optimization recommendations.

- **URL**: https://apify.com/shahabuddin38/google-business-profile-kpi-analyzer.md
- **Developed by:** [Shahab Uddin](https://apify.com/shahabuddin38) (community)
- **Categories:** AI, Developer tools, SEO tools
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Google Business Profile KPI Analyzer

Google Business Profile KPI Analyzer is now set up as a real Apify Actor for batch reporting, with a separate local browser dashboard for interactive review.

It is built around this KPI framework:

**Google Business Profile KPIs = Local Visibility + Customer Actions + Conversion Intent**

### What it does

The project ingests Google Business Profile export data, normalizes it, calculates derived KPI rates, compares date ranges, explains what each KPI means, and generates business-ready reporting.

It covers:

- Local visibility
- Customer actions
- Conversion intent
- Search query insights
- Review and reputation analysis
- Trend comparison
- Opportunities and risks
- Prioritized next actions
- Final health scoring

### Runtime Modes

#### 1. Apify Actor mode

```bash
npm start
```

This runs [main.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/main.js:1), which:

- reads Actor input
- loads JSON bundles or uploaded CSV/JSON exports
- builds the analysis report
- pushes one output item to the default dataset
- stores full report artifacts in the default key-value store
- exits cleanly

Stored records include:

- `OUTPUT`
- `REPORT`
- `REPORT_MARKDOWN`
- `INPUT_NORMALIZED`
- `SUMMARY`

#### 2. Local dashboard mode

```bash
npm run web
```

Then open `http://localhost:3000`.

This serves the interactive dashboard in [index.html](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/index.html:1) and [app.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/app.js:1).

### Why the Apify run was hanging before

The earlier build used `npm start` to launch [server.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/server.js:1), which opened a local web server and waited forever on `localhost:3000`. That is correct for a local browser app, but it is the wrong runtime behavior for an Apify Actor because the process never completes and no result gets written to Output or Storage.

That issue is now fixed by making `npm start` run the batch Actor entrypoint instead.

### Input Options

The Actor accepts:

- `inputJson`
  - a combined JSON bundle pasted directly into the Actor input
- `sourceFiles`
  - uploaded CSV or JSON files using the Apify file upload field
- `useSampleData`
  - a bundled sample dataset for test runs
- date range overrides
  - `currentRangeStart`
  - `currentRangeEnd`
  - `previousRangeStart`
  - `previousRangeEnd`

The local dashboard also supports:

- pasted JSON bundle input
- direct local CSV upload
- direct local JSON upload

### Output Structure

The report is organized into:

1. Business Profile Overview
2. Local Visibility Metrics
3. Customer Action Metrics
4. Conversion Intent Metrics
5. Search Query Insights
6. Review and Reputation Insights
7. Trend Comparison
8. Opportunities and Risks
9. Recommended Next Actions

It also includes:

- KPI summary
- executive summary
- actions breakdown
- top search queries
- branded vs discovery analysis when possible
- recommendations prioritized by impact
- final health score

### Test

```bash
npm test
```

This runs:

- the analytics engine test
- the Actor integration test

### Files

- [main.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/main.js:1)
- [.actor/actor.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/.actor/actor.json)
- [.actor/INPUT\_SCHEMA.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/.actor/INPUT_SCHEMA.json)
- [.actor/output\_schema.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/.actor/output_schema.json)
- [.actor/dataset\_schema.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/.actor/dataset_schema.json)
- [.actor/key\_value\_store\_schema.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/.actor/key_value_store_schema.json)
- [INPUT\_SCHEMA.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/INPUT_SCHEMA.json:1)
- [src/analytics.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/src/analytics.js:1)
- [index.html](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/index.html:1)
- [app.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/app.js:1)
- [server.js](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/server.js:1)
- [sample-data/gbp-sample-bundle.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/sample-data/gbp-sample-bundle.json:1)
- [schemas/input-schema.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/schemas/input-schema.json:1)
- [schemas/output-schema.json](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/schemas/output-schema.json:1)
- [apify-store-listing.md](/Users/apple/Documents/GitHub/google-business-profile-kpi-analyzer/apify-store-listing.md:1)

# Actor input Schema

## `inputJson` (type: `string`):

Paste the full input JSON bundle. This is the fastest way to run the analyzer.

## `sourceFiles` (type: `array`):

Optional list of CSV or JSON files uploaded through Apify's file picker or provided as URLs.

## `useSampleData` (type: `boolean`):

Enable this to run the Actor with a ready-made sample business profile dataset.

## `currentRangeStart` (type: `string`):

Optional override for the current comparison range start date.

## `currentRangeEnd` (type: `string`):

Optional override for the current comparison range end date.

## `previousRangeStart` (type: `string`):

Optional override for the previous comparison range start date.

## `previousRangeEnd` (type: `string`):

Optional override for the previous comparison range end date.

## `includeNormalizedData` (type: `boolean`):

When enabled, the pushed dataset item will also include the normalized raw bundle used for analysis.

## Actor input object example

```json
{
  "inputJson": "{\n  \"business\": {\n    \"name\": \"Northwind Dental\",\n    \"category\": \"Dentist\",\n    \"location\": \"Chicago, IL\"\n  },\n  \"dateRanges\": {\n    \"current\": { \"start\": \"2026-03-15\", \"end\": \"2026-04-13\" },\n    \"previous\": { \"start\": \"2026-02-14\", \"end\": \"2026-03-14\" }\n  },\n  \"timeline\": [\n    {\n      \"date\": \"2026-04-13\",\n      \"profileViews\": 342,\n      \"searchViews\": 188,\n      \"mapsViews\": 154,\n      \"websiteClicks\": 20,\n      \"calls\": 15,\n      \"directionRequests\": 18,\n      \"bookings\": 5,\n      \"messages\": 7,\n      \"menuClicks\": 8,\n      \"productViews\": 21,\n      \"photoViews\": 96,\n      \"postEngagement\": 14,\n      \"impressions\": 371,\n      \"brandedViews\": 118,\n      \"discoveryViews\": 224\n    }\n  ],\n  \"searchQueries\": [\n    {\n      \"query\": \"family dentist chicago\",\n      \"impressions\": 380,\n      \"clicks\": 41,\n      \"branded\": false,\n      \"avgRank\": 3.4,\n      \"category\": \"Dentist\",\n      \"location\": \"Chicago\"\n    }\n  ],\n  \"reviews\": [\n    { \"date\": \"2026-04-12\", \"rating\": 4, \"responded\": false }\n  ],\n  \"rankings\": [\n    { \"date\": \"2026-04-10\", \"keyword\": \"family dentist chicago\", \"location\": \"Chicago\", \"rank\": 3 }\n  ]\n}",
  "includeNormalizedData": false
}
```

# Actor output Schema

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

Structured report items stored in the default dataset.

## `output` (type: `string`):

Primary JSON result stored in the default key-value store under OUTPUT.

## `report` (type: `string`):

Detailed JSON report stored in the default key-value store under REPORT.

## `summary` (type: `string`):

Compact summary stored in the default key-value store under SUMMARY.

## `reportMarkdown` (type: `string`):

Human-readable Markdown report stored in the default key-value store under REPORT\_MARKDOWN.

## `normalizedInput` (type: `string`):

Normalized bundle used during analysis, stored in the default key-value store under INPUT\_NORMALIZED.

# 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 = {
    "inputJson": `{
  "business": {
    "name": "Northwind Dental",
    "category": "Dentist",
    "location": "Chicago, IL"
  },
  "dateRanges": {
    "current": { "start": "2026-03-15", "end": "2026-04-13" },
    "previous": { "start": "2026-02-14", "end": "2026-03-14" }
  },
  "timeline": [
    {
      "date": "2026-04-13",
      "profileViews": 342,
      "searchViews": 188,
      "mapsViews": 154,
      "websiteClicks": 20,
      "calls": 15,
      "directionRequests": 18,
      "bookings": 5,
      "messages": 7,
      "menuClicks": 8,
      "productViews": 21,
      "photoViews": 96,
      "postEngagement": 14,
      "impressions": 371,
      "brandedViews": 118,
      "discoveryViews": 224
    }
  ],
  "searchQueries": [
    {
      "query": "family dentist chicago",
      "impressions": 380,
      "clicks": 41,
      "branded": false,
      "avgRank": 3.4,
      "category": "Dentist",
      "location": "Chicago"
    }
  ],
  "reviews": [
    { "date": "2026-04-12", "rating": 4, "responded": false }
  ],
  "rankings": [
    { "date": "2026-04-10", "keyword": "family dentist chicago", "location": "Chicago", "rank": 3 }
  ]
}`,
    "useSampleData": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahabuddin38/google-business-profile-kpi-analyzer").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 = {
    "inputJson": """{
  \"business\": {
    \"name\": \"Northwind Dental\",
    \"category\": \"Dentist\",
    \"location\": \"Chicago, IL\"
  },
  \"dateRanges\": {
    \"current\": { \"start\": \"2026-03-15\", \"end\": \"2026-04-13\" },
    \"previous\": { \"start\": \"2026-02-14\", \"end\": \"2026-03-14\" }
  },
  \"timeline\": [
    {
      \"date\": \"2026-04-13\",
      \"profileViews\": 342,
      \"searchViews\": 188,
      \"mapsViews\": 154,
      \"websiteClicks\": 20,
      \"calls\": 15,
      \"directionRequests\": 18,
      \"bookings\": 5,
      \"messages\": 7,
      \"menuClicks\": 8,
      \"productViews\": 21,
      \"photoViews\": 96,
      \"postEngagement\": 14,
      \"impressions\": 371,
      \"brandedViews\": 118,
      \"discoveryViews\": 224
    }
  ],
  \"searchQueries\": [
    {
      \"query\": \"family dentist chicago\",
      \"impressions\": 380,
      \"clicks\": 41,
      \"branded\": false,
      \"avgRank\": 3.4,
      \"category\": \"Dentist\",
      \"location\": \"Chicago\"
    }
  ],
  \"reviews\": [
    { \"date\": \"2026-04-12\", \"rating\": 4, \"responded\": false }
  ],
  \"rankings\": [
    { \"date\": \"2026-04-10\", \"keyword\": \"family dentist chicago\", \"location\": \"Chicago\", \"rank\": 3 }
  ]
}""",
    "useSampleData": False,
}

# Run the Actor and wait for it to finish
run = client.actor("shahabuddin38/google-business-profile-kpi-analyzer").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 '{
  "inputJson": "{\\n  \\"business\\": {\\n    \\"name\\": \\"Northwind Dental\\",\\n    \\"category\\": \\"Dentist\\",\\n    \\"location\\": \\"Chicago, IL\\"\\n  },\\n  \\"dateRanges\\": {\\n    \\"current\\": { \\"start\\": \\"2026-03-15\\", \\"end\\": \\"2026-04-13\\" },\\n    \\"previous\\": { \\"start\\": \\"2026-02-14\\", \\"end\\": \\"2026-03-14\\" }\\n  },\\n  \\"timeline\\": [\\n    {\\n      \\"date\\": \\"2026-04-13\\",\\n      \\"profileViews\\": 342,\\n      \\"searchViews\\": 188,\\n      \\"mapsViews\\": 154,\\n      \\"websiteClicks\\": 20,\\n      \\"calls\\": 15,\\n      \\"directionRequests\\": 18,\\n      \\"bookings\\": 5,\\n      \\"messages\\": 7,\\n      \\"menuClicks\\": 8,\\n      \\"productViews\\": 21,\\n      \\"photoViews\\": 96,\\n      \\"postEngagement\\": 14,\\n      \\"impressions\\": 371,\\n      \\"brandedViews\\": 118,\\n      \\"discoveryViews\\": 224\\n    }\\n  ],\\n  \\"searchQueries\\": [\\n    {\\n      \\"query\\": \\"family dentist chicago\\",\\n      \\"impressions\\": 380,\\n      \\"clicks\\": 41,\\n      \\"branded\\": false,\\n      \\"avgRank\\": 3.4,\\n      \\"category\\": \\"Dentist\\",\\n      \\"location\\": \\"Chicago\\"\\n    }\\n  ],\\n  \\"reviews\\": [\\n    { \\"date\\": \\"2026-04-12\\", \\"rating\\": 4, \\"responded\\": false }\\n  ],\\n  \\"rankings\\": [\\n    { \\"date\\": \\"2026-04-10\\", \\"keyword\\": \\"family dentist chicago\\", \\"location\\": \\"Chicago\\", \\"rank\\": 3 }\\n  ]\\n}",
  "useSampleData": false
}' |
apify call shahabuddin38/google-business-profile-kpi-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shahabuddin38/google-business-profile-kpi-analyzer",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/yE64Bn2EWwWecrhtx/builds/kzHyxwt8nJrixftbq/openapi.json
