# California Contractor Licenses Expiring in 30/60/90 Days (`hamsmoothie/ca-licences-expiring`) Actor

California contractors whose CSLB license or workers' comp policy expires in the next 30, 60 or 90 days, with status, bond surety and amount, WC insurer and policy dates, phone and county. Renewal leads for sureties and insurance agents. Pay per result.

- **URL**: https://apify.com/hamsmoothie/ca-licences-expiring.md
- **Developed by:** [Maybe Quark](https://apify.com/hamsmoothie) (community)
- **Categories:** Other, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 expiring 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 Contractor Licenses Expiring in 30/60/90 Days (CSLB)

**California Contractor Licenses Expiring** returns every California contractor whose **CSLB license** or **workers' compensation policy** expires in the next 30, 60, 90 or up to 120 days, as one clean row per licensee: license number, business, trades, city, county, phone, mailing address, license status, the **contractor bond on file** (surety, bond number, amount, dates) and the **workers' comp policy on file** (insurer, policy number, effective and expiration dates). Filter by county and classification, and export CSV, JSON or Excel.

Lookup actors tell you about one license you already know. This one hands you the **renewal list**: everyone coming due, before the date passes.

### Who it is for

- **Workers' comp and commercial insurance agents**: contractors whose WC policy on file expires in the next 30 to 90 days (`expiring: "workersComp"`), with the current insurer and policy number, so you can quote the renewal before it lapses. A contractor whose policy lapses gets suspended.
- **Surety bond producers**: contractors whose license renews in the next 30 to 90 days, with the current surety and bond amount. Renewal time is when a contractor shops the bond, changes entity or moves surety.
- **Renewal, compliance and bookkeeping services**: a contractor whose license expires without a renewal on file cannot legally contract. Reach them while there is still time.
- **Agent and automation builders**: a flat, typed, dated list you can schedule weekly, filter by county and trade, and hand to a CRM, dialer queue or an AI agent that drafts the reminder.

### How many rows to expect

From the CSLB file of October 2026, statewide:

| Window | License expirations | Workers' comp policy expirations |
|---|---:|---:|
| next 30 days | about 4,300 | about 7,000 |
| next 60 days | about 10,800 | about 13,400 |
| next 90 days | about 19,200 | about 26,400 |
| next 120 days | about 28,400 | about 35,200 |

Licenses expire on the last day of a month, so most of a 30-day window lands on one date.

### Input

All fields are optional. This example returns general building contractors in San Diego County whose license expires in the next 30 days:

```json
{
  "days": 30,
  "expiring": "license",
  "counties": ["San Diego"],
  "classes": ["B"],
  "maxResults": 500
}
```

- `days`: expiring between today and today + N days (default 30, up to 120).
- `expiring`: `license` (the CSLB license expiration date, default), `workersComp` (the WC policy on file, insured contractors only, policies with a cancellation on file excluded) or `either`.
- `counties`: California county names. Empty means statewide.
- `classes`: classification codes such as `B`, `C10`, `C36`, `ASB` (`C-10` also works). Empty means all trades.
- `withPhoneOnly`: skip licensees with no business phone.
- `maxResults`: stop after this many rows, soonest expiry first (default 100).

### Output

One row per licensee, soonest expiry first. Sample rows (San Diego County, B class, run 2026-10-24):

| licenseNo | businessName | classifications | city | licenseExpirationDate | daysToLicenseExpiry | licenseStatus | bondSurety | wcCoverage |
|---|---|---|---|---|---:|---|---|---|
| 1045093 | BANNER CONSTRUCTION | B | SAN DIEGO | 2026-10-31 | 7 | CLEAR | JET INSURANCE COMPANY | Exempt |
| 1045103 | PAVLENKO REMODELING INC | B | ENCINITAS | 2026-10-31 | 7 | CLEAR | WESTERN SURETY COMPANY | Exempt |
| 1045317 | PACIFIC COAST KITCHEN & BATH | B, C54 | OCEANSIDE | 2026-10-31 | 7 | CLEAR | ATLANTIC SPECIALTY INSURANCE COMPANY | Workers' Compensation Insurance |

Full example row:

```json
{
  "licenseNo": "1097657",
  "businessName": "MJJB ENVIRONMENTAL CONSTRUCTION",
  "businessType": "Corporation",
  "classifications": "ASB, B, C22, C36",
  "expiringItem": "license and workers comp",
  "licenseExpirationDate": "2026-10-31",
  "daysToLicenseExpiry": 7,
  "wcExpirationDate": "2026-10-27",
  "daysToWcExpiry": 3,
  "licenseStatus": "CLEAR",
  "secondaryStatus": null,
  "city": "SPRING VALLEY",
  "county": "San Diego",
  "zip": "91978",
  "mailingAddress": "2810 VIA ORANGE WAY STE E",
  "phone": "(619) 535 5266",
  "issueDate": "2022-10-13",
  "bondSurety": "AMERICAN CONTRACTORS INDEMNITY COMPANY",
  "bondNumber": "100683764",
  "bondAmount": "25000",
  "bondEffectiveDate": "2023-01-01",
  "bondCancellationDate": null,
  "wcCoverage": "Workers' Compensation Insurance",
  "wcInsurer": "STATE COMPENSATION INSURANCE FUND",
  "wcPolicyNumber": "9327021",
  "wcEffectiveDate": "2023-03-27",
  "url": "https://www2.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=1097657"
}
```

- `expiringItem`: what falls inside your window: `license`, `workers comp`, or both.
- `daysToLicenseExpiry` and `daysToWcExpiry` count from the day you run the actor.
- `bondCancellationDate`: set when the surety has filed a cancellation on the bond. Those contractors are also in the companion bond and workers' comp lapse events actor by the same publisher.
- `url`: the contractor's official CSLB license detail page. Check it before you contact anyone; a renewal posted after the last refresh shows there first.

### For agent builders

Schedule it weekly (the source refreshes twice a week) or call it through the Apify API or Apify's MCP server with the JSON input above. Dates are ISO `YYYY-MM-DD`, and `licenseNo` plus `licenseExpirationDate` (or `wcExpirationDate`) is a stable key for de-duplicating between runs. A good agent prompt: take `workersComp` rows with `daysToWcExpiry` between 20 and 60, group by insurer, and draft one short renewal note per contractor that names the policy date.

### Pricing

Pay per result: each row is one billable result at **$0.01** ($10 per 1,000). The default run returns at most 100 rows ($1). Apify's free plan includes a monthly platform credit, enough to try a few hundred rows before you pay anything. Set a maximum charge on the run for a hard ceiling.

### Limits

- Source: the CSLB public License Master file, downloaded by the publisher about twice a week. A contractor who renewed after the last download can still appear; the CSLB page is the final word.
- The file lists active and suspended licenses only, so licenses that already expired and dropped out are not here.
- Workers' comp rows cover insured contractors only. Exempt contractors (no employees) have no policy date.
- Phones and addresses are the public business contact details from the CSLB file. You are responsible for how you contact these businesses, including the TCPA, CAN-SPAM, the National Do Not Call Registry and California telemarketing rules.
- Public record published by the State of California. This actor is not affiliated with or endorsed by the CSLB.

### FAQ

**Is this the same as a CSLB lookup?** No. A lookup checks one license number. This returns the whole set of licenses or policies coming due in a window, which is what a renewal campaign needs.

**Why is a contractor with a CLEAR status on the list?** Expiring soon is not the same as expired. Most rows are healthy licenses that simply renew this month.

**Can I get contractors whose bond or policy was just cancelled?** Use the companion California contractor bond and workers' comp lapse events actor by the same publisher.

# Actor input Schema

## `days` (type: `integer`):

Return licenses (or workers' comp policies) that expire between today and today + N days. Use 30, 60 or 90; up to 120.

## `expiring` (type: `string`):

license = the CSLB license expiration date; workersComp = the workers' comp policy on file (insured contractors only); either = both.

## `counties` (type: `array`):

California county names, e.g. Los Angeles, San Diego. Empty = statewide.

## `classes` (type: `array`):

License classification codes, e.g. B, C10, C36 (dashes ignored, so C-10 works). Empty = all trades.

## `withPhoneOnly` (type: `boolean`):

Skip licensees with no business phone on file.

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

Stop after this many rows (soonest expiry first). Each row is one billable result.

## Actor input object example

```json
{
  "days": 30,
  "expiring": "license",
  "counties": [],
  "classes": [],
  "withPhoneOnly": false,
  "maxResults": 100
}
```

# Actor output Schema

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

California contractor licenses or workers' comp policies expiring soon, soonest first.

# 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("hamsmoothie/ca-licences-expiring").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("hamsmoothie/ca-licences-expiring").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 hamsmoothie/ca-licences-expiring --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hamsmoothie/ca-licences-expiring"
        }
    }
}
```

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/1X3sNjIb0Ro0JqEmk/builds/e2RJMfu2uGI9lZziB/openapi.json
