Rank general contractors by work sites (or permits) in the Bay Area cities we read, highest first: licence, name, CSLB classes and status, sites, permits, sites per city, first and last permit day. At most 100 per call; offset pages on. A GC is one CSLB licence with class B (General Building); classification picks another class or any. A site is one address in one city, so a house's building, electrical and plumbing permits are one site. work picks the permits counted: gc (default) is a GC's work, permits for a new building, an ADU, an addition or a remodel, so a solar or roofing company with a B licence counts only its building work; all counts every permit; or name kinds, e.g. new,adu. year counts permits issued that year (data from 2024). Only the cities read count, and in them only permits that carry a licence, so the numbers are a floor: the answer's coverage lists the cities, the days read, the share with a licence, and the cities not read or showing no contractor. Cities: Atherton, Berkeley, Burlingame, Concord, Cupertino, Danville, Dublin, Foster City, Fremont, Gilroy, Hayward, Livermore, Los Altos, Los Altos Hills, Menlo Park, Milpitas, Morgan Hill, Oakland, Palo Alto, Pleasanton, San Francisco, San Jose, San Mateo, San Ramon, Santa Clara, Saratoga, Sunnyvale, Walnut Creek. For one contractor's own permits, use get_contractor_activity; for how many GCs pass a threshold, use count_contractors.