Overview
TheSalarySource enum indicates the origin of compensation data in a job posting. This helps distinguish between salary data provided directly by job boards versus data extracted from job descriptions.
Enum Values
Value:
"direct_data"Salary information was provided directly by the job board in structured format (e.g., Indeed’s salary field, Glassdoor’s salary estimate).Value:
"description"Salary information was extracted from the job description text using pattern matching and parsing.Usage
TheSalarySource enum is included in job records to indicate the reliability and source of compensation data:
Reliability
Jobs withDIRECT_DATA typically have more accurate and structured compensation information, as this data comes from dedicated fields in the job board’s API or schema.
Jobs with DESCRIPTION rely on pattern matching and may have less precision, as salary formats vary widely in job descriptions (e.g., “100k”, “80,000 to 100,000 USD”, “competitive salary”).
Type Definition
See Also
- Compensation — The structure containing salary data
- CompensationInterval — Time interval for salary (yearly, monthly, etc.)
- scrapeJobs() — Main scraping function that returns jobs with salary_source
