# Google Maps Business Intelligence Genie (`salmanrajz/google-maps-business-intelligence-genie`) Actor

Unlock powerful business intelligence from Google Maps! Analyze rankings, market share, competitors, sentiment, and business health for data-driven decisions.

- **URL**: https://apify.com/salmanrajz/google-maps-business-intelligence-genie.md
- **Developed by:** [Salman Ahmed](https://apify.com/salmanrajz) (community)
- **Categories:** Lead generation, E-commerce, SEO tools
- **Security:** Full permissions
- **Stats:** 23 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Maps Business Intelligence Extractor

🚀 **Advanced Google Maps Business Intelligence Extractor** for market research, competitor analysis, and lead generation using Google Places API.

### 🎯 Key Features

#### 📊 **Business Intelligence Analysis**

- **Market Position**: Ranking analysis, market share calculation
- **Competitive Analysis**: Average ratings, review counts, market gaps
- **Business Health**: Rating scores, review velocity, market presence
- **Market Insights**: Total businesses, competitive landscape

#### 😊 **Sentiment Analysis**

- **Review Sentiment**: Positive, negative, neutral percentages
- **Sentiment Score**: Overall customer satisfaction rating
- **Customer Insights**: Understanding customer feedback patterns

#### 🏆 **Competitor Analysis**

- **Top Competitors**: Identify main competitors in the area
- **Competitive Advantage**: Above/below average performance analysis
- **Market Gaps**: Opportunities for improvement

#### 📋 **Core Business Data**

- **Business Information**: Name, address, phone, website, rating
- **Contact Details**: Phone numbers, websites, business hours
- **Reviews**: Customer reviews with author details and ratings
- **Location Data**: Coordinates, business status, categories

### 🔧 Input Parameters

#### **Basic Configuration**

- `searchTerms` (array): List of search terms or keywords
- `googleMapsUrls` (array, optional): Direct Google Maps URLs
- `location` (string, optional): Geographical location focus
- `maxCrawledPlaces` (integer): Maximum places to extract (default: 200)
- `minRating` (number): Minimum rating filter (0-5, default: 0)
- `includeClosed` (boolean): Include closed places (default: false)
- `language` (string): Google Maps UI language (default: "en")
- `maxReviewsPerPlace` (integer): Maximum reviews per business (1-5, default: 5)

#### **Advanced Analytics**

- `includeBusinessIntelligence` (boolean): Enable BI analysis (default: true)
- `includeSentimentAnalysis` (boolean): Enable sentiment analysis (default: true)
- `includeCompetitorAnalysis` (boolean): Enable competitor analysis (default: true)
- `googleApiKey` (string, optional): Google Places API key

### 📊 Output Data Structure

#### **Basic Business Information**

```json
{
  "businessName": "Restaurant Name",
  "address": "Full Address",
  "phone": "+1234567890",
  "website": "https://website.com",
  "rating": 4.5,
  "userRatingsTotal": 150,
  "priceLevel": 2,
  "types": ["restaurant", "food"],
  "placeId": "ChIJ...",
  "businessStatus": "OPERATIONAL"
}
```

#### **Business Intelligence Analysis**

```json
{
  "businessIntelligence": {
    "marketPosition": {
      "ratingRank": 3,
      "reviewCountRank": 5,
      "totalBusinesses": 50
    },
    "competitiveAnalysis": {
      "averageRating": 4.2,
      "averageReviewCount": 120,
      "marketShare": 8.5
    },
    "businessHealth": {
      "ratingScore": 90,
      "reviewVelocity": "High",
      "marketPresence": "Strong"
    }
  }
}
```

#### **Sentiment Analysis**

```json
{
  "sentimentAnalysis": {
    "positive": 75,
    "negative": 10,
    "neutral": 15,
    "sentimentScore": 65
  }
}
```

#### **Competitor Analysis**

```json
{
  "competitorAnalysis": {
    "topCompetitors": [
      {
        "name": "Competitor 1",
        "rating": 4.3,
        "reviewCount": 200,
        "address": "123 Main St"
      }
    ],
    "competitiveAdvantage": "Above Average",
    "marketGap": 0.2
  }
}
```

### 🚀 Use Cases

#### **Sales & Marketing**

- **Lead Generation**: Find potential customers by category and location
- **Market Research**: Analyze market density and opportunities
- **Competitor Analysis**: Understand competitive landscape
- **Customer Insights**: Analyze customer sentiment and feedback

#### **Business Intelligence**

- **Market Positioning**: Understand your position in the market
- **Performance Analysis**: Compare against competitors
- **Growth Opportunities**: Identify market gaps and opportunities
- **Strategic Planning**: Data-driven business decisions

#### **Industry Applications**

- **Real Estate**: Location analysis, market research
- **Franchise**: Market entry analysis, location planning
- **Investment**: Market opportunity assessment
- **Consulting**: Client market analysis

### 📈 Business Value

#### **For Sales Teams**

- Generate qualified leads by category and location
- Understand customer sentiment and pain points
- Identify high-potential prospects
- Competitive intelligence for sales pitches

#### **For Marketing Agencies**

- Market research and competitive analysis
- Customer sentiment analysis for campaigns
- Brand monitoring and reputation management
- Data-driven marketing strategies

#### **For Business Owners**

- Market positioning and competitive analysis
- Customer feedback and satisfaction insights
- Growth opportunity identification
- Strategic business planning

### 💰 Revenue Potential

#### **SaaS Business Model**

- **Freemium**: Basic features free, advanced analytics paid
- **Subscription**: Monthly/yearly plans for different usage levels
- **Enterprise**: Custom solutions for large organizations

#### **API Business Model**

- **Pay-per-use**: Charge per API call or data point
- **Tiered Pricing**: Different limits for different price points
- **White-label**: License technology to other companies

#### **Target Markets**

- **Sales Teams**: Lead generation and prospecting
- **Marketing Agencies**: Market research and analysis
- **Business Consultants**: Client market analysis
- **Real Estate**: Location and market research
- **Franchise Owners**: Market entry and expansion

### 🛠️ Technical Requirements

- **Google Places API Key**: Required for API access
- **Node.js 18+**: Runtime environment
- **Apify Platform**: Deployment and scaling
- **Internet Connection**: For API calls and data processing

### 📝 Example Usage

```json
{
  "searchTerms": ["restaurants", "hotels"],
  "location": "Dubai",
  "maxCrawledPlaces": 50,
  "minRating": 3.5,
  "includeBusinessIntelligence": true,
  "includeSentimentAnalysis": true,
  "includeCompetitorAnalysis": true
}
```

### 🎯 Success Metrics

- **Data Quality**: Accurate and comprehensive business data
- **Processing Speed**: Fast data extraction and analysis
- **Scalability**: Handle large datasets efficiently
- **User Satisfaction**: Easy-to-use interface and clear results
- **Business Impact**: Actionable insights for decision-making

***

**Ready to extract powerful business intelligence from Google Maps?** 🚀

This actor provides comprehensive business intelligence that can drive strategic decisions, identify opportunities, and provide competitive advantages in any market! 💼

# Actor input Schema

## `searchTerms` (type: `array`):

List of search terms or keywords for Google Maps (e.g., 'restaurants', 'hotels', 'coffee shops').

## `googleMapsUrls` (type: `array`):

Use this section to copy URLs directly from Google Maps and paste them here. Valid format for URLs contains /maps/search. Each URL can get you maximum 300 results. Don't combine this section with search terms as URLs always have priority.

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

Geographical location to focus the search (e.g., 'San Francisco', 'Dubai', 'London'). Use only one location per run.

## `maxCrawledPlaces` (type: `integer`):

Maximum number of places to extract per each search term or URL.

## `minRating` (type: `number`):

Filter places by minimum rating (0-5).

## `includeClosed` (type: `boolean`):

Include temporarily or permanently closed places.

## `language` (type: `string`):

Google Maps UI language, e.g. 'en', 'es', 'ar'.

## `maxReviewsPerPlace` (type: `integer`):

Maximum number of reviews to extract per business (Google Places API returns up to 5 reviews per place).

## `includeBusinessIntelligence` (type: `boolean`):

Enable advanced business intelligence analysis including market position, competitive analysis, and business health metrics.

## `includeSentimentAnalysis` (type: `boolean`):

Enable sentiment analysis of customer reviews to understand customer satisfaction levels.

## `includeCompetitorAnalysis` (type: `boolean`):

Enable competitor analysis to identify top competitors and market positioning.

## `googleApiKey` (type: `string`):

Your Google Places API key. If not provided, will use environment variable GOOGLE_API_KEY or default key.

## Actor input object example

```json
{
  "searchTerms": [
    "restaurants"
  ],
  "googleMapsUrls": [],
  "location": "San Francisco",
  "maxCrawledPlaces": 50,
  "minRating": 0,
  "includeClosed": false,
  "language": "en",
  "maxReviewsPerPlace": 5,
  "includeBusinessIntelligence": true,
  "includeSentimentAnalysis": true,
  "includeCompetitorAnalysis": true,
  "googleApiKey": ""
}
```

# 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 = {
    "searchTerms": [
        "restaurants"
    ],
    "googleMapsUrls": [],
    "location": "San Francisco",
    "maxCrawledPlaces": 50,
    "maxReviewsPerPlace": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("salmanrajz/google-maps-business-intelligence-genie").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 = {
    "searchTerms": ["restaurants"],
    "googleMapsUrls": [],
    "location": "San Francisco",
    "maxCrawledPlaces": 50,
    "maxReviewsPerPlace": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("salmanrajz/google-maps-business-intelligence-genie").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 '{
  "searchTerms": [
    "restaurants"
  ],
  "googleMapsUrls": [],
  "location": "San Francisco",
  "maxCrawledPlaces": 50,
  "maxReviewsPerPlace": 5
}' |
apify call salmanrajz/google-maps-business-intelligence-genie --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,salmanrajz/google-maps-business-intelligence-genie"
        }
    }
}
```

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/uc46N02hGg3TjQQYR/builds/CQwYjxhWpx4TJ54fq/openapi.json
