# Anwalt.de Scraper - German Lawyers Directory (`benthepythondev/anwalt-de-scraper`) Actor

Scrape German lawyer profiles from anwalt.de — Germany's #1 lawyer directory with 100,000+ attorneys. Extract name, phone, address, practice areas, ratings. Perfect for legal-tech, B2B lead generation, market research.

- **URL**: https://apify.com/benthepythondev/anwalt-de-scraper.md
- **Developed by:** [ben](https://apify.com/benthepythondev) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 lawyers

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

## Anwalt.de Scraper — German Lawyers Directory

**Extract German lawyer profiles from [anwalt.de](https://www.anwalt.de) — Germany's #1 lawyer directory with 100,000+ registered attorneys.**

Built for **legal-tech platforms, B2B lead-gen for legal services, market research, and competitive intel.**

### What you get

- **Verified-quality lawyer data**: name, phone, address, practice areas, ratings, review count, Fachanwalt status, distance
- **Detail enrichment**: email, website, full bio, all practice areas, languages
- **Filter by city + practice area** (e.g., Berlin + Familienrecht)
- **Specialist-only filter** (Fachanwälte)
- **TLS-impersonation via curl-cffi** — bypasses anwalt.de's anti-bot without a browser
- **No headless browser overhead** — pure HTTP speed
- **Apify DE Residential Proxy** baked in
- **Pre-built dataset Overview** in Apify Console for instant inspection

### Why this scraper (vs. alternatives)

| | Build your own | Generic scraper | **This actor** |
|---|---|---|---|
| Bypasses anwalt.de anti-bot | Hard — needs curl-cffi or browser | Often fails | Built-in TLS-impersonation |
| Fachanwalt status detection | Manual | Often missed | Native flag |
| Phone normalized to E.164 | Manual | No | `+49...` format |
| Email + bio + website | Manual | No | Single flag (`fetchDetails`) |
| DE residential proxy | Costs $50+/mo | Bring your own | Included |

### Input

| Field | Type | Description |
|---|---|---|
| `city` | `string` | German city (e.g., "Berlin", "München"). Leave empty for nationwide |
| `practiceArea` | `string` | Practice area slug (e.g., `familienrecht`, `arbeitsrecht`, `strafrecht`, `mietrecht`, `erbrecht`, `verkehrsrecht`, `steuerrecht`) |
| `specialistOnly` | `bool` | Only Fachanwälte (certified specialists) |
| `startUrls` | `string[]` | Direct anwalt.de URLs (overrides city + practiceArea) |
| `fetchDetails` | `bool` | Visit each profile for email, website, bio, all practice areas, languages |
| `maxResults` | `int` | Default 100, max 5000 |
| `delaySeconds` | `float` | Polite delay (default 1.5s) |
| `proxyConfiguration` | `object` | DE proxy default |

### Example Input

```json
{
  "city": "Berlin",
  "practiceArea": "familienrecht",
  "specialistOnly": true,
  "fetchDetails": false,
  "maxResults": 100,
  "delaySeconds": 1.5
}
````

### Output (sample)

```json
{
  "slug": "sebastian-knebel",
  "url": "https://www.anwalt.de/sebastian-knebel",
  "title": "Rechtsanwalt",
  "name": "Sebastian Knebel",
  "is_specialist": false,
  "law_firm": "Kanzlei Sebastian Knebel",
  "address": "Bahnhofstr. 16, 35274 Kirchhain",
  "phone": "+4964229259888",
  "practice_areas": ["Arbeitsrecht", "Sozialrecht", "Strafrecht"],
  "rating": 5.0,
  "review_count": 2,
  "distance_km": 80.4,
  "last_review_excerpt": "Sehr guter Anwalt, immer wieder.",
  "search_city": "Berlin",
  "search_practice_area": "familienrecht",
  "scraped_at": "2026-05-28T15:30:00+00:00",
  "email": "kontakt@kanzlei-knebel.de",
  "website": "https://www.kanzlei-knebel.de",
  "bio": "...",
  "all_practice_areas": ["...", "..."],
  "languages": ["Deutsch", "Englisch"]
}
```

> `email`, `website`, `bio`, `all_practice_areas`, `languages` only when `fetchDetails: true`.

### Use cases

- **Legal-tech onboarding** — pre-populate lawyer databases by region/specialization
- **B2B lead-gen** — find lawyers practicing in your target market (CRM tools, legal software, marketing services)
- **Market research** — aggregate ratings, review counts, practice area saturation per city
- **Compliance / KYC** — verify lawyer credentials (Fachanwalt status, registration)
- **Directory aggregation** — build local "find a lawyer" tools or comparison sites
- **Recruiting** — identify lawyers in specific practice areas for headhunting

### Pricing

**Pay-Per-Event** — premium B2B data:

- `$0.025` per lawyer
- `$0.00005` actor-start fee

#### Example runs

| Use case | Lawyers | Cost |
|---|---|---|
| Quick local scan | 50 | **$1.25** |
| Berlin family-law specialists (detail enriched) | 100 | **$2.50** |
| Multi-city lead-gen sweep (5 cities × 100) | 500 | **$12.50** |
| Nationwide practice-area snapshot | 2,000 | **$50.00** |

### Tips

- Keep the **DE proxy** (default) to avoid rate-limits
- `fetchDetails: true` increases run time ~3x but enriches with email/website/bio
- Practice area slugs are German (`familienrecht`, not `family-law`)
- For nationwide search, leave `city` empty
- Schedule weekly runs from Apify Console for fresh market data
- Combine with **jameda-scraper** if you also need medical professionals

### FAQ

**Q: How does the actor bypass anwalt.de's bot detection?**\
A: It uses `curl-cffi` with Chrome 120 TLS impersonation + session warm-up + smart retry-with-rewarmup on 403s. No headless browser needed.

**Q: How accurate is the Fachanwalt detection?**\
A: 100% — the actor reads the official Fachanwalt designation directly from each profile.

**Q: Can I get email addresses?**\
A: Yes — set `fetchDetails: true`. Emails come from publicly listed contact info on each lawyer's profile.

**Q: How recent are the listings?**\
A: Real-time. Every run fetches live from anwalt.de.

**Q: Are reviews scraped too?**\
A: Only the latest review excerpt + count + average rating. Full review text is not scraped to respect both anwalt.de's ToS and reviewer privacy.

### Related actors

- **[jameda-scraper](https://apify.com/benthepythondev/jameda-scraper)** — German doctors directory (same premium B2B tier)
- **[kleinanzeigen-scraper](https://apify.com/benthepythondev/kleinanzeigen-scraper)** — German marketplace listings
- **[immowelt-scraper](https://apify.com/benthepythondev/immowelt-scraper)** — German real estate
- **[wg-gesucht-scraper](https://apify.com/benthepythondev/wg-gesucht-scraper)** — shared apartments

### Legal & compliance

- Scrapes publicly accessible lawyer profiles only
- Lawyer contact data is public via anwalt.de's directory
- You are responsible for GDPR-compliant handling of contact data (no spam, opt-out on outreach)
- Don't republish full reviews — those are user-generated content owned by anwalt.de users

### Support & feature requests

Open an issue on the Actor page or contact via Apify Console messaging. Custom features welcome.

# Actor input Schema

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

German city to search lawyers in (e.g., 'Berlin', 'München', 'Hamburg'). Leave empty for nationwide.

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

Specific legal practice area slug as used on anwalt.de (e.g., 'familienrecht', 'arbeitsrecht', 'strafrecht', 'mietrecht'). Leave empty for all.

## `specialistOnly` (type: `boolean`):

Only include certified specialists (Fachanwalt).

## `startUrls` (type: `array`):

Direct anwalt.de search URLs (overrides city + practiceArea).

## `fetchDetails` (type: `boolean`):

Visit each lawyer's profile for full bio, email, website, full address, all reviews. Slower but much richer data.

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

Maximum lawyers to scrape (0 = unlimited).

## `delaySeconds` (type: `number`):

Polite delay between HTTP requests.

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

Proxy settings. Apify DE proxy recommended.

## Actor input object example

```json
{
  "city": "Berlin",
  "practiceArea": "familienrecht",
  "specialistOnly": false,
  "startUrls": [
    "https://www.anwalt.de/anwaelte?ort=Berlin&rechtsgebiet=familienrecht"
  ],
  "fetchDetails": false,
  "maxResults": 100,
  "delaySeconds": 1.5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/anwalt-de-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/anwalt-de-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 '{}' |
apify call benthepythondev/anwalt-de-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Anwalt.de Scraper - German Lawyers Directory",
        "description": "Scrape German lawyer profiles from anwalt.de — Germany's #1 lawyer directory with 100,000+ attorneys. Extract name, phone, address, practice areas, ratings. Perfect for legal-tech, B2B lead generation, market research.",
        "version": "1.0",
        "x-build-id": "g9yzB18MVkxpIZWn5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/benthepythondev~anwalt-de-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-benthepythondev-anwalt-de-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/benthepythondev~anwalt-de-scraper/runs": {
            "post": {
                "operationId": "runs-sync-benthepythondev-anwalt-de-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/benthepythondev~anwalt-de-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-benthepythondev-anwalt-de-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": {
                    "city": {
                        "title": "City (Ort)",
                        "type": "string",
                        "description": "German city to search lawyers in (e.g., 'Berlin', 'München', 'Hamburg'). Leave empty for nationwide."
                    },
                    "practiceArea": {
                        "title": "Practice Area (Rechtsgebiet)",
                        "type": "string",
                        "description": "Specific legal practice area slug as used on anwalt.de (e.g., 'familienrecht', 'arbeitsrecht', 'strafrecht', 'mietrecht'). Leave empty for all."
                    },
                    "specialistOnly": {
                        "title": "Only Fachanwälte (Specialists)",
                        "type": "boolean",
                        "description": "Only include certified specialists (Fachanwalt).",
                        "default": false
                    },
                    "startUrls": {
                        "title": "Start URLs (alternative)",
                        "type": "array",
                        "description": "Direct anwalt.de search URLs (overrides city + practiceArea).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "fetchDetails": {
                        "title": "Fetch Detail Pages",
                        "type": "boolean",
                        "description": "Visit each lawyer's profile for full bio, email, website, full address, all reviews. Slower but much richer data.",
                        "default": false
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 0,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum lawyers to scrape (0 = unlimited).",
                        "default": 100
                    },
                    "delaySeconds": {
                        "title": "Delay Between Requests (s)",
                        "minimum": 0.5,
                        "maximum": 10,
                        "type": "number",
                        "description": "Polite delay between HTTP requests.",
                        "default": 1.5
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Apify DE proxy recommended.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "DE"
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
