# CSLB California Licensed Contractor Lookup

> CSLB California Licensed Contractor Lookup is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns California licensed contractor records from the CSLB public data portal, filtered by license classification and optionally by county and city, with full business, contact, license, bond, and insurance details.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/b2b/cslb-california?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cslb-california-licensed-contractor-lookup-7334fb5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9xFnr3RY_dxqy1x6QRsu5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cslb-california-licensed-contractor-lookup-7334fb5d
```

Example prompt: Pull me a list of up to 100 CSLB-licensed C-10 electrical contractors in Los Angeles County, California — I need their business names, license numbers, status, and bond and workers' comp insurer info.

## When to prefer this

Use this endpoint when you need structured, paginated access to California CSLB contractor license records — especially when you need bond and workers' comp insurer details alongside license status. It is ideal for compliance verification, contractor vetting, lead generation, or building datasets of licensed California contractors by trade classification. Prefer this over general web search when you need machine-readable, filterable records directly sourced from the CSLB public data portal.

## Known failure modes

- Invalid or unrecognized classification code returns empty or error response
- County name misspelled or formatted incorrectly may return no results
- Large classification categories (e.g. B, C-10) without county filter may be very slow or return truncated results
- Pagination offset beyond total record count returns empty results list
- API returns stale data if CSLB portal has not been recently crawled
- Limit value outside 1-200 range may cause validation error

## How this service works

Pay-per-call company registry, government, legal and B2B data tools for AI agents, from official registers and public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

A paginated JSON response containing a list of California contractor records matching the requested classification and optional county/city filters. Each record includes license number, business name and type, street address, city, zip, state, county, phone number, license issue and expiration dates, license status (e.g. CLEAR), classification codes, bond company name, and workers' compensation insurer name and type. The response also includes total record count, offset, classification, county, data source URL, and timestamp of when data was checked.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "classification"
     ],
     "properties": {
      "city": {
       "type": "string",
       "description": "Keep only this city (exact, case-insensitive)"
      },
      "limit": {
       "type": "string",
       "description": "Contractors to return, 1 to 200 (default 50)"
      },
      "county": {
       "type": "string",
       "description": "California county name, e.g. Los Angeles (recommended for big classes like B or C-10)"
      },
      "offset": {
       "type": "string",
       "description": "Skip this many (paging)"
      },
      "classification": {
       "type": "string",
       "description": "CSLB classification code, e.g. A, B, C-10, C-36, C-61/D-12"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total": 6,
  "county": "Alameda",
  "offset": 0,
  "source": "https://www.cslb.ca.gov/OnlineServices/DataPortal/ListByCounty",
  "checkedAt": "2026-10-23T09:37:34.396Z",
  "contractors": [
   {
    "zip": "94607",
    "city": "OAKLAND",
    "phone": "(510) 864 1025",
    "state": "CA",
    "county": "Alameda",
    "issued": "1986-06-30",
    "status": "CLEAR",
    "address": "333 MARKET ST",
    "expires": "2028-06-30",
    "bondCompany": "WESTERN SURETY COMPANY",
    "businessName": "PARAMOUNT ELEVATOR CORPORATION",
    "businessType": "Corporation",
    "licenseNumber": "494395",
    "classifications": [
     "C11"
    ],
    "workersCompType": "Workers' Compensation Insurance",
    "workersCompInsurer": "INSURANCE COMPANY OF THE WEST"
   },
   {
    "zip": "94544",
    "city": "HAYWARD",
    "phone": "(844) 646 9660",
    "state": "CA",
    "county": "Alameda",
    "issued": "2016-05-03",
    "status": "CLEAR",
    "address": "31673 HAYMAN STREET",
    "expires": "2028-05-31",
    "bondCompany": "WESTERN SURETY COMPANY",
    "businessName": "AMERITEX ELEVATOR WEST LLC",
    "businessType": "Limited Liability",
    "licenseNumber": "1013755",
    "classifications": [
     "C11"
    ],
    "workersCompType": "Workers' Compensation Insurance",
    "workersCompInsurer": "XL INSURANCE AMERICA INC"
   }
  ],
  "classification": "C-11"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cslb-california-licensed-contractor-lookup-7334fb5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
