California CSLB Contractor Scraper avatar

California CSLB Contractor Scraper

Pricing

from $3.99 / 1,000 results

Go to Apify Store
California CSLB Contractor Scraper

California CSLB Contractor Scraper

Scrape public California Contractors State License Board records by license number or supplied CSLB result URLs.

Pricing

from $3.99 / 1,000 results

Rating

0.0

(0)

Developer

Coding Frontned

Coding Frontned

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

What this Actor does

This Actor looks up publicly available California contractor license records from the Contractors State License Board (CSLB). Enter exact license numbers, supply public CSLB page URLs, or combine both. Each page can produce at most one contractor record; the Actor does not expand result lists or paginate city, ZIP code, or classification searches.

The records can help with contractor license checks, business directory updates, and licensing research. The Actor reads public pages and does not bypass access challenges, CAPTCHAs, or rate limits.

For an exact license lookup, the Actor submits CSLB's public search form and opens the resulting license detail page in the same session. It collects the business address and phone, entity type, license status and dates, classifications, bonding information, workers' compensation, and notices when shown. Bond and insurance history links are included when available; the linked history pages are not collected separately.

How to run it

  1. Open the Actor and select the Input tab.
  2. Enter one or more license numbers, add public CSLB URLs, or use both fields. At least one valid lookup target is needed.
  3. Adjust the optional limits if needed, then select Start.
  4. When the run finishes, open Results for contractor records. Use Output summary to see the run status and saved-record count.
  5. You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Input fields

The schema marks each field as optional. At run time, provide at least one license number or CSLB page URL; an empty input, or an input that produces no valid records, ends as a failed run.

Lookup targets

FieldTypeRequired?DefaultWhat it does
licenseNumbersArray of textOptional; one source field is required at run time[]Exact California license numbers, each 1 to 8 digits. Repeated numbers are removed.
startUrlsArray of objects with a url fieldOptional; one source field is required at run time[]Public HTTPS pages on cslb.ca.gov or www.cslb.ca.gov. Each URL is inspected as one page and may produce at most one record.

When both fields are supplied, the Actor processes the URL list first and then the generated license-number lookups. Exact duplicate URLs are removed, and duplicate license records are saved once. A search results page is not expanded into every result.

Advanced settings (Developer Options)

FieldTypeRequired?DefaultWhat it does
maxItemsIntegerOptional25Maximum number of lookup pages and records to process. Bounds: 1 to 250.
requestDelayMsIntegerOptional150Wait time between lookup pages in milliseconds. Bounds: 0 to 5000.
timeoutSecsIntegerOptional30Timeout for each CSLB request in seconds. Bounds: 5 to 120. A license-number lookup can make more than one request.
maxRetriesIntegerOptional1Retries for transient timeouts or upstream server errors. Bounds: 0 to 3. Access challenges and rate-limit responses are not retried.

The Actor does not support business-name searches, custom filters, sorting, pagination controls, or alternate field names. If a lookup page is empty, blocked, or cannot be parsed, it does not create a placeholder row.

Copyable input examples

Look up exact license numbers

{
"licenseNumbers": ["1234567", "7654321"],
"maxItems": 2
}

Use multiple public CSLB URLs and an exact number

