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.
Ask this API how many jobs it holds and you get the same answer everywhere.
jobs on /v1/health, jobs on
/v1/meta, and count on an unfiltered
/v1/jobs/count are one number.
One number, one population: live jobs, each counted once (no duplicates, nothing closed). Every counting endpoint applies the same two exclusions, so a count you read anywhere is a count of rows you can actually retrieve.
That sounds like a small property. It's the one that keeps a dashboard honest. A dataset whose endpoints each count a slightly different population trains its users to quote whichever number is biggest, and the gap between "rows in the table" and "jobs you can search" is plausible, unfalsifiable, and wrong forever.
What the one number leaves out
Two kinds of row are not in jobs, for different reasons.
Duplicates are marked, not deleted. When the same job is listed on two
boards, or reposted, the copies carry duplicate_of and stay reachable:
postings on /v1/meta counts them, include_duplicates=true lists them, and
a source= filter lists every posting that source carries. postings minus
jobs is how many are marked right now. See
duplicates.
Closed postings are gone. A posting that leaves its board is deleted from
the catalogue, and what remains is a tombstone on
/v1/jobs/expired, kept for 90 days.
The general rule is about your dashboards rather than our endpoints: read a
count from something whose conditions match the claim you're making. "Jobs
you can search" is jobs. "Listings, mirrors included" is postings. They are
different claims, and they should be different numbers.
Counting something narrower
The dataset-size question has one answer. Filtered questions have
/v1/jobs/count:
curl -G https://api.hyperjobs.io/v1/jobs/count \
-H "Authorization: Bearer $HYPERJOBS_KEY" \
--data-urlencode "country=DE" \
--data-urlencode "seniority=director,executive"Same filter vocabulary as /v1/jobs, count only, and it bills no jobs
against your quota.
Exact up to 10,000. Past that, count is an estimate to three
significant figures, and the response says so with estimated: true. The
counts you act on row by row are exact; the counts that size a market are
close. A count is also remembered for 15 minutes, so asking the same question
twice answers at once and may trail the catalogue by that long.
The feed counts the same population
/v1/jobs/feed serves the same live
population as everything else: new postings, no duplicates unless you ask, no
closed ones. Closures are their own feed:
/v1/jobs/expired streams
{id, expired_at, reason} for the rows to delete. A mirror consumes births and
deaths from two feeds instead of inferring deaths from a population mismatch,
and feed rows and search rows can be counted against each other.
Feed sync has the loop.
The freshness trap
This is the most expensive misreading left.
ok on /v1/health says the data is readable, not that it's current.
Liveness, not freshness. If collection stalled, the rows would still be there
and still readable, and the probe would stay green, because that's all ok
ever claimed to check.
For freshness, read newest from /v1/meta, or
fresh_24h and last_publish_at on /v1/health. If newest drifts more than
a couple of hours from now, ingestion is behind, and that tells you more than
any count will. Don't alert on jobs alone: it moves both ways every day, as
postings arrive and close.
The two alerts answer different questions and you want both. "Is it up" and "is it current". A monitoring setup with only the first will page you after your users notice.
And one more thing /v1/health can't do: validate a key. It never reads one:
an expired, revoked, or misspelled key gets the same 200 as a good one. Check
a key against an endpoint that requires one and look for a
401; /v1/meta is the cheap choice.
Which number to quote
| You want | Read |
|---|---|
| Dataset size | jobs from /v1/meta, or /v1/health; they agree |
| Postings, mirrors included | postings from /v1/meta |
| Freshness | newest from /v1/meta |
| Count for any filter | /v1/jobs/count |
| Per-source counts | sources from /v1/meta |
| Per-field coverage | coverage_pct from /v1/meta |
| Liveness | /v1/health: free, no key, no rate limit |
And underneath all of it: every number on this page is a snapshot. Jobs arrive and close every few minutes, so a "we track N jobs" line in your UI starts drifting the moment you ship it.
// Illustrative. One request, at build or request time, never a constant
// in your source tree.
const { jobs, companies, newest } = await (
await fetch("https://api.hyperjobs.io/v1/meta", {
headers: { Authorization: `Bearer ${process.env.HYPERJOBS_KEY}` },
})
).json();The short version
One population, one count, two jobs for your monitoring: /v1/health for "is
it up", meta.newest for "is it current". The number you quote is the number
your users can search.
Dataset coverage has what each count means, how field completeness is published, and the rest of the numbers you shouldn't hardcode.
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
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.
7 min read