# Martindale Attorney Scraper (`parseforge/martindale-scraper`) Actor

Scrapes Martindale attorney and law firm listings by keyword, practice area, location, state, or ZIP code. Returns each listing as a flat row with name, firm, ratings, contact details, and practice areas.

- **URL**: https://apify.com/parseforge/martindale-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 21 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.99 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Martindale Attorney Scraper

**Scrape Martindale attorney and law firm listings by keyword, practice area, or location, up to a million per run.** Each record comes with the lawyer's name, firm, ratings, contact details, and practice areas. No login or API key. Export to CSV, JSON, Excel, or XML.

Martindale's official directory has no public API, and manual lookups do not scale. This reads the public attorney and law firm listings directly, filtered by practice area, location, ZIP code, or free consultation, and returns each match in one fixed schema.

| Who uses it | What they scrape Martindale for |
|---|---|
| Legal marketers | Build targeted lists of attorneys by practice area and city for outreach. |
| Law firm recruiters | Find lawyers with specific specialties and ratings in a region. |
| Legal tech startups | Populate a directory or matching tool with verified attorney profiles. |
| Market researchers | Analyze the distribution of law firms and practice areas across states. |

### What it does

This Actor collects Martindale attorney and law firm listings by keyword, practice area, location, state, or ZIP code, and returns each one as a flat row.

- 🔍 **Search filters:** keyword, practice area, location, state, ZIP code, and free consultation only.
- 📊 **Flat rows:** every listing is returned as one record with consistent fields.
- 🌎 **US coverage:** target any city, state, or ZIP code in the United States.
- ⚡ **Scalable:** collect up to 1,000,000 records per run for paid users.
- 🛡️ **Residential proxy:** preconfigured for reliable runs on this source.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Martindale data

**📈 Build a lead list of personal injury attorneys.**

A legal marketing agency sets practice area to Personal Injury and location to Los Angeles, CA, then exports the results to CSV for a cold outreach campaign.

**🗺️ Map law firm density by state.**

A market researcher runs the Actor for each US state with no keyword, then aggregates the rows to see which regions have the most family law firms.

**⭐ Find top-rated lawyers for a referral network.**

A legal tech startup filters by practice area and free consultation, then uses the ratings and contact details to invite lawyers to join their platform.

**🏢 Recruit attorneys with specific specialties.**

A law firm recruiter searches for immigration lawyers in New York, NY, and reviews the returned profiles to shortlist candidates.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API needed** | Scrape public Martindale listings without registration or keys. |
| **Flexible targeting** | Combine keyword, practice area, and location filters. |
| **Clean output** | Each attorney or firm is a flat row ready for CSV or JSON. |
| **Built for scale** | Collect up to a million records per run. |

### How it compares

This Actor focuses on flexible search filters and clean flat output, while the competitors below offer different extras like email enrichment or broader country coverage.

| Feature | ParseForge | Martindale Scraper with Mails | US & Canada Lawyer Directory | Martindale Scraper | Martindale Scraper - Attorney & Law Firm Leads |
|---|---|---|---|---|
| Filter by practice area | Yes | Yes | Yes | Yes |
| Filter by location or city | Yes | Yes | Yes | Yes |
| Filter by ZIP code | Yes | Not listed | Not listed | Not listed |
| Free consultation filter | Yes | Not listed | Not listed | Not listed |
| Email enrichment | Not listed | Yes | Not listed | Yes |
| Canada coverage | Not listed | Yes | Not listed | Not listed |
| Lead score | Not listed | Not listed | Not listed | Yes |

### Configure the run

Drive the Actor from a keyword, practice area, location, state, or ZIP code, alone or together, and filters run as each listing is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "maxItems": 10,
  "practiceArea": "Personal Injury",
  "zipCode": "10001",
  "freeConsultation": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US",
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

A larger pull:

```json
{
  "maxItems": 200,
  "practiceArea": "Personal Injury",
  "zipCode": "10001",
  "freeConsultation": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US",
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

### Pricing

Pay-per-result: **$0.01599 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $1.60 |
| 1,000 results | $15.99 |
| 10,000 results | $159.90 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Martindale Attorney Scraper](https://apify.com/parseforge/martindale-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Martindale through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/martindale-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your filters are not too narrow. Try removing the keyword or broadening the practice area, and make sure the location or ZIP code is spelled correctly.

**The run is slow or times out.**

Ensure the residential proxy is enabled in the proxy configuration. If the problem persists, reduce maxItems or narrow the filters.

**Some listings are missing contact details.**

Martindale profiles vary. If a field is empty in the source, it will be empty in the output. Try a different search to find listings with more complete data.

**I get an error about proxy configuration.**

Use the preconfigured residential proxy with US country. If you changed it, reset to the default settings.

**The output has fewer records than maxItems.**

The Actor stops when there are no more matching listings. Broaden your filters to collect more.

### FAQ

| Question | Answer |
|---|---|
| What data does this Actor return for each listing? | Each row includes the attorney's name, firm, ratings, contact details, practice areas, and other fields available on the public Martindale profile. The exact fields are shown in the sample output. |
| Can I filter by practice area and location at the same time? | Yes. Set the practice area and location inputs together, and the Actor will return only listings that match both. |
| Does this Actor require a Martindale account or API key? | No. It reads the public directory pages directly, so no login or key is needed. |
| How many records can I collect in one run? | Free users can collect up to 100 records per run. Paid users can set maxItems up to 1,000,000. |
| Can I search by ZIP code instead of city and state? | Yes. Use the zipCode input to target a precise ZIP code, or combine it with other filters. |
| What does the free consultation filter do? | When enabled, the Actor keeps only listings that indicate the attorney offers a free consultation. |
| Which export formats are supported? | You can export the results to CSV, JSON, Excel, or XML from the Apify dataset. |
| Is a proxy required? | A residential proxy is preconfigured and recommended for reliability. You can adjust it in the proxy configuration input. |
| Can I scrape a specific attorney by name? | Yes. Enter the attorney's name in the keyword input to search for that person. |
| Does this Actor work outside the United States? | The current inputs target US locations, states, and ZIP codes. For other countries, check the source directory coverage. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Martindale-Hubbell. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum records to save. Free users up to 100. Paid users up to 1,000,000.

## `searchQuery` (type: `string`):

Keyword or attorney name for filter mode.

## `practiceArea` (type: `string`):

Practice area such as Personal Injury, Family Law, Criminal Defense, or Immigration.

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

City and state (for example Los Angeles, CA) or ZIP code.

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

State value when Location is not used.

## `zipCode` (type: `string`):

ZIP code override for precise location targeting.

## `freeConsultation` (type: `boolean`):

Keep only listings that indicate free consultation.

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

Residential proxy is recommended for reliability on this source.

## Actor input object example

```json
{
  "maxItems": 10,
  "practiceArea": "Personal Injury",
  "zipCode": "10001",
  "freeConsultation": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US",
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset overview table with key firm, contact, rating, and location fields.

# 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 = {
    "maxItems": 10,
    "practiceArea": "Personal Injury",
    "zipCode": "10001",
    "freeConsultation": false,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US",
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/martindale-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 = {
    "maxItems": 10,
    "practiceArea": "Personal Injury",
    "zipCode": "10001",
    "freeConsultation": False,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/martindale-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 '{
  "maxItems": 10,
  "practiceArea": "Personal Injury",
  "zipCode": "10001",
  "freeConsultation": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US",
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call parseforge/martindale-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/martindale-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/o9tehFeilGgfgSLGe/builds/IjlHSxYAFtqB2aCNv/openapi.json
