# California Contractor License Lookup & Verify (CSLB) (`fried_calamaries/california-contractor-license-lookup`) Actor

Verify any California contractor by license number or name — status, classifications, bond & workers' comp — from the official CSLB registry.

- **URL**: https://apify.com/fried\_calamaries/california-contractor-license-lookup.md
- **Developed by:** [ByteMe](https://apify.com/fried_calamaries) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$0.004 / dataset-item

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

## California Contractor License Lookup & Verify (CSLB)

Look up and verify any California contractor from a single search — type a CSLB license number, a business name, or a person's name and get back the licensed business, status, trade classifications, contractor's bond, and workers' comp, straight from the official CSLB registry. A name search matches both business names AND personnel/owner names (so you find every license a person is listed on), unioned and deduped. Built for fast verification, compliance checks, and enriching a name or license number into a full record.

### How to use

Set the input, run the actor, and collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API). Example input:

```json
{
  "query": "Ransome Company",
  "includeDetails": true,
  "maxResults": 25
}
````

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `license_number` | CSLB license number |
| `business_name` | Licensed business name |
| `name_type` | How the name is held (e.g. DBA) — from name searches |
| `matched_by` | Which search surfaced this match: 'license\_number' or 'business\_name' |
| `status` | License status (e.g. 'Active', 'Expired', or the detail status sentence) |
| `city` | Business city |
| `has_detail` | True when the full license detail was fetched and merged |
| `business_type` | Entity type — Sole Owner, Corporation, LLC, Partnership… (detail) |
| `address` | Business street address (detail) |
| `state` | State (detail) |
| `zip_code` | ZIP code (detail) |
| `phone` | Business phone (detail) |
| `issue_date` | Original license issue date (detail) |
| `expiration_date` | License expiration date (detail) |
| `classifications` | Classification codes held, e.g. \["A","C10"] (detail) |
| `surety_company` | Contractor's bond surety company (detail) |
| `bond_number` | Contractor's bond number (detail) |
| `bond_amount` | Contractor's bond amount (detail) |
| `workers_comp_type` | Workers' comp coverage type — Insurance / Exempt (detail) |
| `workers_comp_company` | Workers' comp insurance carrier (detail) |
| `source_url` | Link to the official CSLB license detail page |

Sample:

```json
{
  "license_number": "22726",
  "business_name": "RANSOME COMPANY",
  "name_type": "DBA",
  "matched_by": "business_name",
  "status": "This license is current and active.",
  "city": "SAN LEANDRO",
  "has_detail": true,
  "business_type": "Corporation",
  "address": "1933 WILLIAMS STREET",
  "state": "CA",
  "zip_code": "94577",
  "phone": "(510) 686-9900",
  "issue_date": "07/01/1932",
  "expiration_date": "10/31/2027",
  "classifications": [
    "A",
    "C10"
  ],
  "surety_company": "HARCO NATIONAL INSURANCE COMPANY",
  "bond_number": "354811",
  "bond_amount": "25,000",
  "workers_comp_type": "Insurance",
  "workers_comp_company": "TRAVELERS PROPERTY CASUALTY COMPANY OF AMERICA",
  "source_url": "https://www.cslb.ca.gov/onlineservices/checklicenseII/LicenseDetail.aspx?LicNum=22726"
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `query` | yes | string | `"22726"` | A CSLB license number (digits only, e.g. '22726') OR a name. Numbers are looked up directly. A name is searched against BOTH the business-name index AND the personnel/owner-name index, and the results are unioned (deduped by license #). For a person, enter 'First Last' (e.g. 'Phil Ransome') or 'Last, First' with a comma. |
| `includeDetails` | no | boolean | `true` | When on (default), each match is enriched with its full license record — entity type, issue/expiry dates, classifications, contractor's bond, and workers' comp. Turn off for a faster, lighter result list (license #, name, city, status only). |
| `maxResults` | no | integer | `50` | Cap on the number of matches returned (and enriched) in a single run. This is a lookup, not a bulk export — defaults to 50. |
| `proxyConfiguration` | no | object | `{"useApifyProxy": false}` | Optional. CSLB is usually reachable directly; enable a proxy (e.g. residential) only if a run is blocked or served a CAPTCHA challenge. |

### Pricing (Pay Per Event)

You pay per result (`dataset-item`) — **no charge for empty runs**. Example: **100 verified license records** at *$0.004/result* ≈ **$0.40**.

Illustrative — the final per-result price is set at publish time. Apify platform usage (compute) is billed separately per your plan.

### Use cases

- License verification & compliance — confirm a contractor's status, classifications, bond, and workers' comp before hiring or onboarding.
- Find every license a person holds or is listed on (RMO/RME/owner) — by personnel/owner name, even under different business names.
- Enrich a license number or a name into a full, structured record for your CRM, marketplace, or vetting workflow.
- Due diligence for lenders, insurers, and platforms that need authoritative CSLB data on demand.

### Limitations & updates

Covers California's CSLB public registry only (public record under Business & Professions Code §7000 et seq.). Results reflect the live registry and change as it updates. A name search unions the business-name and personnel/owner-name indexes; personnel matches return the licenses a person is currently associated with. Runs are bounded (default 50 results) — refine a broad name to narrow it.

### Which actor to choose

Part of the California CSLB contractor suite — pick the one that fits your goal:

- **California Contractor Directory by Trade & County (CSLB)** — You want a bulk lead list — every licensed contractor of a given trade (classification) in a county, in one run.
- **California Contractor License Lookup & Verify (CSLB)** *(this actor)* — You want to verify or look up specific contractors — by license number, business name, or a person's name (owner/personnel).

# Actor input Schema

## `query` (type: `string`):

A CSLB license number (digits only, e.g. '22726') OR a name. Numbers are looked up directly. A name is searched against BOTH the business-name index AND the personnel/owner-name index, and the results are unioned (deduped by license #). For a person, enter 'First Last' (e.g. 'Phil Ransome') or 'Last, First' with a comma.

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

When on (default), each match is enriched with its full license record — entity type, issue/expiry dates, classifications, contractor's bond, and workers' comp. Turn off for a faster, lighter result list (license #, name, city, status only).

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

Cap on the number of matches returned (and enriched) in a single run. This is a lookup, not a bulk export — defaults to 50.

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

Optional. CSLB is usually reachable directly; enable a proxy (e.g. residential) only if a run is blocked or served a CAPTCHA challenge.

## Actor input object example

```json
{
  "query": "22726",
  "includeDetails": true,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `matches` (type: `string`):

The matched licenses — status, classifications, bond and workers' comp when enriched.

# 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 = {
    "query": "22726"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fried_calamaries/california-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 = { "query": "22726" }

# Run the Actor and wait for it to finish
run = client.actor("fried_calamaries/california-contractor-license-lookup").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 '{
  "query": "22726"
}' |
apify call fried_calamaries/california-contractor-license-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fried_calamaries/california-contractor-license-lookup",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "California Contractor License Lookup & Verify (CSLB)",
        "description": "Verify any California contractor by license number or name — status, classifications, bond & workers' comp — from the official CSLB registry.",
        "version": "0.1",
        "x-build-id": "VmteeApnTNBU7pz1C"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fried_calamaries~california-contractor-license-lookup/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fried_calamaries-california-contractor-license-lookup",
                "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/fried_calamaries~california-contractor-license-lookup/runs": {
            "post": {
                "operationId": "runs-sync-fried_calamaries-california-contractor-license-lookup",
                "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/fried_calamaries~california-contractor-license-lookup/run-sync": {
            "post": {
                "operationId": "run-sync-fried_calamaries-california-contractor-license-lookup",
                "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",
                "required": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "A CSLB license number (digits only, e.g. '22726') OR a name. Numbers are looked up directly. A name is searched against BOTH the business-name index AND the personnel/owner-name index, and the results are unioned (deduped by license #). For a person, enter 'First Last' (e.g. 'Phil Ransome') or 'Last, First' with a comma."
                    },
                    "includeDetails": {
                        "title": "Include full license detail",
                        "type": "boolean",
                        "description": "When on (default), each match is enriched with its full license record — entity type, issue/expiry dates, classifications, contractor's bond, and workers' comp. Turn off for a faster, lighter result list (license #, name, city, status only).",
                        "default": true
                    },
                    "maxResults": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Cap on the number of matches returned (and enriched) in a single run. This is a lookup, not a bulk export — defaults to 50.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional. CSLB is usually reachable directly; enable a proxy (e.g. residential) only if a run is blocked or served a CAPTCHA challenge.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
