# CSLB Contractor License Lookup | Status, Bond & Workers' Comp (`memo23/cslb-contractor-license-lookup`) Actor

California contractor licenses by number, business, person, city, ZIP, or trade. HIS registrations, expiration and lapse windows, and the public statewide list on request. Status, bond, workers' comp, personnel, and case numbers. Unmatched searches are not billed.

- **URL**: https://apify.com/memo23/cslb-contractor-license-lookup.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 contractor licenses

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

## CSLB Contractor License Lookup

Look up a California contractor license and get the record CSLB shows the public: status, trade classifications, bond, workers' compensation, liability insurance, the people on the license, phone, and address.

One row per license. A number that does not exist is not saved and not billed. JSON, CSV, or Excel.

#### Why use this scraper?

- Check a license number, a business name, or a person on the license in the same run
- Status is normalized (Active, Expired, Suspended, Revoked, Cancelled, Inactive) and the original wording is kept
- Contractor bond, qualifier bond, and LLC employee bond, each with company, number, amount, and dates
- Workers' compensation policy or exemption, plus liability insurance when CSLB shows it
- Personnel on the license: name, title, association date, and classification
- A search that matches nothing does not add a row
- City, county, ZIP, trade, or status from the public statewide license list
- Licenses expiring, newly issued, or lapsing inside a day window you set
- The full statewide list when you turn that export on and raise the row cap
- Home Improvement Salesperson registrations by number or name
- Disciplinary case number, region, and reason when the statewide list has them

#### Overview

Pass license numbers, a business name, or a person's name and each match is saved with the public license record, including liability insurance and the people on the license.

A city, county, ZIP, trade, status, or date window reads the public statewide license list. A business name on that same run narrows the list. Turn on **Export the full list** and raise **Maximum records** for the whole list. The default cap is 25 rows, and an empty run still looks up license 1087962.

If several searches are filled in, license numbers are used first, then an HIS registration, then a personnel name, then a business name. List filters are used when no license number, HIS registration, or personnel name is set.

A statewide-list row includes the county, the contractor bond, workers' compensation, and a disciplinary case when one is listed. It does not include the liability policy. That policy is on a license-number, business-name, or personnel search.

#### Supported inputs

| Input | Example | What you get |
|---|---|---|
| License numbers | `1087962` | That license, or nothing if the number does not exist |
| License page link | a link to the official license page | The license number is taken from the link |
| Business name | `KB HOME` | Up to `maxResults` matching licenses, with the full record for each |
| Personnel name | last `BEBBER`, first `ROLAND` | Licenses associated with that person |
| City, county, ZIP, or trade | city `LODI`, class `C-10` | Matching rows from the public statewide list |
| Status | `Suspended` | Rows in that status |
| Expiration window | `30`, `60`, or `90` days | Licenses whose expiration date falls in that window |
| New licenses | issued within `30` days | Licenses issued in that window |
| Lapse window | `30` days | A recent bond or workers' comp cancellation, or a current suspension |
| Full list | export on, `maxResults` raised | The statewide list, up to the cap you set |
| HIS registration | number `48070`, or last `GARCIA` | That Home Improvement Salesperson registration |

#### Use cases

| Who | What they do with it |
|---|---|
| General contractors | Confirm a subcontractor's license is active before awarding work |
| Insurers and surety | Read bond, workers' comp, and liability insurance on a book of licenses |
| Lenders and KYB | Match a business name to a license, entity type, and address |
| Marketplaces | Onboard California contractors with phone, status, and classifications |
| Lead lists | Turn a city, trade, or business-name search into records you can export |
| License monitoring | Pull licenses expiring in 30, 60, or 90 days, or recently lapsed |

#### How it works

![CSLB license lookup: numbers or names in, one license record out](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-cslb.png)

1. Paste license numbers, a business or person, a city or trade, a date window, or an HIS registration.
2. A number or name becomes one license record: status, classifications, bond, insurance, and address.
3. A city, trade, or date window keeps the matching rows from the public statewide list.
4. Records land in the dataset. A number with no license is skipped. Raise the cap and turn on the full-list export for the statewide list.

