Data Collection Methodology
How UC Wage Explorer collects payroll records and calculates wage summaries
Data Collection Process
Source Identification
The University of California publishes payroll records in the public UC Annual Wage database.
Automated Collection
We use a high-performance Go-based scraper with concurrent workers to efficiently collect data. The scraper respects rate limits and implements retry logic to ensure reliable data collection without overloading the source.
Preparing Pay Values
The analysis converts pay amounts to numbers. Wage summaries count records with positive gross pay and use the source’s gross pay field for totals and averages.
Storage & Organization
Data is stored in a structured JSON format, organized by campus location and year. This hierarchical structure enables efficient querying and maintains data integrity across years of historical information.
Technical Implementation
Scraper Architecture
Core Components:
- Language: Go (Golang) for high performance and concurrency
- Worker Pool: Configurable concurrency with five workers by default
- Rate Limiting: Built-in delays between requests (default: 1 second)
- Retry Logic: Automatic retry on failures with exponential backoff
- Progress Tracking: Resume capability for interrupted scraping sessions
API Interaction:
POST https://ucannualwage.ucop.edu/wage/search
Content-Type: application/json
{
"op": "search",
"page": 1,
"rows": 100,
"year": "2024",
"location": "Berkeley"
}Data Structure
Storage Format:
data/
├── [Campus_Name]/
│ ├── wages_2024.json
│ ├── wages_2023.json
│ └── ...
└── scrape_progress.json Record Schema:
{
"location": "Berkeley",
"year": 2024,
"scraped_at": "2025-09-13T19:16:37Z",
"total_records": 37078,
"records": [
{
"firstname": "*****",
"lastname": "*****",
"title": "Professor",
"location": "Berkeley",
"year": "2024",
"basepay": "150,000.00",
"overtimepay": "0.00",
"adjustpay": "5,000.00",
"grosspay": "155,000.00"
}
]
}Data Processing
Aggregation Pipeline:
- Ingestion: Payroll records are read from archived JSON files
- Transformation: Pay values converted from strings to numbers
- Aggregation: Calculate totals, averages, and counts by campus/year
- Database Storage: PostgreSQL with Drizzle ORM for efficient queries
Key Metrics Calculated:
- Total wages by campus and year
- Average gross pay per included payroll record
- Counts of payroll records with positive gross pay
- Pay distribution analysis
- Year-over-year growth rates
Data Coverage
13 Reporting Locations
All ten campuses and UCOP have files for 2010–2025.
- UC Berkeley
- UC Davis
- UC Irvine
- UCLA
- UC Merced
- UC Riverside
- UC San Diego
- UC San Francisco
- UC Santa Barbara
- UC Santa Cruz
- UC Office of the President
- UC SF Law (2024–2025)
- ASUCLA (2018–2025)
Archived Payroll Records
Each file covers one reporting location and payroll year. A person may appear in multiple files.
Official UC Reports
UC publishes annual compensation reports, including its 2025 summary. The downloadable archive runs through 2025.
Name Redactions
The archive preserves UC’s name redactions. Those records can still contribute to wage summaries.
Limitations & Disclaimers
- Gross pay reflects reported payroll earnings and excludes employer benefits
- Explorer adjusts 2025 pay to 2024 dollars using the BLS annual CPI-U averages
- Mid-year hires or departures may show partial year compensation
- Job titles may change between years
- Data accuracy depends on source reporting to UC system
Questions About Our Methodology?
We're committed to transparency in our data collection and processing methods.