- API reference
- Endpoints
Get expired jobs
The purge feed: ids of jobs that left the catalogue within a window, and why, for deleting from your mirror.
https://api.hyperjobs.io/v1/jobs/expiredThe delete side of a sync loop. While /v1/jobs/feed
tells you what to add, this endpoint tells you what to remove: a tombstone for
every job that left the catalogue within the window (its id, when, and why),
oldest first. The payload is deliberately minimal: no titles, no companies,
just enough to run DELETE WHERE id IN (…) against your copy. Tombstones are
kept for 90 days. See
syncing the feed for where this fits.
curl -G https://api.hyperjobs.io/v1/jobs/expired \
-H "Authorization: Bearer $HYPERJOBS_KEY" \
--data-urlencode "since=24h"Query parameters
sinceRelative window: jobs that left the catalogue within it. 15m, 2h,
24h, 7d (m is minutes). A bad value is a 400. Tombstones are kept
for 90 days: a longer window returns everything still held, not an error.
Compare retention_days in the response with your sync interval.
expired_gteAbsolute alternative to since: expiries on/after this instant. Use it to
resume from the exact expired_at of the last row you processed.
reasonOnly tombstones with this reason: see expired vs
removed. Omit it to get both.
limitResults per page, 1 to 5,000: the cap is higher than the other feeds because the payload is just ids, timestamps and a reason.
cursorOpaque keyset cursor from the previous page's next_cursor. Page until it
comes back null.
Any other parameter (including description_format, which has nothing to
attach to here) is a 400.
Tombstones are free
A tombstone is an id, not a job: this endpoint bills nothing against your
monthly quota (since 1.37.0), and it keeps answering
after the month's jobs are spent: removing the jobs that died is how your
copy stays true. Resume with expired_gte rather than re-reading a wide
since window on every poll; the per-minute rate still applies.
Response
countRows in data: this page, not a total.
dataTombstones, oldest first: ascending by expired_at. Each row is the
job id, when it left the catalogue (ISO 8601, UTC, with milliseconds),
and the reason: expired or removed.
retention_daysHow long tombstones are kept: 90. A sync that runs less often than this
can miss a deletion entirely.
next_cursorPass it back as ?cursor=; null means the window is drained.
{
"count": 2,
"data": [
{ "id": "j_9b03e5f1c27a48d6", "expired_at": "2026-07-15T18:00:41.000Z", "reason": "expired" },
{ "id": "j_e71d4a0f9c58b213", "expired_at": "2026-07-15T21:12:09.000Z", "reason": "removed" }
],
"retention_days": 90,
"next_cursor": null
}Expired vs removed
Both mean "delete your copy", but they're different facts, and worth keeping apart if you ever show a user why a job went away:
reason | Means |
|---|---|
expired | The posting is gone from the employer's board: it stopped being listed, or its deadline passed. |
removed | We stopped serving it: it failed a publish check, or was marked a duplicate. The job itself may still be live. |
A removed duplicate is still reachable under its own source and with
include_duplicates=true.
The sync loop role
A mirror built on the feed alone only ever grows. Postings close, and nothing
in the add-side feed revisits them, so on each poll cycle, after ingesting
/v1/jobs/feed and upserting
/v1/jobs/modified, pull this endpoint
with the same window and delete (or mark dead) every returned id locally.
Ids are stable across all three endpoints, so the delete is a plain key match.
Use a window comfortably wider than your poll interval (or resume with
expired_gte from the last stored expired_at). The operation is
idempotent, so overlap costs nothing, but a gap leaves zombie postings your
users can still click. The full pattern, including the initial snapshot, is in
syncing the feed.
A job on this feed is deleted from the catalogue:
/v1/jobs/{id} answers
404 for it. Expiry is reversible, though: if
the employer lists the job again it comes back, and its tombstone is removed.
Upserting from the feed handles that case
with no extra work.
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. |
Next
Snapshot, poll, expire: the whole mirroring pattern.
Get the feedThe add side: newly indexed jobs, ascending.
Modified jobsThe update side: jobs whose tracked fields changed.
DeduplicationWhy ids are stable, and what a duplicate fold means for your keys.