#### Input configuration

| Field | Type | Default | What it does |
|---|---|---|---|
| `licenseNumbers` | string list | empty | License numbers, up to 8 digits. A link to the official license page is accepted too. |
| `businessName` | text | empty | Contractor business name. The first 10 to 15 letters are enough. Ignored when license numbers are set. |
| `personnelLastName` | text | empty | Last name of a person on the license. Used when no license numbers are set. |
| `personnelFirstName` | text | empty | Optional first name to narrow the personnel search. |
| `hisNumber` | text | empty | HIS registration number. Example: 48070. |
| `hisLastName` | text | empty | Last name on an HIS registration. |
| `hisFirstName` | text | empty | Optional first name for an HIS name search. |
| `city` | text | empty | City on the statewide list. Example: LOS ANGELES. |
| `county` | text | empty | County. Example: San Diego. |
| `zipCode` | text | empty | 5-digit ZIP. |
| `classification` | text | empty | Trade code, such as B or C-10. |
| `licenseStatus` | text | empty | Active, Expired, Suspended, Revoked, Cancelled, or Inactive. |
| `licenseExpiresWithinDays` | integer | empty | Expiration date falls within this many days. |
| `workersCompExpiresWithinDays` | integer | empty | Workers' compensation policy expires within this many days. |
| `issuedWithinDays` | integer | empty | License issued within this many days. |
| `lapseWithinDays` | integer | empty | Recent bond or workers' comp cancellation, or a current suspension. |
| `exportAll` | boolean | false | Save the statewide list, still capped by `maxResults`. |
| `includeComplaintCases` | boolean | false | Add disciplinary case fields on a number, business, or personnel search. |
| `maxResults` | integer | 25 | Stop after this many records. Minimum 1, maximum 300000. |
| `includePersonnel` | boolean | true | Add name, title, association date, and classification. On a list search, included for 200 records or fewer. |
| `maxConcurrency` | integer | 8 | How many licenses to look up at once. Lower it if runs slow down or fail. |
| `proxy` | object | Apify proxy | Residential proxies recommended. The default works out of the box. |

License numbers:

```json
{ "licenseNumbers": ["1087962", "838828"], "maxResults": 10 }
```

Business name:

```json
{ "businessName": "KB HOME", "maxResults": 25 }
```

Person on the license:

```json
{ "personnelLastName": "BEBBER", "personnelFirstName": "ROLAND" }
```

City and trade:

```json
{ "city": "LODI", "classification": "C-10", "maxResults": 25 }
```

Licenses expiring in the next 30 days:

```json
{ "licenseExpiresWithinDays": 30, "maxResults": 100 }
```

HIS registration:

```json
{ "hisNumber": "48070" }
```

#### Output overview

Each dataset item is one contractor license or one HIS registration. `recordType` is `contractor` or `his`. Dates are `YYYY-MM-DD`. Bond amounts and the liability limit are numbers in USD. `licenseStatus` is a short label. `statusText` is the wording CSLB prints. `personnel` is empty when `includePersonnel` is off, when the list is longer than 200 records, or when CSLB lists nobody.

#### Output sample

License 1087962, looked up by number. Shortened: workers' compensation class codes are omitted here.

