Salary for a job title in a country API
Salary distribution for a job title in a country: median, percentiles, hourly, by region.
GET /v1/jobs/salaryBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/jobs/salary?query=software%20engineer&country_code=us",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "software engineer", "country_code": "us", "title": "software engineer", "country": "United States of America", "currency": "USD", "period": "year", "based_on": 10000, "median": 130175, "low": 101875, "high": 171020, "hourly": 65.88, "percentiles": { "p10": 78919, "p25": 101875, "p50": 130175, "p75": 151913, "p90": 194793 }, "by_region": [ { "region": "California", "median": 142130, "hourly": 71.93, "count": 255871 }, { "region": "Maryland", "median": 136677, "hourly": 69.17, "count": 39195 }, "… 48 more" ], "related": [ { "title": "Software Engineer", "median": 130175, "hourly": 65.88, "count": 10000 }, { "title": "Software Developer", "median": 130000, "hourly": 65.79, "count": 10000 }, "… 8 more" ], "source_url": "https://www.talent.com/salary?job=software+engineer"}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | A job title, preferably one from jobs_salary_titles. Example: software engineer. |
country_codequery · required | string | ISO 3166-1 alpha-2 country code, e.g. us, gb, de. Example: us. |
Response fields
200 with a Salary, in Jobs’s own JSON.
| Field | Type | Description |
|---|---|---|
query | string | |
country_code | string | |
title | string | The job title the figures are for. |
country | string | null | |
currency | string | |
period | "year" | |
based_on | integer | null | Salaries the figures are based on. |
median | number | null | |
low | number | null | Where entry-level positions start (per year). |
high | number | null | What most experienced workers make (per year). |
hourly | number | null | The median per hour. |
percentiles | object | |
by_region | object[] | Median by region (state, province), highest first. |
related | object[] | Related titles and their medians. |
source_url | string |
Status codes
| Status | Meaning |
|---|---|
200 | The salary figures. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No such board, job posting or salary title. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Jobs is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Jobs is a trademark of its owner. We are not affiliated with or endorsed by it.