# Scrape Law Firm & Attorney Leads by City

**Use case:** 

Given `keywords` (e.g. law firms) and a `location` (e.g. Houston), this task builds a legal-industry lead list from Google Maps: title, phone, website, full_address, rating, review_count, latitude and longitude for every firm and attorney listed. Import directly into outreach or CRM tools. maxCrawlPages caps how many result pages are crawled.

## Input

```json
{
  "keywords": [
    "law firms"
  ],
  "location": "Houston",
  "urls": [
    "https://www.google.com/maps/search/restaurants/@40.7127281,-74.0060152,12z"
  ],
  "language": "English (United States)",
  "maxCrawlPages": 10
}
```

## Output

```json
{
  "search_string": {
    "label": "Search String",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "category": {
    "label": "Category",
    "format": "text"
  },
  "categories": {
    "label": "Categories",
    "format": "array"
  },
  "claimed": {
    "label": "Claimed",
    "format": "text"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "review_count": {
    "label": "Review Count",
    "format": "number"
  },
  "reviews_distribution": {
    "label": "Reviews by Star Rating (when available)",
    "format": "object"
  },
  "price_range": {
    "label": "Price Range",
    "format": "text"
  },
  "price_range_votes": {
    "label": "Price Range Votes",
    "format": "number"
  },
  "price_breakdown": {
    "label": "Price Breakdown",
    "format": "object"
  },
  "full_address": {
    "label": "Full Address",
    "format": "text"
  },
  "neighborhood": {
    "label": "Neighborhood",
    "format": "text"
  },
  "street_address": {
    "label": "Street Address",
    "format": "text"
  },
  "city": {
    "label": "City",
    "format": "text"
  },
  "zipcode": {
    "label": "Zip Code",
    "format": "text"
  },
  "state": {
    "label": "State",
    "format": "text"
  },
  "country": {
    "label": "Country",
    "format": "text"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "phone": {
    "label": "Phone",
    "format": "text"
  },
  "phone_international": {
    "label": "Phone (International)",
    "format": "text"
  },
  "website": {
    "label": "Website",
    "format": "link"
  },
  "plus_code_url": {
    "label": "Plus Code URL",
    "format": "link"
  },
  "plus_code": {
    "label": "Plus Code",
    "format": "text"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "google_id": {
    "label": "Google ID (Feature ID)",
    "format": "text"
  },
  "cid": {
    "label": "CID",
    "format": "text"
  },
  "place_id": {
    "label": "Place ID",
    "format": "text"
  },
  "business_attributes": {
    "label": "Business Attributes",
    "format": "array"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "about": {
    "label": "About",
    "format": "object"
  },
  "photos_count": {
    "label": "Photos Count",
    "format": "number"
  },
  "images": {
    "label": "Images",
    "format": "array"
  },
  "review_summary": {
    "label": "Review Summary",
    "format": "array"
  },
  "review_tags": {
    "label": "Review Tags",
    "format": "object"
  },
  "people_also_search_for": {
    "label": "People Also Search For",
    "format": "array"
  },
  "current_status": {
    "label": "Current Status",
    "format": "text"
  },
  "permanently_closed": {
    "label": "Permanently Closed",
    "format": "boolean"
  },
  "temporarily_closed": {
    "label": "Temporarily Closed",
    "format": "boolean"
  },
  "open_time": {
    "label": "Opening Hours",
    "format": "array"
  },
  "popular_times_monday": {
    "label": "Popular Times (Monday)",
    "format": "object"
  },
  "popular_times_tuesday": {
    "label": "Popular Times (Tuesday)",
    "format": "object"
  },
  "popular_times_wednesday": {
    "label": "Popular Times (Wednesday)",
    "format": "object"
  },
  "popular_times_thursday": {
    "label": "Popular Times (Thursday)",
    "format": "object"
  },
  "popular_times_friday": {
    "label": "Popular Times (Friday)",
    "format": "object"
  },
  "popular_times_saturday": {
    "label": "Popular Times (Saturday)",
    "format": "object"
  },
  "popular_times_sunday": {
    "label": "Popular Times (Sunday)",
    "format": "object"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Maps Data Scraper](https://apify.com/delicious_zebu/google-maps-data-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/delicious_zebu/google-maps-data-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/delicious_zebu/google-maps-data-scraper.md

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`).
