# Salary data API: advertised pay from live job postings

> The pay range employers publish in their own job postings, kept as written, normalised to a year and converted to USD so bands compare across currencies.

Source: https://hyperjobs.io/use-cases/salary-data-api

Pay transparency laws put a salary band into a growing share of job postings,
and those bands are the freshest pay data there is: what an employer says it
will pay for a role it is hiring for this week. This API reads them from the
postings, keeps the employer's own figure, and adds the two normalised figures
you need to compare one band with another.

## The request

```bash
# Advertised pay for data engineers in the US, posted in the last 30 days,
# highest band first.
curl -G https://api.hyperjobs.io/v1/jobs \
  -H "Authorization: Bearer $HYPERJOBS_KEY" \
  --data-urlencode 'title="data engineer"' \
  --data-urlencode "country=US" \
  --data-urlencode "has_salary=true" \
  --data-urlencode "time_frame=30d" \
  --data-urlencode "sort=salary" \
  --data-urlencode "fields=title,company,seniority,locations,salary" \
  --data-urlencode "limit=200"
```

```json title="Illustrative: one row's salary object"
{
  "salary": {
    "min": 72,
    "max": 88,
    "currency": "USD",
    "unit": "hour",
    "annual_min": 149760,
    "annual_max": 183040,
    "annual_min_usd": 149760,
    "annual_max_usd": 183040,
    "raw": "$72 – $88 per hour"
  }
}
```

## Three layers in one object

| Field | What it is | Use it for |
| --- | --- | --- |
| `min`, `max`, `currency`, `unit` | The employer's figure, verbatim, in the period it was quoted (`hour`, `month`, `year`…) | Showing pay the way the posting did |
| `annual_min`, `annual_max` | The same band, normalised to a year, same currency | Comparing within one currency |
| `annual_min_usd`, `annual_max_usd` | Normalised to a year **and** converted to USD | Comparing anything with anything |
| `raw` | The pay line as the posting wrote it | Auditing the parse |

The conversion rates are published, not hidden: `salary_conversion` on
[`/v1/meta`](/docs/api-reference/meta) is the dated table behind every
`*_usd` figure, the salary filters and the salary sort.

## Filters and sorts

- `has_salary=true`: only postings that state a band.
- `salary_usd_gte` / `salary_usd_lte`: a USD range that the band **overlaps**.
  `salary_usd_gte=150000` matches a band whose top reaches 150k. For a true floor
  see [the salary guide](/docs/guides/salary#a-true-floor-filter).
- `salary_currency=EUR`: the currency the employer quoted, a different question
  from "pays over $100k".
- `sort=salary` / `sort=salary_asc`: by annualised USD, postings without pay last.

Combine them with any other filter (`seniority`, `taxonomies`, `skill`,
`company_size`, `location`) to cut a benchmark down to the roles you compare.

## Benchmarks without buying rows

[`/v1/jobs/count`](/docs/api-reference/jobs-count) takes the same filters and
bills no jobs, so a distribution of advertised bands is a handful of free calls:

```bash
# How many senior US software roles advertise a band reaching $200k?
curl -G https://api.hyperjobs.io/v1/jobs/count \
  -H "Authorization: Bearer $HYPERJOBS_KEY" \
  --data-urlencode "taxonomies=software" \
  --data-urlencode "seniority=senior" \
  --data-urlencode "country=US" \
  --data-urlencode "salary_usd_gte=200000" \
  --data-urlencode "time_frame=30d"
```

## What the numbers are, and what they aren't

They describe **postings, not people**: each row is one advertised range, not one
filled job. They describe **postings that state a salary**: the share
`coverage_pct.salary` reports, self-selected by where and by whom pay is
published. And there is no archive: the catalogue serves open postings, so a
trend line is something you record by keeping what you read.
[Building a comp benchmark](/docs/guides/salary#building-a-comp-benchmark) puts
all three into one worked example.

## Questions

### Where does the salary data come from?

From the job postings themselves: the range an employer published on its own ATS board, or on LinkedIn. It is the advertised band for an open role, not a survey of what people are paid, and the employer's own figure and wording are kept untouched beside the normalised ones.

### How are salaries in different currencies compared?

Each band is normalised to a year and converted to US dollars at a dated rate table that /v1/meta publishes, giving annual_min_usd and annual_max_usd. Those are the figures the salary filters and the salary sort use. A posting in a currency with no rate is left out of USD-bounded searches rather than mis-ranked.

### What share of job postings include a salary?

Only some, because many employers publish no band. The live share is coverage_pct.salary on /v1/meta, measured on the catalogue rather than quoted from a slide, and has_salary=true limits any query to the postings that state one.

### Does salary_usd_gte return jobs that pay at least that much?

It returns jobs whose advertised band reaches that figure, so a 90k to 210k job matches 200k. For a strict floor, filter with has_salary=true and check salary.annual_min yourself, as the salary guide shows.

### Can I get historical salary data?

Not from the API. The catalogue serves open postings, and a closed posting is removed rather than archived. To track pay over time, store the bands you read, for example by syncing the feed, and you will hold the history from that day on.

## Read next

- [Salary data](https://hyperjobs.io/docs/guides/salary)
- [The Job object: salary](https://hyperjobs.io/docs/objects/job#salary)
- [Filtering jobs](https://hyperjobs.io/docs/guides/filtering)
- [Coverage](https://hyperjobs.io/docs/reference/coverage)
- [Reading salary data honestly](https://hyperjobs.io/blog/salary-data-honestly)
- [Pricing](https://hyperjobs.io/pricing)
