# Hong Kong Law Firm Leads · Law Society (`corent1robert/hk-lawsociety-firm-leads`) Actor

Export Hong Kong law firms with published emails and phones from the Law Society directory. Volunteer listings. Public page. No login.

- **URL**: https://apify.com/corent1robert/hk-lawsociety-firm-leads.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Lead generation, Automation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 firm with emails

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Hong Kong Law Firm Leads · Law Society

Export **Hong Kong law firms** with the **email and phone printed** on the Law Society of Hong Kong [volunteer directory](https://lawdirectory.hklawsoc.org.hk/en/Search-for-a-Law-Firm). One row per firm. Public pages only.

**No login. No API key. No Law Society account.**

### Who is this for?

| You are… | Typical goal | Suggested setup |
|----------|--------------|-----------------|
| Referral / legal-tech marketplace | Partner firms with a mailbox | Family Law, only with contact |
| Corporate / insurance panel | Hong Kong counsel in one practice | Company / Commercial Law |
| SDR / agency (Hong Kong) | Outbound list of named firms | Kowloon or Hong Kong Island |
| Cross-border desk | Mainland-related practices | Mainland China location |

**What you get by default.** English firm name, published mailbox, Hong Kong phone, website when listed, address, volunteer practice ticks, directory URL.

**Honest coverage.** This is the **volunteer** Law Society directory (Family Law printed **208** firms on 7 Sep 2026), **not** the full Hong Kong Law List. Smoke that day: page 1 **7/10** emails, page 2 **9/10** emails, **no overlap**. Contacts are never invented.

### Quick start

1. Open the Actor. Leave **Area of practice** on Family Law, or pick another official filter.
2. Keep **Only with email or phone** on.
3. Click **Start**. Download JSON, CSV or Excel.

### Ready-made examples (published tasks)

Landing pages go live when you publish each task from Console (see `published-tasks/publication-console.md`). Until then, use the saved task inputs in `published-tasks/inputs/`.

| Example | Best for |
|---------|----------|
| HK Law Society family-law emails | Family Law volunteer firms |
| HK Law Society corporate-law emails | Company / Commercial Law |
| HK Law Society Kowloon firms | Kowloon offices and branches |
| HK Law Society firm sample | 20-row try |

### What it extracts

| Category | Fields |
|----------|--------|
| Identity | English name, Chinese name, address, practice ticks |
| Contact | Email (never invented), office-hours phone, website, named contact |
| Provenance | Directory URL, country `HK` |

### Input

| Field | Meaning |
|-------|---------|
| `practiceArea` | Official directory area code, or `all` |
| `location` | Hong Kong Island / Kowloon / New Territories / Mainland China |
| `keyword` | Firm name search on the public form |
| `onlyWithContact` | Skip rows with no email and no phone |
| `maxItems` | Unique firms. **0** = no numerical cap. **Free plan: 20 / run** |

### Output example

```json
{
  "providerKey": "HKLS-ALLBRIGHT-LAW-HONG-KONG-OFFICES-LLP",
  "facilityName": "ALLBRIGHT LAW (HONG KONG) OFFICES LLP",
  "contactEmail": "hongkong@allbrightlaw.com",
  "contactPhone": "2522 5676",
  "countryCode": "HK",
  "url": "https://lawdirectory.hklawsoc.org.hk/en/Search-for-a-Law-Firm"
}
```

### How to use Hong Kong Law Society firm emails

Paste no URLs. Choose a practice and start. Duplicate pages for the same firm are **merged** into one CRM row. Pagination uses the public `pageIndex` / `dataCount` query.

### How much does it cost to scrape the Law Society of Hong Kong directory?

Pay-per-event. Actor start is **$0.00005**. A firm **with email** is **$0.00399** on the free pricing tier (lower on paid Apify tiers). Phone-only and no-contact rows cost less.

| Scenario | Approx. cost (FREE tier) |
|----------|--------------------------|
| 20 firms with email (first run) | < $0.10 |
| Family Law volunteer list (~208 firms) | < $1.00 |

HTTP-only — compute stays small. Free Apify plan: **20 firms per run**.

### Is it legal to scrape the Law Society of Hong Kong directory?

This Actor only reads **public** volunteer-directory HTML. The Society states the list is not the full Law List, and that personal data must not be used for unrelated purposes. Direct marketing without consent can be an offence under the PDPO. Treat emails and phones as personal data. Your use must comply with PDPO, GDPR where it applies, and the Law Society terms. Do not use the dataset for spam.

### Also available

**[Singapore Lawyer Emails · Official Law Society](https://apify.com/corent1robert/sg-lawsociety-lawyer-leads)** — featured Singapore Find a Lawyer firms.

### Local development

```bash
npm install
apify run --purge
```

Default input is in `.actor/INPUT.json` (20 Family Law firms). Local `storage/` is not uploaded to Console.

### Support

Contact <corentin@outreacher.fr> if you need a custom scraper or tailored automation.

# Changelog

This Actor's version history is a separate document: https://apify.com/corent1robert/hk-lawsociety-firm-leads/changelog.md

# Actor input Schema

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

Keep firms that ticked this practice on the public directory.

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

Keep firms whose office is in this region, including branches.

## `keyword` (type: `string`):

Directory name search, as on the public form.

## `onlyWithContact` (type: `boolean`):

Skip firms with neither a published email nor a published phone.

## `requireEmail` (type: `boolean`):

Keep firms that publish an email address.

## `requirePhone` (type: `boolean`):

Keep firms that publish a phone number.

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

Stop after this many unique firms. **0 = no numerical cap**.

## Actor input object example

```json
{
  "practiceArea": "FamilyLaw",
  "location": "all",
  "onlyWithContact": true,
  "requireEmail": false,
  "requirePhone": false,
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

All exported unique Hong Kong law firms.

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

Firm, phone, email and practices.

## `contacts` (type: `string`):

Email, phone and website.

## `runLog` (type: `string`):

Plain-text progress for this run.

# 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 = {
    "practiceArea": "FamilyLaw",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/hk-lawsociety-firm-leads").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 = {
    "practiceArea": "FamilyLaw",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/hk-lawsociety-firm-leads").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 '{
  "practiceArea": "FamilyLaw",
  "maxItems": 20
}' |
apify call corent1robert/hk-lawsociety-firm-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/hk-lawsociety-firm-leads"
        }
    }
}
```

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/kHONLFFfnjX7fY2L6/builds/hu77ECgYJg2DUlgR0/openapi.json
