# Contractor License Verification - CA, TX, FL, NY (`lulzasaur/contractor-license-scraper`) Actor

Verify contractor licenses across 4 US states. Search by license number, name, or business. Returns license status, expiration, classifications, bonding, and contact info from official state boards.

- **URL**: https://apify.com/lulzasaur/contractor-license-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 16 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 results

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

## Contractor License Verification

Apify Actor that verifies contractor licenses across 4 US states by querying official state licensing boards. Returns license status, expiration, classifications, bonding info, and contact details.

### Supported States

| State | Source | Method |
|-------|--------|--------|
| **CA** | CSLB (Contractors State License Board) | HTML scraping (ASP.NET) |
| **TX** | TDLR (Dept of Licensing and Regulation) | HTML scraping (Classic ASP) |
| **FL** | DBPR (Dept of Business and Professional Regulation) | HTML scraping (Classic ASP) |
| **NY** | NYC DOB + DCWP (Open Data APIs) | JSON API (no scraping) |

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `state` | string | Yes | `CA`, `TX`, `FL`, or `NY` |
| `searchType` | string | Yes | `licenseNumber`, `name`, or `businessName` |
| `licenseNumber` | string | For license search | License number (e.g., `1096738` for CA) |
| `lastName` | string | For name search | Person's last name |
| `firstName` | string | No | Person's first name |
| `businessName` | string | For business search | Company or business name |
| `maxResults` | integer | No | Max results (default: 25) |

#### Example: Verify a CA license

```json
{
    "state": "CA",
    "searchType": "licenseNumber",
    "licenseNumber": "1096738"
}
```

#### Example: Search FL contractors by business name

```json
{
    "state": "FL",
    "searchType": "businessName",
    "businessName": "ABC Construction"
}
```

### Output Fields

| Field | Description |
|-------|-------------|
| `state` | State code (CA, TX, FL, NY) |
| `source` | Data source (CSLB, TDLR, DBPR, NYC_DOB, NYC_DCWP) |
| `licenseNumber` | License or registration number |
| `businessName` | Business/company name |
| `personName` | Individual licensee name |
| `licenseStatus` | Active, Expired, Suspended, Revoked, etc. |
| `licenseType` | License classification |
| `expirationDate` | License expiration date |
| `issueDate` | Original issue date |
| `city`, `stateCode`, `zip` | Location |
| `phone` | Business phone |
| `scrapedAt` | Timestamp of data retrieval |

Additional fields vary by state (CA includes bonding/workers comp, TX includes county, NY includes geo coordinates).

***

### Run on Apify

This scraper runs on the [Apify platform](https://apify.com/?fpr=lulzasaur) — a full-stack web scraping and automation cloud. Sign up for a free account to get started with 30-day trial of all features.

[Try Apify free →](https://apify.com/?fpr=lulzasaur)

### Related Scrapers

More marketplace scrapers and data tools by [lulzasaur](https://apify.com/lulzasaur):

- [AbeBooks Scraper](https://apify.com/lulzasaur/abebooks-scraper) — Rare and used books
- [Bonanza Scraper](https://apify.com/lulzasaur/bonanza-scraper) — Online marketplace listings
- [Craigslist Scraper](https://apify.com/lulzasaur/craigslist-scraper) — Classifieds and for-sale posts
- [Goodreads Scraper](https://apify.com/lulzasaur/goodreads-scraper) — Book ratings and reviews
- [Grailed Scraper](https://apify.com/lulzasaur/grailed-scraper) — Luxury fashion resale
- [Houzz Scraper](https://apify.com/lulzasaur/houzz-scraper) — Home improvement professionals
- [IMDb Scraper](https://apify.com/lulzasaur/imdb-scraper) — Movie and TV show data
- [Nurse License Verifier](https://apify.com/lulzasaur/nurse-license-scraper) — State nursing board verification
- [OfferUp Scraper](https://apify.com/lulzasaur/offerup-scraper) — Local marketplace listings
- [Poshmark Scraper](https://apify.com/lulzasaur/poshmark-scraper) — Fashion resale marketplace
- [PSA Population Report](https://apify.com/lulzasaur/psa-pop-scraper) — Card grading data
- [Redfin Scraper](https://apify.com/lulzasaur/redfin-scraper) — Real estate listings and prices
- [Reverb Scraper](https://apify.com/lulzasaur/reverb-scraper) — Music gear marketplace
- [StubHub Scraper](https://apify.com/lulzasaur/stubhub-scraper) — Event ticket prices
- [Swappa Scraper](https://apify.com/lulzasaur/swappa-scraper) — Used electronics marketplace
- [TCGPlayer Scraper](https://apify.com/lulzasaur/tcgplayer-scraper) — Trading card prices
- [ThriftBooks Scraper](https://apify.com/lulzasaur/thriftbooks-scraper) — Used book prices
- [Thumbtack Scraper](https://apify.com/lulzasaur/thumbtack-scraper) — Local service professionals

# Actor input Schema

## `state` (type: `string`):

US state to search. 11 states supported via official licensing boards and open data APIs.

## `searchType` (type: `string`):

How to search. 'licenseNumber' for exact lookup, 'name' for person name, 'businessName' for company search.

## `licenseNumber` (type: `string`):

License number to look up (e.g., '1096738' for CA, 'ELECTR00020002' for TX, 'CGC1507744' for FL).

## `lastName` (type: `string`):

Last name for person name search.

## `firstName` (type: `string`):

First name for person name search (optional).

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

Business or company name to search for.

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

Maximum number of results to return. Only applies to name/business searches.

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

Proxy settings. Not required for government sites but recommended for large-scale runs.

## Actor input object example

```json
{
  "state": "NY",
  "searchType": "businessName",
  "licenseNumber": "1096738",
  "businessName": "plumbing",
  "maxResults": 25,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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("lulzasaur/contractor-license-scraper").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("lulzasaur/contractor-license-scraper").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 lulzasaur/contractor-license-scraper --silent --output-dataset

```

## MCP server setup

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

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/KvGAhCk0ayW51Wn2d/builds/FjUhs3CbmyGTjdZ2V/openapi.json
