Get mean and median salary over time
GET
/api/v1.1/{country_code}/reports/salary-trend/Returns the mean and median advertised salary for postings matching the given criteria over the given time period, as a function of time. Additionally returns the percentage of matching postings that included salary.
Data is returned at weekly intervals over the requested time period.
This data is commonly used for generating time series charts.
:::info
This endpoint allows querying by one primary facet type (location, occupation, skill, industry, employer) only. Multiple values of the same facet may be provided, in which case, they will be aggregated.
For more complex queries over multiple facets, see Perform complex boolean queries
:::
Request
A two character code that specifies which country dataset to query.
A unique ID specifying an occupation sector/category.
The end date of the desired time period for the query. Must be specified in ISO8601 format (YYYY-MM-DD).
A unique ID specifying an industry.
A unique ID specifying a location/statistical area.
A unique ID specifying an occupation (job title). If specified, an occupation_taxonomy_id must also be provided.
A unique ID specifying an occupation taxonomy. Required when specifying an occupation_id.
A unique ID specifying a skill.
A unique ID specifying a skill tag (pre-defined group of skills).
The start date of the desired time period for the query. Must be specified in ISO8601 format (YYYY-MM-DD).
Request samples
Responses
A date in the time series, specified in ISO8601 format (YYYY-MM-DD).
The median advertised salary found in matching postings on the specific date.
The mean advertised salary found in matching postings on the specific date.
The percentage of matching postings that included salary information on this date.
[
{
"date": "2022-01-01",
"median_salary": 35000,
"mean_salary": 38000,
"sample_size_percent": 59.87
}
]