# California CSLB Contractor License Search and Bond Data (`dataforge_api/ca-cslb-contractors-ppe`) Actor

Search the California CSLB contractor registry by business name or license number. Get license status, classification, bond company and amount, workers' comp, address, phone (when published) and expiry date. Pay only per saved record.

- **URL**: https://apify.com/dataforge_api/ca-cslb-contractors-ppe.md
- **Developed by:** [DataForge Lab](https://apify.com/dataforge_api) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00 / 1,000 california 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

## California CSLB Contractor License Search

Look up California contractors in the public CSLB (Contractors State License Board) registry and export license status, classification, bond and insurance details as structured data. No login, no API key.

### Who it is for and why

1. **Lead generation for building suppliers and tool distributors.** Search a name keyword or trade term and build a list of licensed California contractors with business name, address and phone (where the registry shows one).
2. **Subcontractor and vendor vetting.** Check that a contractor's license is active, which classifications it holds and when it expires before you sign or pay.
3. **Surety, insurance and bonding sales.** See the bond company, bond amount and workers' comp information already on file, and find licensees whose bond or license is close to expiry.
4. **Market mapping and analytics.** Count licensees by name pattern, classification or entity type to size a local trade market.

### Example input

```json
{
  "queries": ["Pacific", "670019"],
  "maxResults": 100,
  "maxResultsPerQuery": 50,
  "concurrency": 2
}
```

`queries` accepts business-name search terms or exact CSLB license numbers (digits only).

### Example output

```json
{
  "license_or_permit_id": "670019",
  "business_legal_name": "EXAMPLE PACIFIC CONSTRUCTION INC",
  "status": "Active",
  "classification_or_type": "B - General Building Contractor",
  "bond_company": "Example Surety Company",
  "bond_or_valuation_usd": 25000,
  "address_city_state": "Sacramento, CA",
  "phone": "(916) 555-0100",
  "expire_date": "2027-03-31",
  "source_registry": "California CSLB Active Contractors Registry"
}
```

Illustrative values; real records follow the same fields. A field is omitted when the registry does not publish it. Other fields you may get: `dba_name`, `workers_comp_or_owner`, `effective_or_issue_date`, `entity_type`, `status_full`, `name_type`, `source_url`.

### Limitations

- CSLB returns at most 50 licenses per name search, so broad terms need several queries; use more specific keywords to go deeper.
- Search is by business name or license number only. There is no filter by city, ZIP or classification.
- No email addresses. Phone numbers appear only when CSLB publishes one.
- Data is a live lookup of the public registry, not a downloadable copy of the full database.
- Licensing data is public information, but you are responsible for how you use contact data (marketing and privacy rules in your jurisdiction).

### Pricing

Pay per event `ca-cslb-contractors-record`: $0.008 per saved record (about $8.00 per 1,000). Empty searches are not charged.

# Actor input Schema

## `queries` (type: `array`):

Contractor business-name search terms (e.g. "Pacific") or exact CSLB license numbers (digits only, e.g. "670019").

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

Hard cap on records saved (and billed) across all queries.

## `maxResultsPerQuery` (type: `integer`):

CSLB returns at most 50 licenses per name search.

## `concurrency` (type: `integer`):

Number of search queries processed in parallel.

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

Apify Proxy settings. A fresh IP is used for each query.

## Actor input object example

```json
{
  "queries": [
    "Pacific"
  ],
  "maxResults": 50,
  "maxResultsPerQuery": 50,
  "concurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

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

No description

# 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("dataforge_api/ca-cslb-contractors-ppe").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("dataforge_api/ca-cslb-contractors-ppe").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 '{}' |
apify call dataforge_api/ca-cslb-contractors-ppe --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataforge_api/ca-cslb-contractors-ppe"
        }
    }
}
```

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/3ITJwhcqdxQNQ9Mru/builds/fZAbqwPyd4R9ir2l3/openapi.json
