# Lawyers Google Maps Scraper (`mukeshrana90/lawyers-google-maps-scraper`) Actor

Scrape lawyers and law firms from Google Maps with email, social, practice areas, fee structure, languages spoken, services list, review sentiment, online-booking / free-consultation detection, metro area classification, and firm-size classification.

- **URL**: https://apify.com/mukeshrana90/lawyers-google-maps-scraper.md
- **Developed by:** [Mukesh Kumar](https://apify.com/mukeshrana90) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $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/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

## Lawyers Google Maps Scraper

Scrape **lawyers and law firms** from Google Maps with deep enrichment for legal-vertical lead generation — emails, social media, practice areas, fee structure, languages spoken, services list, review sentiment, online-booking detection, free-consultation availability, metro classification, and firm-size categorization.

35+ fields per record. Pay-per-event pricing — pay only for the enrichments you turn on.

### What you get

For every lawyer / law firm matched on Google Maps:

#### Base data (always included)
- Name, Google Maps category, sub-category tags
- Full parsed address (street, city, state, country, postal code)
- Latitude / longitude, place ID, direct Maps URL
- Phone, website
- Rating, review count, hours, is-open-now

#### Optional enrichments

| Toggle | Adds |
|---|---|
| **Extract emails** | Best contact email from the firm's website. Scoring prefers `intake@`, `consult@`, `partner@`, `info@`, `contact@` — Sentry / Wix / no-reply / placeholder addresses are filtered out. |
| **Extract social media links** | Instagram, Facebook, LinkedIn, X/Twitter — with widget-brand filtering (no Bolt, no copyright-year false positives, no `/p/` post URLs). |
| **Lawyer enrichment** | `practiceAreas` (16 categories: PI, immigration, criminal, family, IP, etc.), `feeStructure` (contingency / hourly / flat / free consultation / sliding scale / pro bono), `languagesSpoken` (Spanish, Mandarin, Russian, Arabic, etc.), `servicesOffered` (extracted from the firm's services / practice-area page), `reviewSentiment` (keyword-based scoring with legal-tuned dictionary; themes include expertise, communication, professionalism, case outcomes, fees, empathy). |
| **Niche classification** | `hasOnlineBooking` + platform (Calendly, Acuity, Clio Grow, Squarespace Scheduling, Setmore, HubSpot Meetings), `hasFreeConsultation` + URL, `isMetroArea` + `metroName` + `metroTier` (coordinate-based detection covering 30+ global metros), `firmSize` (solo / small / mid / large) with confidence + signals. |

### Use cases

- **Bar association directories** — bulk-enrich law firm contact data
- **Legal marketing agencies** — lead lists for outbound to specific practice areas
- **Insurance carriers** — find PI lawyers in metro areas they cover
- **Legal tech vendors** — segment by firm size and existing platform usage (Clio, MyCase, etc.)
- **Translation / interpretation services** — find firms claiming specific languages
- **CRM enrichment** — refresh contact + practice details on existing firm rosters

### Input

```json
{
  "searchTerms": ["personal injury lawyer", "immigration attorney"],
  "locations": ["New York, USA"],
  "maxResults": 50,
  "minRating": 0,
  "enrichEmails": true,
  "enrichSocials": true,
  "enrichLawyer": true,
  "enrichLawyerNiche": true,
  "proxyConfig": { "useApifyProxy": true }
}
````

| Field | Type | Default | Description |
|---|---|---|---|
| `searchTerms` | string\[] | `["personal injury lawyer"]` | Practice-area search queries |
| `locations` | string\[] | `["New York, USA"]` | Cities, regions, countries |
| `maxResults` | int | `50` | Total places across all searches (1–500) |
| `minRating` | number | `0` | Filter places below this Google rating |
| `enrichEmails` | bool | `false` | Visit firm website, extract best contact email |
| `enrichSocials` | bool | `false` | Extract Instagram / Facebook / LinkedIn / X handles |
| `enrichLawyer` | bool | `false` | Practice areas, fee structure, languages, services, sentiment |
| `enrichLawyerNiche` | bool | `false` | Booking platform, free consultation, metro, firm size |
| `proxyConfig` | object | `{ useApifyProxy: true }` | Residential recommended for high volume |

### Sample output

```json
{
  "name": "Cellino Law LLP",
  "category": "Personal injury attorney",
  "practiceAreas": ["Personal Injury", "Medical Malpractice", "Workers Compensation"],
  "fullAddress": "420 Lexington Ave Suite 2840, New York, NY 10170, United States",
  "city": "New York",
  "state": "NY",
  "latitude": 40.7521,
  "longitude": -73.9756,
  "phone": "+12128887800",
  "website": "https://cellinolaw.com/",
  "email": "intake@cellinolaw.com",
  "instagram": "https://instagram.com/cellinolaw",
  "linkedin": "https://linkedin.com/company/cellino-law",
  "feeStructure": ["contingency", "free_consultation"],
  "languagesSpoken": ["Spanish", "Italian"],
  "servicesOffered": ["Car Accidents", "Slip & Fall", "Construction Accidents", "Wrongful Death"],
  "reviewSentiment": {
    "label": "Positive",
    "score": 91,
    "topThemes": ["expertise", "communication", "caseOutcome"],
    "reviewsAnalysed": 10,
    "avgRating": 4.8
  },
  "hasOnlineBooking": true,
  "bookingPlatform": "calendly.com",
  "bookingUrl": "https://calendly.com/cellino-law/consult",
  "hasFreeConsultation": true,
  "isMetroArea": true,
  "metroName": "New York Metro",
  "metroTier": 1,
  "firmSize": "large",
  "firmSizeLabel": "Large Law Firm",
  "rating": 4.9,
  "reviewCount": 3142
}
```

### Pricing

Pay-per-event:

| Event | Triggers | Price |
|---|---|---:|
| `apify-actor-start` | Once per run | $0.00005 |
| `apify-default-dataset-item` | Per result | $0.005 |
| `email-enrichment` | Per result if `enrichEmails` true | $0.005 |
| `social-enrichment` | Per result if `enrichSocials` true | $0.002 |
| `lawyer-enrichment` | Per result if `enrichLawyer` true | $0.013 |
| `niche-enrichment` | Per result if `enrichLawyerNiche` true | $0.005 |

Indicative totals: **$5 / 1000** base, **$30 / 1000** with all four enrichments enabled.

### Notes & limitations

- Sentiment analysis is keyword-based (no LLM cost). Themes are coarse but useful for segmentation.
- Firm-size classification is heuristic (name keywords + review count). Confidence is reported per result.
- Google Maps occasionally widens the search beyond the location keyword — expect some adjacent-area results.
- The actor is anti-block-friendly (random delays, consent-dialog handling, single website visit per place) but residential proxies are recommended for high-volume runs.

# Actor input Schema

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

Lawyer / attorney categories to search for (e.g. personal injury lawyer, immigration attorney, divorce lawyer, criminal defense, real estate attorney)

## `locations` (type: `array`):

Cities, regions, or countries to search in (e.g. New York, USA or London, UK)

## `maxResults` (type: `integer`):

Maximum number of lawyers / firms to scrape in total across all search term + location combinations

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

Only include lawyers / firms with this Google rating or above (0 = no filter)

## `enrichEmails` (type: `boolean`):

Visit each firm's website and extract the best contact email (homepage + /contact fallback). Prefers intake@ / consult@ / contact@ over generic addresses.

## `enrichSocials` (type: `boolean`):

Extract Instagram, Facebook, LinkedIn, and X/Twitter profile links from the firm's website

## `enrichLawyer` (type: `boolean`):

Extract practice areas (immigration, PI, family, etc.), fee structure (contingency / hourly / flat / free consultation), languages spoken, services list, and review sentiment analysis

## `enrichLawyerNiche` (type: `boolean`):

Detect online booking (Calendly, Acuity, Clio Grow), free-consultation availability, metro area, and firm size (solo / small / mid / large)

## `proxyConfig` (type: `object`):

Residential proxies recommended for high-volume runs to avoid Google Maps blocks

## Actor input object example

```json
{
  "searchTerms": [
    "personal injury lawyer",
    "immigration attorney"
  ],
  "locations": [
    "New York, USA"
  ],
  "maxResults": 20,
  "minRating": 0,
  "enrichEmails": false,
  "enrichSocials": false,
  "enrichLawyer": false,
  "enrichLawyerNiche": false,
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing scraped lawyers / law firms with 35+ fields including contact info, social media, practice areas, fee structure, languages spoken, services list, review sentiment, online booking detection, free consultation, metro classification, and firm size.

# 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": [
        "personal injury lawyer",
        "immigration attorney"
    ],
    "locations": [
        "New York, USA"
    ],
    "maxResults": 20,
    "minRating": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("mukeshrana90/lawyers-google-maps-scraper").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": [
        "personal injury lawyer",
        "immigration attorney",
    ],
    "locations": ["New York, USA"],
    "maxResults": 20,
    "minRating": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("mukeshrana90/lawyers-google-maps-scraper").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 '{
  "searchTerms": [
    "personal injury lawyer",
    "immigration attorney"
  ],
  "locations": [
    "New York, USA"
  ],
  "maxResults": 20,
  "minRating": 0
}' |
apify call mukeshrana90/lawyers-google-maps-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=mukeshrana90/lawyers-google-maps-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Lawyers Google Maps Scraper",
        "description": "Scrape lawyers and law firms from Google Maps with email, social, practice areas, fee structure, languages spoken, services list, review sentiment, online-booking / free-consultation detection, metro area classification, and firm-size classification.",
        "version": "1.0",
        "x-build-id": "DccQEO8yzg4O7NO3f"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mukeshrana90~lawyers-google-maps-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mukeshrana90-lawyers-google-maps-scraper",
                "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/mukeshrana90~lawyers-google-maps-scraper/runs": {
            "post": {
                "operationId": "runs-sync-mukeshrana90-lawyers-google-maps-scraper",
                "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/mukeshrana90~lawyers-google-maps-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-mukeshrana90-lawyers-google-maps-scraper",
                "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",
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Lawyer / attorney categories to search for (e.g. personal injury lawyer, immigration attorney, divorce lawyer, criminal defense, real estate attorney)",
                        "default": [
                            "personal injury lawyer"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "locations": {
                        "title": "Locations",
                        "type": "array",
                        "description": "Cities, regions, or countries to search in (e.g. New York, USA or London, UK)",
                        "default": [
                            "New York, USA"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max results per search",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of lawyers / firms to scrape in total across all search term + location combinations",
                        "default": 50
                    },
                    "minRating": {
                        "title": "Minimum rating filter",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Only include lawyers / firms with this Google rating or above (0 = no filter)",
                        "default": 0
                    },
                    "enrichEmails": {
                        "title": "Extract emails",
                        "type": "boolean",
                        "description": "Visit each firm's website and extract the best contact email (homepage + /contact fallback). Prefers intake@ / consult@ / contact@ over generic addresses.",
                        "default": false
                    },
                    "enrichSocials": {
                        "title": "Extract social media links",
                        "type": "boolean",
                        "description": "Extract Instagram, Facebook, LinkedIn, and X/Twitter profile links from the firm's website",
                        "default": false
                    },
                    "enrichLawyer": {
                        "title": "Lawyer enrichment",
                        "type": "boolean",
                        "description": "Extract practice areas (immigration, PI, family, etc.), fee structure (contingency / hourly / flat / free consultation), languages spoken, services list, and review sentiment analysis",
                        "default": false
                    },
                    "enrichLawyerNiche": {
                        "title": "Niche classification",
                        "type": "boolean",
                        "description": "Detect online booking (Calendly, Acuity, Clio Grow), free-consultation availability, metro area, and firm size (solo / small / mid / large)",
                        "default": false
                    },
                    "proxyConfig": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Residential proxies recommended for high-volume runs to avoid Google Maps blocks",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
