75trust / 100

Ca Contractor Directory

by Scrapebench API in Search & web

x402 APIPassing, checked 2 h ago

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.

POST
https://api.scrapebench.dev/v1/ca-contractor-directory
Price
$0.04
per call in USDC
Uptime
100%
last 30 days
Response time
640 ms
1.9 s slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.scrapebench.dev/v1/ca-contractor-directory

Each call costs $0.04 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://api.scrapebench.dev/v1/ca-contractor-directory
content-type: application/json

{
  "county": "Alameda",
  "license_class": "C-10"
}

Parameters

ParameterTypeRequiredDescription
countystringYesCalifornia county name, e.g. 'Los Angeles' ('County' suffix and case are ignored).
license_classstringYesCSLB classification code, e.g. 'A', 'B', 'C-10' (electrical), 'C-36' (plumbing).

Example response

The provider's example. We can't check it without paying.

Example response, 75 lines
{
  "next_page": null,
  "page": 0,
  "page_size": 25,
  "rows": [
    {
      "address": "1933 WILLIAMS STREET",
      "bond_number": "354811",
      "business_name": "RANSOME COMPANY",
      "business_type": "Corporation",
      "city": "SAN LEANDRO",
      "classifications": [
        "A",
        "C10"
      ],
      "county": "Alameda",
      "expiration_date": "10/31/2027",
      "issue_date": "07/01/1932",
      "license_number": "22726",
      "phone": "(510) 686 9900",
      "source_url": "https://www.cslb.ca.gov/onlineservices/checklicenseII/LicenseDetail.aspx?LicNum=22726",
      "state": "CA",
      "status": "CLEAR",
      "surety_company": "HARCO NATIONAL INSURANCE COMPANY",
      "workers_comp_company": "TRAVELERS PROPERTY CASUALTY COMPANY OF AMERICA",
      "workers_comp_type": "Workers' Compensation Insurance",
      "zip_code": "94577"
    },
    {
      "address": "3005 BADGER DR",
      "bond_number": "100126425",
      "business_name": "KEENE MICHAEL WAYNE",
      "business_type": "Sole Owner",
      "city": "PLEASANTON",
      "classifications": [
        "C10"
      ],
      "county": "Alameda",
      "expiration_date": "02/29/2028",
      "issue_date": "02/09/2004",
      "license_number": "831991",
      "phone": "(510) 378 2118",
      "source_url": "https://www.cslb.ca.gov/onlineservices/checklicenseII/LicenseDetail.aspx?LicNum=831991",
      "state": "CA",
      "status": "CLEAR",
      "surety_company": "AMERICAN CONTRACTORS INDEMNITY COMPANY",
      "workers_comp_company": null,
      "workers_comp_type": "Exempt",
      "zip_code": "94588"
    },
    {
      "address": "3014 NICOL AVENUE",
      "bond_number": "100078134",
      "business_name": "LOPEZ ELECTRIC",
      "business_type": "Sole Owner",
      "city": "OAKLAND",
      "classifications": [
        "C10"
      ],
      "county": "Alameda",
      "expiration_date": "05/31/2027",
      "issue_date": "05/31/2005",
      "license_number": "859771",
      "phone": "(510) 830 6119",
      "source_url": "https://www.cslb.ca.gov/onlineservices/checklicenseII/LicenseDetail.aspx?LicNum=859771",
      "state": "CA",
      "status": "CLEAR",
      "surety_company": "MERCHANTS BONDING COMPANY (MUTUAL)",
      "workers_comp_company": "NATIONAL LIABILITY AND FIRE INSURANCE COMPANY",
      "workers_comp_type": "Workers' Compensation Insurance",
      "zip_code": "94602"
    }
  ],
  "service": "ca-contractor-directory"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.04.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.scrapebench.dev/v1/ca-contractor-directory' \
  -H 'content-type: application/json' \
  --data-raw '{"county":"Alameda","license_class":"C-10"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.scrapebench.dev/v1/ca-contractor-directory' \
  -H 'content-type: application/json' \
  --data-raw '{"county":"Alameda","license_class":"C-10"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.04 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.04" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.04 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.scrapebench.dev%2Fv1%2Fca-contractor-directory&method=POST
const res = await pay("https://api.scrapebench.dev/v1/ca-contractor-directory", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "county": "Alameda",
    "license_class": "C-10"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.04 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.04"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://api.scrapebench.dev/v1/ca-contractor-directory",
        json={
            "county": "Alameda",
            "license_class": "C-10",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402933 ms$0.04
7 h agoPassed402619 ms$0.04
13 h agoPassed402583 ms$0.04
18 h agoPassed402563 ms$0.04
23 h agoPassed402640 ms$0.04
Show 9 older checks
28 h agoPassed402728 ms$0.04
33 h agoPassed402586 ms$0.04
38 h agoPassed402583 ms$0.04
43 h agoPassed402569 ms$0.04
2 days agoPassed402646 ms$0.04
2 days agoPassed402800 ms$0.04
2 days agoPassed4021.9 s$0.04
3 days agoPassed402801 ms$0.04
3 days agoPassed402699 ms$0.04

History

16 Oct 2026Price changed from $0.16 to $0.04