Your sample is not random
This API sorts newest-first by default and never randomly. What a limit=200 page actually measures, and what the top of any list is biased toward.
You pulled 200 jobs to have a look at the data. You skimmed the salaries, counted the remote ones, noticed most of them were senior, and formed an impression.
Every one of those 200 is the newest thing we have. Nothing about them is representative of anything.
There is no random sample in this API. There is no ORDER BY RANDOM(), no
reservoir, no seed. Every endpoint returns its rows in an order, and if you
don't go looking for that order, you will publish a number that rests on it.
The order is an opinion
/v1/jobs is newest-first by posted_at
unless you pass a sort: posted_asc,
salary, salary_asc, or relevance with a text search. posted_at is the
date the source states, or our own estimate when it states none, and null
when there's neither. date_source says which.
Every one of those orders is a choice, and none of them is random. So the
default 50 rows, and a limit=200 page, are the same object:
a recency sample, not a random one. Switch to sort=salary and you have a
pay sample instead. Either way they are the top of a list, and the list has an
opinion.
This matters more than it sounds, because recency is correlated with nearly everything you might want to measure. Which boards were read most recently. Which employers post in bursts. Whatever was seasonal last week. A recency sample inherits all of it, and a random sample would inherit none of it, which is why you wanted one.
/v1/companies has an order too
/v1/companies takes filters, limit
up to 200 and offset.
/v1/companies.csv streams the whole
filtered set as one file. On the plans that include the
directory, you can reach every company we hold.
What you can't change is the order, which is fixed: most live jobs first, then followers, then id. So the first page of the directory is the companies hiring hardest right now, the best-known first among equals: the least representative 50 companies in the dataset, by construction.
That is a fine order for a directory to eyeball. It's the wrong one for a population to measure. Read the whole filtered set (page it or export it) or don't call the first page "companies".
The documented alternative has its own bias
The answer is to stop asking the companies endpoint for companies. Filter jobs
server-side, read the embedded job.company off each row, dedupe by id, and
apply firmographic predicates in your own code. The firmographics arrived with the
job. You're not paying an extra request.
// Illustrative. Page properly for a real distribution.
const { data } = await fetch(
"https://api.hyperjobs.io/v1/jobs?work_arrangement=remote&time_frame=30d&limit=200",
{ headers: { Authorization: `Bearer ${process.env.HYPERJOBS_KEY}` } },
).then((r) => r.json());
const companies = new Map();
for (const job of data) {
// No id means the minimal fallback shape: no firmographics on it at all.
if (job.company?.id) companies.set(job.company.id, job.company);
}This goes straight from the jobs you care about to their employers. But be honest about what it is: a sample weighted by how many jobs each company posts. A company with 400 open roles is 400 times more likely to appear than one with a single opening. Big employers, high-churn employers and multi-location employers dominate; a ten-person company hiring one engineer shows up once or not at all.
/v1/companies first page | Dedupe from /v1/jobs | |
|---|---|---|
| Reach | Everything, if you page or export | Anything matching your filter |
| Ordering | Live jobs, then followers | Recency of their postings |
| Selection | Hiring most, best-known | Weighted by posting volume |
| Firmographics | Full record | Full record, on rows with an id |
| Honest claim | "the companies hiring most" | "companies hiring for X, per posting" |
Neither column is a random sample of the companies we hold. There isn't one. Pick the bias you can describe in a sentence, then write that sentence down.
The count ran before your predicate
The other half of the trap. When you filter client-side, the count does not follow you:
console.log(`${matches.length} of ${data.length} (${count} matched)`);/v1/jobs/count is exact up to 10,000 (an
estimate past that, flagged estimated: true), but over the API's filters,
computed before your code ran. It has no idea your predicate
exists. Report that count next to a client-side-filtered list and you've published a denominator for a population you
didn't measure. To count the filtered set you have to page the whole thing.
A null is silence, not a zero
Coverage is the same problem wearing different clothes. Every enriched field
has a fill rate, published live as coverage_pct on
/v1/meta, and none of them is 100%. Salary is
the sparsest: well under half of postings state one.
Those aren't gaps being worked through. They're selection. A posting either said
the thing or it didn't, and whatever drove the disclosure is plausibly correlated
with what you're trying to measure, which is why has_salary=true narrows to
roles that said what they pay, not to roles that pay well. Report it as "the
range advertised by roles that disclose".
Reading salary data honestly works through that one
properly; the point here is that it generalises.
The same reading applies field by field. visa_sponsorship: null means the
posting was silent, not that sponsorship is unavailable.
education: null does not mean no degree is required: many postings state no
requirement at all. Filter on education and you exclude every job that simply
didn't say.
And where a classifier did reach, the distribution is rarely even. Before you
slice on seniority, ask for include_facets=seniority on the same query: a
level that holds half the slice barely narrows it, and a level that holds a
sliver selects a corner so small that a single bulk-posting employer can move
it.
The window is whatever you pin
The catalogue holds every open posting, whatever its age, and nothing that
closed (the API serves the present). An
unbounded query mixes this morning's postings with roles open for months, and
the long-open ones are a population of their own: hard-to-fill roles,
evergreen listings, employers who never take anything down. Pin the window
with posted_gte/posted_lt and say what it was. A posting with no date at
all (date_source: unknown) falls outside any posted window, so a bounded
query leaves those out.
The window also moves. Results are newest-first over a live index, so a long
offset walk sees rows shift under it; cursor pages
don't. Fixed bounds, not a relative time_frame, when two measurements have
to share them.
What to actually do
Fix the window first
posted_gte/posted_lt, so every request in the measurement shares the same bounds.Ask for the count, don't count rows you fetched
Send the filter to
/v1/jobs/count.Page the set, don't sample the top of it
For a distribution rather than an anecdote, walk the whole filtered set with
cursorand dedupe byid. One page is the top page.Report the denominator
Publish the ratio your claim rests on next to the claim itself.
Name the population
Not "the market". The thing you measured.
The honest sentence is almost always narrower than the one you wanted to write: "of postings that disclose X, in the last N days". It's less quotable. It's also the one that survives someone checking it.
Pagination has the walk, the sort order, and the limits on every endpoint.
Keep reading
The API serves the present. The history is yours to keep
The catalogue holds every open posting and nothing closed. How to answer 'is hiring up?' and 'how long do jobs stay open?' with history you keep.
7 min read
Reading salary data honestly
What the salary fields mean, why coverage is partial by construction, and what salary_usd_gte's range-overlap semantics do and don't promise.
7 min read
Ask how many jobs there are and you get one answer
health, meta and an unfiltered count report the same number. What it means, what /v1/meta adds beside it, and the freshness check no count gives you.
5 min read