```json
{
  "recordType": "contractor",
  "licenseNumber": "1087962",
  "businessName": "KB HOME CAL MANAGEMENT SERVICES LLC",
  "entityType": "Ltd Liability",
  "address": "10990 WILSHIRE BLVD 7TH FLR",
  "city": "LOS ANGELES",
  "state": "CA",
  "zip": "90024",
  "phone": "(310) 231-4000",
  "licenseStatus": "Active",
  "issueDate": "2022-03-02",
  "expirationDate": "2028-03-31",
  "classifications": [{ "code": "B", "description": "GENERAL BUILDING" }],
  "bonds": [
    { "type": "contractor", "company": "HANOVER INSURANCE COMPANY (THE)", "number": "1090837", "amountUsd": 25000, "effectiveDate": "2023-01-01" },
    { "type": "qualifier", "company": "LIBERTY MUTUAL INSURANCE COMPANY", "number": "02429608", "amountUsd": 25000, "principalName": "JOHN GUNNAR SULLIVAN", "effectiveDate": "2026-10-09" }
  ],
  "workersComp": {
    "exempt": false,
    "company": "STARR INDEMNITY & LIABILITY COMPANY",
    "policyNumber": "1000001836",
    "effectiveDate": "2021-08-31",
    "expirationDate": "2027-08-31"
  },
  "liabilityInsurance": {
    "company": "OLD REPUBLIC UNION INSURANCE COMPANY",
    "policyNumber": "MWZY31920026",
    "amountUsd": 1000000,
    "effectiveDate": "2026-03-01",
    "expirationDate": "2027-03-01"
  },
  "personnel": [
    { "name": "JOHN GUNNAR SULLIVAN", "title": "RME", "associationDate": "2026-10-14", "classification": "B" }
  ],
  "personnelListedOnOtherLicenses": true,
  "hasComplaints": false,
  "detailUrl": "https://www.cslb.ca.gov/..."
}
```

A statewide-list row, license 1000153. Classification text on this list is the code only. The disciplinary case is included.

```json
{
  "recordType": "contractor",
  "licenseNumber": "1000153",
  "businessName": "HACKETT RENOVATION & CONSTRUCTION INC",
  "city": "SAN DIEGO",
  "county": "San Diego",
  "licenseStatus": "Active",
  "expirationDate": "2027-01-31",
  "classifications": [{ "code": "B", "description": "B" }],
  "hasComplaints": true,
  "complaintCases": [{ "caseNumber": "2016000394", "region": "N", "reason": "Replacement Bond" }]
}
```

#### Key output fields

| Group | Fields |
|---|---|
| Identity | `recordType`, `licenseNumber`, `businessName`, `entityType`, `detailUrl` |
| Address | `address`, `city`, `state`, `zip`, `county`, `phone` |
| Status | `licenseStatus`, `statusText`, `issueDate`, `expirationDate`, `dataCurrentAsOf` |
| Trade | `classifications` (`code`, `description`) |
| Bond | `bonds` (`type`, `company`, `number`, `amountUsd`, `effectiveDate`, `cancellationDate`, `principalName`) |
| Insurance | `workersComp`, `liabilityInsurance` |
| People | `personnel`, `personnelListedOnOtherLicenses` |
| Cases | `hasComplaints`, `complaintCases` (`caseNumber`, `region`, `reason`, bond company, number, amount, dates) |

`hasComplaints` is true when a disciplinary case is on the statewide list, or when the license page links to a complaint disclosure for that license. The definition linked from every license page does not count.

`county` and `complaintCases` come from the statewide list. A license-number search leaves them empty unless **Include disciplinary cases** is on. `liabilityInsurance` is filled on a license-number, business-name, or personnel search.

`personnelListedOnOtherLicenses` is true when CSLB says people on this license also appear on other licenses. Those other licenses are not added unless your search returns them.

#### Pricing

Pay per event. Actor start is $0.005 (one event per GB of memory, minimum one). Each saved row is $0.002. A license number or HIS registration that does not exist is not saved and is not billed. The statewide list is about 240,000 rows, so a full export is about $480 in per-record charges plus the start event. The default cap is 25 rows.

#### FAQ

**What if the license number does not exist?** No dataset row, and no per-license charge.

**Which search wins if I fill in more than one?** License numbers, then an HIS registration, then a personnel name, then a business name. A city, county, ZIP, trade, status, or date window uses the statewide list, and a business name on that run narrows it.

**Does a business-name search return the full record?** Yes, when it is the only search. You get status, bond, liability insurance, and personnel. Add a city or trade and the run filters the statewide list instead. That row has no liability policy.

**Can I get every licensed contractor in a city?** Yes. Set the city and raise `maxResults`. For the whole state, turn on **Export the full list** and set `maxResults` to at least 300000. Every saved row is billed.

