Levels.fyi API
Levels.fyi (levels.fyi) has 3 public methods: compare company pay, list top paying companies and get company salaries by level. Each costs 1 credit per completed run (1¢ with pay as you go); failed runs are free.
Unofficial. Not affiliated with or endorsed by Levels.fyi.
Methods
3Compares Levels.fyi's published median yearly pay (total, base, stock, bonus) for one role across 2 to 10 companies in a location, ranked by median total pay. Components are null where the site does not publish them; companies with no data come last with a note.
Returns role, location, currency, companies (rank, median total, base, stock, bonus, note, link)
Readlevels.fyi/compare_company_payLists the companies on the Levels.fyi leaderboard for a job role and location, ranked by median yearly total pay (all levels). The public leaderboard shows up to 50 companies per selection.
Returns role, location, currency, companies (rank, company, median total pay per year, company link)
Readlevels.fyi/list_top_paying_companiesReturns Levels.fyi's published 50th-percentile annual pay (total, base, stock, bonus) for each career level at a company and role, optionally in a location, in the location's currency.
Returns company, role, location, currency, levels (level name, typical title, median total pay, base, stock, bonus, data points, page link)
Readlevels.fyi/get_company_salaries