{
"startUrls": [
{ "url": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=1234567" },
{ "url": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=7654321" }
],
"licenseNumbers": ["1234567"],
"maxItems": 3
}

The repeated license may be requested through both input fields, but its business record is saved once.

Set request pacing and retry limits

{
"licenseNumbers": ["1234567"],
"maxItems": 1,
"requestDelayMs": 500,
"timeoutSecs": 45,
"maxRetries": 2
}

Output fields

Each dataset item is a CSLB business record. Only the three identity fields below are required; other fields are omitted when the source does not provide a usable value.

FieldTypeRequired?Meaning
licenseNumberTextRequiredCalifornia contractor license number.
businessNameTextRequiredBusiness name listed on the CSLB record.
addressObjectOptionalPublic address components: line1, line2, city, state, and postalCode. Each component is optional.
businessPhoneTextOptionalPublic business phone number.
entityTypeTextOptionalBusiness entity type displayed by CSLB.
licenseStatusTextOptionalLicense status displayed by CSLB.
additionalStatusArray of textOptionalAdditional license status notices.
classificationsArray of objectsOptionalClassification entries with code, name, and official CSLB url when present.
issueDateDate textOptionalLicense issue date in YYYY-MM-DD format.
expirationDateDate textOptionalLicense expiration date in YYYY-MM-DD format.
bondingObjectOptionalcontractor bond details and qualifyingIndividual bond status or dates, when listed.
workersCompensationObjectOptionalStatus, effective/cancellation/expiration dates, non-date expiration text, and history URL when available. A date and non-date expiration value are alternatives.
miscellaneousActionsArray of textOptionalMiscellaneous action notices on the license record.
detailUrlURL textRequiredOfficial CSLB license detail page for the record.
sourceCurrentAsOfTextOptionalCurrent-as-of text shown by CSLB on the source record. This is source text, not the Actor's scrape time.

Every nested field is optional. The bonding.contractor object can include suretyName, bondNumber, amount, currency, effectiveDate, cancellationDate, and historyUrl. The bonding.qualifyingIndividual object can include status, effectiveDate, and cancellationDate. Workers’ compensation expiration is returned as expirationDate when it parses as a date, or as expirationStatus when CSLB displays non-date text.

All date fields use YYYY-MM-DD text.

FieldTypeRequired?Meaning
address.line1TextOptionalFirst address line.
address.line2TextOptionalAdditional address line.
address.cityTextOptionalCity.
address.stateTextOptionalState or territory abbreviation.
address.postalCodeTextOptionalPostal code.
classifications[].codeTextOptionalCSLB classification code.
classifications[].nameTextOptionalClassification name.
classifications[].urlURL textOptionalOfficial CSLB classification details link.
bonding.contractor.suretyNameTextOptionalContractor bond surety company.
bonding.contractor.bondNumberTextOptionalContractor bond number.
bonding.contractor.amountNumberOptionalParsed bond amount.
bonding.contractor.currencyTextOptionalCurrency inferred from the amount symbol (USD, EUR, or GBP).
bonding.contractor.effectiveDateDate textOptionalContractor bond effective date.
bonding.contractor.cancellationDateDate textOptionalContractor bond cancellation date.
bonding.contractor.historyUrlURL textOptionalCSLB contractor bond history link.
bonding.qualifyingIndividual.statusTextOptionalQualifying individual bond status text.
bonding.qualifyingIndividual.effectiveDateDate textOptionalQualifying individual bond effective date.
bonding.qualifyingIndividual.cancellationDateDate textOptionalQualifying individual bond cancellation date.
workersCompensation.statusTextOptionalWorkers’ compensation status text.
workersCompensation.effectiveDateDate textOptionalCoverage effective date.
workersCompensation.cancellationDateDate textOptionalCoverage cancellation date.
workersCompensation.expirationDateDate textOptionalExpiration date when the source value is a date.
workersCompensation.expirationStatusTextOptionalNon-date expiration text, used instead of expirationDate.
workersCompensation.historyUrlURL textOptionalCSLB workers’ compensation history link.

Illustrative dataset items

The values and links below are illustrative and are not verified live CSLB results. The second item shows the alternate non-date workers’ compensation expiration value; a real workers’ compensation object uses either expirationDate or expirationStatus. Optional fields may be absent from actual records.

[
{
"licenseNumber": "1234567",
"businessName": "Example California Builders LLC",
"address": {
"line1": "100 Example Street",
"line2": "Suite 200",
"city": "Sacramento",
"state": "CA",
"postalCode": "95814"
},
"businessPhone": "(916) 555-0100",
"entityType": "Limited Liability Company",
"licenseStatus": "Active",
"additionalStatus": ["Example status notice"],
"classifications": [
{
"code": "B",
"name": "General Building Contractor",
"url": "https://www.cslb.ca.gov/About_Us/Library/Licensing_Classifications/Licensing_Classifications_Detail.aspx?Class=B"
}
],
"issueDate": "2024-01-15",
"expirationDate": "2027-01-31",
"bonding": {
"contractor": {
"suretyName": "Example Surety Company",
"bondNumber": "EX-12345",
"amount": 25000,
"currency": "USD",
"effectiveDate": "2025-01-01",
"cancellationDate": "2026-01-01",
"historyUrl": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/BondingHistory.aspx?LicNum=1234567"
},
"qualifyingIndividual": {
"status": "Example qualifying individual bond status",
"effectiveDate": "2025-01-01",
"cancellationDate": "2026-01-01"
}
},
"workersCompensation": {
"status": "Example coverage status",
"effectiveDate": "2025-01-01",
"cancellationDate": "2026-01-01",
"expirationDate": "2026-12-31",
"historyUrl": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/WCHistory.aspx?LicNum=1234567"
},
"miscellaneousActions": ["Example action notice"],
"detailUrl": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=1234567",
"sourceCurrentAsOf": "October 7, 2026"
},
{
"licenseNumber": "7654321",
"businessName": "Example Electrical Services Inc",
"workersCompensation": {
"status": "Example coverage status",
"expirationStatus": "No expiration date shown"
},
"detailUrl": "https://www.cslb.ca.gov/OnlineServices/CheckLicenseII/LicenseDetail.aspx?LicNum=7654321"
}
]

Run status and output summary

  • Succeeded: at least one valid contractor record was saved and collection completed normally.
  • Succeeded with limited results: at least one record was saved, then a later lookup or dataset write failed.
  • Failed: no real contractor record was saved, including empty, blocked, invalid, or diagnostic-only outcomes.

Reaching the requested maxItems limit is normal completion and does not make a run partial by itself.

The separate Output summary link opens OUTPUT_SUMMARY in the run’s default Key-value store. It contains only the status, count of acknowledged dataset writes, and whether collection was partial. It is not a contractor dataset item.

Illustrative completed-run summary

{
"status": "SUCCEEDED",
"itemsStored": 25,
"isPartial": false
}
FieldTypeRequired?Meaning
statusTextRequiredSUCCEEDED when at least one real record was saved; otherwise FAILED.
itemsStoredNonnegative integerRequiredNumber of valid contractor records whose dataset writes completed.
isPartialBooleanRequiredtrue when a later failure stopped collection after real records were saved.

Tips, access, cost, and support

  • Use exact license numbers for direct lookups. A supplied page URL is treated as one page, so a general search page may not yield a contractor record.
  • CSLB availability, page changes, access challenges, and rate limits can affect results. The Actor stops when access is blocked and does not attempt to bypass those controls.
  • The Actor does not specify a per-record price. Charges depend on your Apify account plan and run resource use; check the current pricing shown in your Apify Console.
  • Use the API tab for programmatic access and the Actor’s Issues tab for support or feedback.
  • CSLB records are public business licensing information. Follow CSLB’s website terms and use the results only for an appropriate purpose.