**Are HIS registrations included?** Yes. Use the HIS number or the HIS name. `recordType` is `his`. Those rows do not include a contractor bond.

**What is in a disciplinary case?** `complaintCases` has the case number, region, reason, and the disciplinary bond when the statewide list has them. City and classification searches include that automatically. A number, business, or personnel search includes it when **Include disciplinary cases** is on.

**How current is the row?** `dataCurrentAsOf` is the date printed on the license, or the date on the statewide list for a list search. A license that expired years ago can be missing from the statewide list and still come back from a license-number search.

#### Support

Open an issue on the [Issues tab](https://console.apify.com/actors/oqjSEthNRgoWHcbog/issues) and include the run ID plus the license number or name you searched.

#### Additional services

Need a watch on a fixed list of license numbers, a different export shape, or fields beyond this record? Describe the list and the fields on the [Issues tab](https://console.apify.com/actors/oqjSEthNRgoWHcbog/issues).

#### Explore more scrapers

- [US Contractor License Leads](https://apify.com/memo23/us-contractor-license-leads-scraper) for multi-state license leads
- [US Home Services Contractor Leads](https://apify.com/memo23/us-home-services-contractor-leads) for electrician, plumber, and HVAC leads across several state boards

More at [apify.com/memo23](https://apify.com/memo23).

#### For AI Agents & LLM Apps

- **Purpose:** Look up California CSLB contractor licenses and HIS registrations, or filter the public statewide license list by city, county, ZIP, trade, status, or a date window.
- **Minimal input:** `{ "licenseNumbers": ["1087962"] }`
- **Output fields:** `recordType`, `licenseNumber`, `businessName`, `entityType`, `address`, `city`, `state`, `zip`, `county`, `phone`, `licenseStatus`, `statusText`, `issueDate`, `expirationDate`, `classifications`, `bonds`, `workersComp`, `liabilityInsurance`, `personnel`, `personnelListedOnOtherLicenses`, `hasComplaints`, `complaintCases`, `dataCurrentAsOf`, `detailUrl`, `retrievedAt`
- **Billing:** $0.005 start, plus $0.002 per saved row. No row and no per-record charge when the number does not exist. A full statewide export is about 240,000 rows.
- **Behavior:** License numbers override every other search. Empty input looks up license 1087962. `exportAll` defaults to false. `maxResults` defaults to 25 and caps the rows. `includePersonnel` defaults to true, and on a list search it covers 200 records or fewer.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the Contractors State License Board, the State of California, or any of their subsidiaries or affiliates. All trademarks mentioned are the property of their respective owners.

The scraper accesses only publicly available license records. It does not log in or bypass authentication. Users are responsible for ensuring their use complies with the Contractors State License Board's Terms of Service, applicable data-protection law (GDPR, CCPA, etc.), and any contractual obligations of their own organisation.

### SEO Keywords

CSLB license lookup, California contractor license search, CSLB license check, contractor license status, CSLB bond check, California workers compensation contractor, CSLB license API, contractor license verification California, CSLB business name search, CSLB personnel search, California contractor bond, qualifier bond California, contractor license expiration, CSLB phone number lookup, licensed contractor leads California, contractor license data, CSLB classification lookup, California contractor insurance, license number lookup CSLB, subcontractors license check, California contractor license list, CSLB city search, CSLB ZIP code search, HIS registration lookup, contractor license expiration alert, California contractor lapse

# Actor input Schema

## `licenseNumbers` (type: `array`):

California contractor license numbers, up to 8 digits. A link to the official license page is accepted too. Example: 1087962.

## `businessName` (type: `string`):

Contractor business name. The first 10 to 15 letters are enough. Example: KB HOME. On its own, this returns the full license record. Combined with a city, county, ZIP, trade, or date window, it filters the statewide list.

## `personnelLastName` (type: `string`):

Last name of a person on the license, such as an owner or qualifier. Example: BEBBER. Used when no license numbers or HIS registration are set. List filters are skipped for this search.

## `personnelFirstName` (type: `string`):

Optional first name to narrow a personnel search. Example: ROLAND.

## `hisNumber` (type: `string`):

HIS registration number. Example: 48070.

## `hisLastName` (type: `string`):

Last name on an HIS registration. Example: GARCIA. Used when no HIS number is set.

## `hisFirstName` (type: `string`):

Optional first name to narrow an HIS name search. Example: JOSE.

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

City. Example: LOS ANGELES.

## `county` (type: `string`):

County. Example: San Diego.

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

5-digit ZIP. Example: 90024.

## `classification` (type: `string`):

Trade code, such as B or C-10. Hyphens are ignored.

## `licenseStatus` (type: `string`):

Active, Expired, Suspended, Revoked, Cancelled, or Inactive.

## `licenseExpiresWithinDays` (type: `integer`):

Keep licenses whose expiration date falls within this many days. Example: 30, 60, or 90.

## `workersCompExpiresWithinDays` (type: `integer`):

Keep licenses whose workers' compensation policy expires within this many days.

## `issuedWithinDays` (type: `integer`):

Keep licenses issued within this many days.

## `lapseWithinDays` (type: `integer`):

Keep licenses with a bond cancellation, a workers' compensation cancellation or suspension, or an inactivation in this many days. A license that is currently suspended is included too.

## `exportAll` (type: `boolean`):

Save the public statewide license list, still capped by Maximum licenses. Leave this off. An empty run looks up license 1087962. Every saved row is billed.

## `includeComplaintCases` (type: `boolean`):

On a license number, business name, or personnel search, add the disciplinary case number, region, and reason when the statewide list has them. City, county, ZIP, and classification results already include those fields.

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

How many records to save. Default 25. For the statewide list, raise this and turn on Export the full list. Every saved row is billed. Maximum 300000.

## `includePersonnel` (type: `boolean`):

Add the people currently associated with each license: name, title, association date, and classification. On a statewide-list search this is included for 200 records or fewer.

## `maxConcurrency` (type: `integer`):

How many licenses to look up at once. Lower it if runs slow down or fail. Default 8, maximum 23.

## `proxy` (type: `object`):

Residential proxies recommended. The default works out of the box.

## Actor input object example

```json
{
  "licenseNumbers": [
    "1087962"
  ],
  "businessName": "",
  "personnelLastName": "",
  "personnelFirstName": "",
  "hisNumber": "",
  "hisLastName": "",
  "hisFirstName": "",
  "city": "",
  "county": "",
  "zipCode": "",
  "classification": "",
  "licenseStatus": "",
  "exportAll": false,
  "includeComplaintCases": false,
  "maxResults": 5,
  "includePersonnel": true,
  "maxConcurrency": 8,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Contractor licenses 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 = {
    "licenseNumbers": [
        "1087962"
    ],
    "businessName": "",
    "personnelLastName": "",
    "personnelFirstName": "",
    "hisNumber": "",
    "hisLastName": "",
    "hisFirstName": "",
    "city": "",
    "county": "",
    "zipCode": "",
    "classification": "",
    "licenseStatus": "",
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/cslb-contractor-license-lookup").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 = {
    "licenseNumbers": ["1087962"],
    "businessName": "",
    "personnelLastName": "",
    "personnelFirstName": "",
    "hisNumber": "",
    "hisLastName": "",
    "hisFirstName": "",
    "city": "",
    "county": "",
    "zipCode": "",
    "classification": "",
    "licenseStatus": "",
    "maxResults": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/cslb-contractor-license-lookup").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 '{
  "licenseNumbers": [
    "1087962"
  ],
  "businessName": "",
  "personnelLastName": "",
  "personnelFirstName": "",
  "hisNumber": "",
  "hisLastName": "",
  "hisFirstName": "",
  "city": "",
  "county": "",
  "zipCode": "",
  "classification": "",
  "licenseStatus": "",
  "maxResults": 5
}' |
apify call memo23/cslb-contractor-license-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/cslb-contractor-license-lookup"
        }
    }
}
```

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/oqjSEthNRgoWHcbog/builds/SfDzECZqkn2DTx1gf/openapi.json
