# California State Bar Attorney Scraper (`easyapi/california-state-bar-attorney-scraper`) Actor

Search the State Bar of California's official directory and export attorney profiles: name, bar number, license status, firm address, phone and email.

- **URL**: https://apify.com/easyapi/california-state-bar-attorney-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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?

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

## California State Bar Attorney Scraper ⚖️

**Search the State Bar of California's official directory and export attorney profiles — name, bar number, license status, firm address, phone, email and website.**

The State Bar of California licenses every attorney allowed to practise in the state — over 280,000 lawyers. Its public directory is the only authoritative source for who is licensed, active or disciplined. This Actor searches it and returns clean, structured attorney profiles ready for CRM import.

### ✨ What you get

| Field | Description |
|---|---|
| `name` | Full attorney name |
| `barNumber` | Official bar number |
| `licenseStatus` | Active, Inactive, Not Eligible, Resigned… |
| `admission` | Admission date to the bar |
| `city` | Listed practice city |
| `address` | Firm name and full mailing address |
| `phone` / `fax` | Contact numbers |
| `email` / `website` | Published contact email and firm site |
| `detailUrl` | Link to the official profile |

### 🎯 Who uses it

- **Legal marketing agencies** — build targeted outreach lists by name segment
- **Process servers & legal support** — verify licence status before serving
- **Recruiters & headhunters** — map attorneys by city and admission year
- **Insurance & compliance teams** — verify an attorney's licence standing
- **Law-firm BD teams** — build referral and co-counsel networks

### 🚀 How to use

1. Enter one or more **name queries** (e.g. `smith`, `garcia`) — specific last names work best.
2. Keep **full profiles** enabled for firm address, phone, email and website.
3. Set **max items** and run.
4. Export to Excel/CSV or pipe straight into your CRM.

### 📚 Useful resources

- [Attorney Search — State Bar of California](https://apps.calbar.ca.gov/attorney/LicenseeSearch/QuickSearch) — the official public directory
- [Check an attorney's licence](https://www.calbar.ca.gov/public) — consumer verification service
- [Discipline records](https://apps.calbar.ca.gov/court) — State Bar Court decisions
- [Consumer assistance](https://www.calbar.ca.gov/Access-to-Justice/Consumer-Assistance) — complaints and fee arbitration

### ❓ FAQ

**How many results per query?**
The public directory shows up to 500 attorneys per query — use specific last names to stay within the cap and keep lists precise.

**Is the email always available?**
Only attorneys who published contact details have an email. The directory also obfuscates emails with decoy entries — we filter for the plausible one and additionally return the candidate list so you can decide.

**Can I check whether someone is still licensed?**
Yes — `licenseStatus` comes straight from the official profile; every record links back to it.

### 🤝 More Actors by easyApi

Browse all our [public-data and business-intelligence Actors](https://apify.com/easyapi) — company registers, professional directories and government datasets across the US, UK and Australia.

### 💬 Support

Questions or a custom legal dataset you need? Open an issue on this Actor's page or contact us through the Apify Store — we usually respond within 24 hours.

# Actor input Schema

## `freeTextQueries` (type: `array`):

Attorney last names or keywords to search, e.g. 'smith', 'garcia'. The public directory returns at most 500 rows per query.

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

Maximum number of attorney profiles to scrape.

## `includeDetails` (type: `boolean`):

Open each attorney's profile page for license status, firm address, phone, email and website.

## Actor input object example

```json
{
  "freeTextQueries": [
    "smith"
  ],
  "maxItems": 50,
  "includeDetails": true
}
```

# Actor output Schema

## `results` (type: `string`):

Attorney records stored in the default dataset.

# 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 = {
    "freeTextQueries": [
        "smith"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/california-state-bar-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 = {
    "freeTextQueries": ["smith"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/california-state-bar-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 '{
  "freeTextQueries": [
    "smith"
  ],
  "maxItems": 50
}' |
apify call easyapi/california-state-bar-attorney-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/california-state-bar-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/yzTclSt7DyZobV5QC/builds/x8LjN5GTIM9g0yRdB/openapi.json
