# US Contractor Licensing Boards Intelligence & Verifier (`divy4/us-contractor-license-verifier`) Actor

Live HTTP scraper and monitoring engine for California CSLB, Florida DBPR, and Texas TDLR contractor licenses. Verify active status, workers' compensation, surety bonds, and personnel with zero browser overhead.

- **URL**: https://apify.com/divy4/us-contractor-license-verifier.md
- **Developed by:** [Divyanshu Rana](https://apify.com/divy4) (community)
- **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 verified records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## US Contractor Licensing Board Intelligence & Verifier (CSLB & DBPR)

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-blue.svg)](https://apify.com/store)
[![Pricing](https://img.shields.io/badge/Pricing-Pay--Per--Event%20\($2.00%2F1k\)-brightgreen.svg)](https://apify.com/pricing)
[![MCP Ready](https://img.shields.io/badge/MCP-AI%20Agent%20Ready-purple.svg)](https://mcp.apify.com)
[![Pure HTTP](https://img.shields.io/badge/Architecture-100%25%20Pure%20HTTP-orange.svg)](#architecture)

> **The premier high-speed, zero-browser intelligence engine for US contractor verification.** Verify California (CSLB) and Florida (DBPR) contractor licenses in real time. Track active statuses, workers' compensation insurance policies, statutory surety bonds, qualifiers, and disciplinary actions with 100% pure HTTP efficiency.

***

### ⚡ Why Use This Actor?

Verifying commercial and residential contractors across state government portals is traditionally slow, brittle, and expensive. Legacy scrapers rely on heavy headless browsers (Puppeteer/Playwright) that take 10+ seconds to boot, consume gigabytes of RAM, cost $8–$15 per 1,000 items, and frequently break on complex ASP.NET Web Forms and ViewState tokens.

**US Contractor Licensing Board Intelligence & Verifier** solves this with an ultra-optimized, reverse-engineered HTTP engine:

- **100% Pure HTTP Architecture**: Operates without headless browsers. Sub-second response times (100–300 ms per record) using lightweight TLS fingerprints.
- **Complete Regulatory Audit**: Extracts primary license status, class codes (e.g. `B`, `C-10`, `C-36`, `CGC`), workers' comp coverage, policy carriers, surety bond limits, RMO/personnel, and disciplinary citations.
- **Pay-Per-Event (PPE) Pricing**: Pay only for the actual verified records you receive ($0.002 per result). Zero compute-time surprises.
- **Stateful Delta Sync (`onlyNew` Mode)**: Run on a daily cron schedule to monitor your contractor watchlist. The Actor only emits records with status changes, policy expirations, or new filings.
- **AI Agent & MCP Native**: Engineered to pass 100% of Apify Model Context Protocol (MCP) standards for autonomous use in Claude Desktop, Cursor, n8n, and LangChain pipelines.

***

### 🏛️ Supported Licensing Boards

| State | Regulatory Authority | Registry Code | Key Capabilities |
| :--- | :--- | :--- | :--- |
| **California** | Contractors State License Board (CSLB) | `CA_CSLB` | Active status, Class A/B/C codes, $25,000 statutory bond compliance (SB 607), State Comp Insurance Fund & private carriers, RMO/qualifiers, citations |
| **Florida** | Dept. of Business & Professional Regulation (DBPR) | `FL_DBPR` | Certified General (CGC), Building (CBC), Electrical (EC), Air Conditioning (CAC), Plumbing (CFC), workers' comp exemptions & policies |
| **Texas** | Dept. of Licensing & Regulation (TDLR) | `TX_TDLR` | Air conditioning, electrical, and commercial contractor verification (Roadmap v1.2) |

***

### 💰 Pay-Per-Event (PPE) Pricing

This Actor utilizes transparent, predictable Pay-Per-Event billing:

| Billing Event | Cost | Description |
| :--- | :--- | :--- |
| **Actor Start (`apify-actor-start`)** | **$0.005** | Charged once per successful execution run after input validation. |
| **Dataset Item (`apify-default-dataset-item`)** | **$0.002** | **$2.00 per 1,000 verified records**. You only pay for clean, structured contractor records returned. |

*No compute-time charges. Zero browser rental fees. Unsuccessful parameter validations are charged $0.00.*

***

### 🎯 5 Pre-Configured Task Examples

Save time with these ready-to-use search profiles designed for high-conversion industry workflows:

#### Task 1: California General Building Contractors (CSLB Active Sync)

Sync active Class B General Building Contractors in California for supply-chain onboarding or vendor vetting.

```json
{
  "states": ["CALIFORNIA"],
  "licenseClassifications": ["B"],
  "statusFilter": ["ACTIVE"],
  "maxItems": 100
}
```

#### Task 2: Florida Electrical & Mechanical Contractor Verification

Audit Florida licensed electrical (EC) and certified HVAC/air conditioning (CAC) contractors.

```json
{
  "states": ["FLORIDA"],
  "licenseClassifications": ["EC", "CAC"],
  "statusFilter": ["ACTIVE"],
  "maxItems": 100
}
```

#### Task 3: California High-Risk Expiration & Bond Audit

Screen California contractors to identify expired licenses, lapsed surety bonds, or disciplinary actions.

```json
{
  "states": ["CALIFORNIA"],
  "statusFilter": ["EXPIRED", "SUSPENDED"],
  "maxItems": 50
}
```

#### Task 4: Commercial Direct License Lookup

Direct batch verification of specific contractor license numbers across California and Florida.

```json
{
  "states": ["CALIFORNIA", "FLORIDA"],
  "licenseNumbers": ["1087654", "CGC1524312"],
  "maxItems": 50
}
```

#### Task 5: Daily Stateful Watchlist Monitor (`onlyNew`)

Monitor an ongoing subcontractor panel daily. Only records that have changed status, expired, or lapsed insurance since the previous run are emitted.

```json
{
  "states": ["CALIFORNIA"],
  "licenseNumbers": ["1087654", "987452", "1023941"],
  "onlyNew": true,
  "stateStoreName": "SUB-CONTRACTOR-WATCHLIST-2026"
}
```

***

### 📊 Output Dataset JSON Schema

Each item emitted into the default dataset strictly adheres to the following normalized structure:

```json
{
  "registry": "CA_CSLB",
  "licenseNumber": "1087654",
  "businessName": "PACIFIC CREST BUILDERS INC",
  "entityType": "Corporation",
  "status": "ACTIVE",
  "isExpired": false,
  "licenseClassifications": [
    { "code": "B", "description": "General Building Contractor" },
    { "code": "C-10", "description": "Electrical Contractor" }
  ],
  "state": "CALIFORNIA",
  "city": "SAN JOSE",
  "zipCode": "95125",
  "issueDate": "2018-04-12",
  "expirationDate": "2027-04-30",
  "workersComp": {
    "status": "COVERED",
    "carrierName": "STATE COMPENSATION INSURANCE FUND",
    "policyNumber": "9182736-24",
    "expirationDate": "2027-01-01"
  },
  "suretyBond": {
    "amount": 25000,
    "bondingCompany": "AMERICAN CONTRACTORS INDEMNITY COMPANY",
    "bondNumber": "AC109842"
  },
  "personnel": [
    { "name": "ANDERSON, MARK EDWARD", "title": "RMO (Responsible Managing Officer)" }
  ],
  "disciplinaryActions": false,
  "disciplinaryDetails": [],
  "lastUpdatedTimestamp": "2026-11-18T14:30:00.000Z",
  "sourceUrl": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=1087654"
}
```

***

### 🔄 Stateful Delta Sync (`onlyNew` Mode)

Setting `"onlyNew": true` activates cryptographic SHA-256 state tracking powered by Apify Named Key-Value Stores:

1. On each run, the Actor calculates a deterministic fingerprint of every record's license status, expiration date, workers' comp policy number, and bond status.
2. If the fingerprint matches the previous run, the record is skipped, saving you dataset and storage costs.
3. If a contractor's license is suspended, expires, or alters coverage, the updated record is immediately pushed to the dataset.
4. Customize your tracking cohorts by specifying `"stateStoreName": "PROJECT-ALPHA-VENDORS"`.

***

### 🤖 AI Agent & MCP Integration (`mcp.apify.com`)

This Actor is engineered to be 100% compatible with the **Apify Model Context Protocol (MCP) Server**:

- **Array-First Targets**: AI agents can submit batches of license numbers or states in a single tool call.
- **Zero Login Friction**: No API keys, credentials, or session cookies required.
- **Compact Schema**: All property descriptions are under 500 characters, preventing prompt truncation in LLM tool wrappers.

#### Connect to Claude Desktop or Cursor:

Add this Actor to your MCP configuration:

```json
{
  "mcpServers": {
    "apify": {
      "type": "http",
      "url": "https://mcp.apify.com/?client=cursor"
    }
  }
}
```

Ask Claude:

> *"Verify whether Pacific Crest Builders Inc in California has active workers' compensation insurance and an active CSLB license using the US Contractor Verifier Actor."*

***

### 🔗 n8n & Automated Workflow Integration

Automate vendor risk audits by integrating this Actor with **n8n**, **Make.com**, or custom webhooks.

#### Pre-Built n8n Automation Template:

Download or clone the pre-wired workflow:
`https://github.com/apify-templates/n8n-us-contractor-license-monitor`

```
[Cron Trigger: 07:00 AM Daily]
          │
          ▼
[Apify Actor: us-contractor-license-verifier]
  Input: { states: ["CALIFORNIA"], onlyNew: true }
          │
          ▼
[IF Node: workersComp.status != "COVERED" OR isExpired == true]
     ├── True ──► [Slack Alert / PagerDuty / CRM Lead Update]
     └── False ─► [Log Clean Record]
```

***

### 🛡️ Architecture & Low-Cost Reliability

- **No Brotli Corruption**: Automatically strips `br` from `Accept-Encoding` headers to prevent proxy byte decompression crashes.
- **Silent Failure Prevention**: Every HTTP response is validated against WAF and challenge signatures before parsing.
- **Zero-Charge Fail-Fast**: If invalid parameters are supplied, the run aborts before triggering billing events.
- **Categorized Error Telemetry**: Runtime errors are classified into `ProxyError`, `RateLimitError`, `BlockedError`, and `ParserError` for instant troubleshooting.

***

### 📞 Support & Issue SLA

Need a custom state registry added or encounter a portal change?

- **Issue SLA**: Monitored daily with fixes deployed within 12 hours.
- Open an issue on the Apify Console or reach out via community discussion.

# Actor input Schema

## `states` (type: `array`):

Target licensing boards to query. Supports CALIFORNIA (CSLB), FLORIDA (DBPR), and TEXAS (TDLR).

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

Array of state license numbers to verify directly (e.g. \['1087654', 'CGC1524312', '32189']).

## `businessNames` (type: `array`):

List of company or contractor legal names to search.

## `licenseClassifications` (type: `array`):

Class codes to filter (e.g. \['B', 'C-10', 'C-36', 'CGC']).

## `statusFilter` (type: `array`):

Filter by license status (e.g. \['ACTIVE', 'EXPIRED', 'SUSPENDED']).

## `onlyNew` (type: `boolean`):

Only records with status or policy changes since the last run will be emitted.

## `stateStoreName` (type: `string`):

Optional named Key-Value Store for custom watchlist tracking.

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

Safety cap on total records scraped to preserve credits.

## Actor input object example

```json
{
  "states": [
    "CALIFORNIA"
  ],
  "statusFilter": [
    "ACTIVE"
  ],
  "onlyNew": false,
  "maxItems": 50
}
```

# Actor output Schema

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

Dataset containing verified contractor licenses, workers' compensation insurance, surety bonds, and personnel records.

# 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 = {
    "states": [
        "CALIFORNIA"
    ],
    "statusFilter": [
        "ACTIVE"
    ],
    "onlyNew": false,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("divy4/us-contractor-license-verifier").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 = {
    "states": ["CALIFORNIA"],
    "statusFilter": ["ACTIVE"],
    "onlyNew": False,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("divy4/us-contractor-license-verifier").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 '{
  "states": [
    "CALIFORNIA"
  ],
  "statusFilter": [
    "ACTIVE"
  ],
  "onlyNew": false,
  "maxItems": 50
}' |
apify call divy4/us-contractor-license-verifier --silent --output-dataset

```

## MCP server setup

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

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/XzoRzfwpUy1qybqGP/builds/xFH4FTsHheQJgelv5/openapi.json
