# Lawyers.com Attorney Scraper (`moving_beacon-owner1/lawyers-com-attorney-scraper`) Actor

Scrapes Lawyers.com attorney and law-firm listings with names, firms, phone numbers, websites, addresses, ratings, reviews, and profile URLs. Practice-area and location searches, with optional profile enrichment for biographies, practice areas, awards, languages, fax numbers, and social links.

- **URL**: https://apify.com/moving\_beacon-owner1/lawyers-com-attorney-scraper.md
- **Developed by:** [Jamshaid Arif](https://apify.com/moving_beacon-owner1) (community)
- **Categories:** Real estate, Automation, Developer tools
- **Stats:** 4 total users, 1 monthly users, 64.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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?

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

## Lawyers.com Attorney Scraper

Collects attorney and law-firm listings from the Lawyers.com US legal directory. Pick a practice area, city and state — or search every legal issue around a city — and get one flat record per attorney or firm with name, phone, website, address, star rating, review count and the profile link. An optional detail mode also opens each profile to add the biography, full practice-area list, awards, fax, languages and social links.

### Input

| Field | Default | Description |
| --- | --- | --- |
| `practice_area` | `personal-injury` | Practice area to search, e.g. `Personal Injury`, `Criminal Law`, `Family Law`, `Bankruptcy`. Empty searches every legal issue. |
| `city` | `houston` | City to search in, e.g. `Houston`, `Los Angeles`, `Brooklyn`. |
| `state` | `texas` | Full US state name, e.g. `Texas`, `California`, `New York`. |
| `max_results` | `20` | Maximum attorney or firm records to return (1–500, about 25 per page). |
| `fetch_profile_details` | `false` | Also open each profile for biography, practice areas, awards, fax, languages and social links (one extra request per record). |
| `proxyConfiguration` | Optional | Enable a US-based proxy for the most reliable results. |

### Output

Each result is one attorney or law-firm listing:

```json
{
    "listing_id": "87654321",
    "listing_type": "attorney",
    "name": "John Smith",
    "firm_name": "Smith & Associates, PLLC",
    "phone": "(713) 555-0100",
    "website": "https://www.smithlegal.example.com",
    "profile_url": "https://www.lawyers.com/houston/texas/john-smith-87654321-a/",
    "street_address": "1 Main Street",
    "city": "Houston",
    "state": "TX",
    "zip_code": "77002",
    "location": "Houston, TX",
    "latitude": 29.76,
    "longitude": -95.36,
    "rating": 4.5,
    "reviews_count": 12,
    "bio_snippet": "Aggressive representation for injury victims across Texas.",
    "image_url": "https://www.lawyers.com/img/js.jpg",
    "source_page": "https://www.lawyers.com/personal-injury/houston/texas/law-firms/",
    "searched_practice_area": "personal-injury",
    "searched_city": "houston",
    "searched_state": "texas",
    "page_number": 1,
    "raw": { ... }
}
```

With `fetch_profile_details` enabled, records additionally carry `bio`, `practice_areas`, `awards`, `fax`, `languages` and `social_links`.

### Notes

- Runs with empty input (defaults to personal-injury attorneys in Houston, Texas).
- Enable a US-based proxy for the most reliable results.
- Intended for research and lead-generation use; please respect Lawyers.com's terms of service.

# Actor input Schema

## `practice_area` (type: `string`):

Legal practice area to search, e.g. 'Personal Injury', 'Criminal Law', 'Family Law', 'Bankruptcy', 'Immigration'. Plain names are converted to the directory's format automatically. Leave empty to search every legal issue.

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

City to search in, e.g. 'Houston', 'Los Angeles', 'Brooklyn'. Used together with the state.

## `state` (type: `string`):

Full US state name, e.g. 'Texas', 'California', 'New York'. Leave empty (together with the practice area) to run a nationwide search around the city name instead.

## `max_results` (type: `integer`):

Maximum number of attorney or firm records to return. Listing pages carry about 25 records each.

## `fetch_profile_details` (type: `boolean`):

Also open each result's profile page to add the biography, full practice-area list, awards, fax, languages and social links. One extra page request per record — turn off for faster, listing-only runs.

## `proxyConfiguration` (type: `object`):

Proxy settings for the run. Enable a US-based proxy for the most reliable results, especially for sites that limit non-US or datacenter traffic. Optional — leave off to run directly.

## Actor input object example

```json
{
  "practice_area": "personal-injury",
  "city": "houston",
  "state": "texas",
  "max_results": 20,
  "fetch_profile_details": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "practice_area": "personal-injury",
    "city": "houston",
    "state": "texas",
    "max_results": 20,
    "fetch_profile_details": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moving_beacon-owner1/lawyers-com-attorney-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 = {
    "practice_area": "personal-injury",
    "city": "houston",
    "state": "texas",
    "max_results": 20,
    "fetch_profile_details": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("moving_beacon-owner1/lawyers-com-attorney-scraper").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 '{
  "practice_area": "personal-injury",
  "city": "houston",
  "state": "texas",
  "max_results": 20,
  "fetch_profile_details": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call moving_beacon-owner1/lawyers-com-attorney-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,moving_beacon-owner1/lawyers-com-attorney-scraper"
        }
    }
}

```

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/t5UckeBcaMXlRA7J1/builds/p7HV5HV1GQkY3beQn/openapi.json
