Skip to main content
POST
/
api
/
levelsfyi
/
companies
/
salaries
/levelsfyi/companies/salaries
curl --request POST \
  --url https://api.anysite.io/api/levelsfyi/companies/salaries \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "company": "<string>",
  "title": "<string>",
  "timeout": 300
}
'
[
  {
    "company": "<string>",
    "company_alias": "<string>",
    "title": "<string>",
    "title_alias": "<string>",
    "url": "<string>",
    "@type": "@levelsfyi_company_salary",
    "median_total_compensation": 123,
    "median_base_salary": 123,
    "median_stock_grant": 123,
    "median_bonus": 123,
    "median_level": "<string>",
    "sample_count": 123,
    "vesting_type": "<string>",
    "base_salary_percentiles": {
      "@type": "@levelsfyi_percentiles",
      "p10": 123,
      "p25": 123,
      "p50": 123,
      "p75": 123,
      "p90": 123
    },
    "total_compensation_percentiles": {
      "@type": "@levelsfyi_percentiles",
      "p10": 123,
      "p25": 123,
      "p50": 123,
      "p75": 123,
      "p90": 123
    },
    "stock_grant_percentiles": {
      "@type": "@levelsfyi_percentiles",
      "p10": 123,
      "p25": 123,
      "p50": 123,
      "p75": 123,
      "p90": 123
    },
    "bonus_percentiles": {
      "@type": "@levelsfyi_percentiles",
      "p10": 123,
      "p25": 123,
      "p50": 123,
      "p75": 123,
      "p90": 123
    },
    "levels": [],
    "level_mapping": [],
    "samples": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
company
string
required

Company alias (the URL segment, e.g. 'google') or a full company profile URL

Minimum string length: 1
Pattern: ^(?:https?://[^\s]+|[A-Za-z0-9][A-Za-z0-9._-]*)$
Examples:

"google"

"microsoft"

"https://www.levels.fyi/companies/google"

title
string
required

Job title alias (the URL segment, e.g. 'software-engineer')

Minimum string length: 1
Examples:

"software-engineer"

"data-scientist"

"product-manager"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

company
string
required
company_alias
string
required
title
string
required
title_alias
string
required
url
string
required
@type
string
default:@levelsfyi_company_salary
median_total_compensation
number | null
median_base_salary
number | null
median_stock_grant
number | null
median_bonus
number | null
median_level
string | null
sample_count
integer | null
vesting_type
string | null
base_salary_percentiles
LevelsfyiPercentiles · object
total_compensation_percentiles
LevelsfyiPercentiles · object
stock_grant_percentiles
LevelsfyiPercentiles · object
bonus_percentiles
LevelsfyiPercentiles · object
levels
LevelsfyiLevelCompensation · object[]
level_mapping
LevelsfyiLevelMapping · object[]
samples
LevelsfyiSalarySample · object[]