# Scrapebench CA Contractor Directory

> Scrapebench CA Contractor Directory is a paid API for AI agents from api.scrapebench.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-20).

Lists all California-licensed contractors in a specified trade classification and county, returning licence status, address, phone, bond, and workers' comp data scraped live from the CSLB public portal.

## Facts

- Endpoint: POST https://api.scrapebench.dev/v1/ca-contractor-directory?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapebench-ca-contractor-directory-4bcc999a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dixa2Fm5VbxrAOYXy1JVt

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 scrapebench-ca-contractor-directory-4bcc999a -d '<json body>'
```

Example prompt: Can you pull all active C-10 electrical contractors licensed in Los Angeles County from the CSLB, including their addresses, phone numbers, bond status, and workers' comp info?

## When to prefer this

Use this endpoint when you need a comprehensive, live directory of California-licensed contractors filtered by trade classification (e.g. C-10 electrical, C-36 plumbing, B general building) and county. It is the right choice when you need official CSLB data including bond and workers' comp status, not just a business listing. Prefer it over general business search APIs when California contractor licensing compliance, verification, or lead generation by trade type is the core need.

## Known failure modes

- Invalid or unrecognized county name returns an error or empty result
- Invalid CSLB classification code (e.g. typo in 'C-10') returns an error
- No contractors found for a valid but sparsely licensed trade/county combination returns an empty list
- CSLB portal downtime or rate limiting causes a fetch failure
- Malformed input (missing required fields) returns a validation error

## How this service works

List every California-licensed contractor in one trade classification and county (e.g. C-10 electrical in Los Angeles), with licence status, address, phone, bond and workers' comp. Read live from the CSLB public data portal.

## Output

A list of California-licensed contractors matching the specified county and license classification, each record including the contractor's name, license status (active/inactive/expired), business address, phone number, bond details, and workers' compensation coverage information — sourced live from the CSLB public data portal.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "county": {
   "type": "string",
   "title": "County",
   "maxLength": 40,
   "minLength": 1,
   "description": "California county name, e.g. 'Los Angeles' ('County' suffix and case are ignored)."
  },
  "purpose": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 200
    },
    {
     "type": "null"
    }
   ],
   "title": "Purpose",
   "default": null,
   "description": "Optional: what you need this data for, in one sentence (e.g. 'vetting a roofer before hiring'). It never changes the price or the rows; it tells us what to improve."
  },
  "license_class": {
   "type": "string",
   "title": "License Class",
   "maxLength": 40,
   "minLength": 1,
   "description": "CSLB classification code, e.g. 'A', 'B', 'C-10' (electrical), 'C-36' (plumbing)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapebench-ca-contractor-directory-4bcc999a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapebench.dev](https://www.zero.xyz/host/api.scrapebench.dev/llms.txt)
