- API reference
- Endpoints
Count jobs
How many jobs match a filter set without paying for the rows: the identical filters as /v1/jobs, returning a single number instead of a page of payloads.
https://api.hyperjobs.io/v1/jobs/countThe size of a query, and nothing else. It takes the identical filter set to
/v1/jobs and returns a single number: the
cheap way to size a query before you commit to paging through it, or to build
dashboards and facet counts without hauling job payloads around. Cheap
literally: it bills no jobs from your monthly quota,
only a request against the per-minute rate, so it's also how to find out
what a filter set would cost before you fetch it.
curl -G https://api.hyperjobs.io/v1/jobs/count \
-H "Authorization: Bearer $HYPERJOBS_KEY" \
--data-urlencode "skill=python" \
--data-urlencode "work_arrangement=remote" \
--data-urlencode "country=United States"Query parameters
Every filter parameter from /v1/jobs
works here with identical semantics: title, skill, country,
salary_usd_gte, source, created_gte, all of them. The tables aren't repeated
on this page; the jobs-list page is the contract for both endpoints.
Shape parameters are rejected. limit, offset, cursor, sort,
collapse, include_facets and description_format control how rows come
back, and there are no rows here, so sending any of them is a 400. The
removed parameters are a
400 with a hint here too. A search never counts its matches, so
this endpoint is the only place the number comes from.
Response
countLive matches for the filter set, the same population /v1/jobs searches:
non-expired, and one posting per job unless you filter by source or send
include_duplicates=true. Exact up to 10,000. Past that it is an
estimate, to three significant figures, and estimated says so. Remembered
for 15 minutes, so a repeated question answers at once and may trail the
catalogue by that long.
estimatedPresent, and true, when count is an estimate: more than 10,000 jobs
match. An estimate is never below 10,001. Absent when the count is exact.
Exact up to 10,000
Past 10,000 a count is an estimate (estimated: true). Up to 10,000, the
counts you act on row by row, it is exact.
{
"count": 21497
}{
"count": 3560000,
"estimated": true
}Errors
| Status | Cause |
|---|---|
400 | Invalid parameter or value: the body names the param and carries a hint. |
401 | Missing, unknown, revoked, or expired key. |
402 | Monthly quota exhausted. |
429 | Rate limit exceeded. |
500 | Server error. Retry with backoff. |
Validation is strict: a misspelled filter is a 400, never a
misleadingly small count.
Next
The full filter vocabulary this endpoint shares.
FilteringHow the filters combine, and how to debug an unexpected count.