Endpoints / Expired jobs

Get expired jobs

The purge feed: ids of jobs that left the catalogue within a window, and why, for deleting from your mirror.

GET/v1/jobs/expiredTry it in the playground →
GEThttps://api.hyperjobs.io/v1/jobs/expired

The 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

since
<number><m|h|d>default: 24h

Relative 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_gte
ISO 8601 date

Absolute alternative to since: expiries on/after this instant. Use it to resume from the exact expired_at of the last row you processed.

reason
"expired" | "removed"

Only tombstones with this reason: see expired vs removed. Omit it to get both.

limit
integerdefault: 1000

Results per page, 1 to 5,000: the cap is higher than the other feeds because the payload is just ids, timestamps and a reason.

cursor
string

Opaque 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

count
integer

Rows in data: this page, not a total.

data
{ id, expired_at, reason }[]

Tombstones, 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_days
integer

How long tombstones are kept: 90. A sync that runs less often than this can miss a deletion entirely.

next_cursor
string | null

Pass it back as ?cursor=; null means the window is drained.

Response
{
  "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:

reasonMeans
expiredThe posting is gone from the employer's board: it stopped being listed, or its deadline passed.
removedWe 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

StatusCause
400Invalid parameter or value: the body names the param and carries a hint.
401Missing, unknown, revoked, or expired key.
402Monthly quota exhausted.
429Rate limit exceeded.
500Server error. Retry with backoff.

Next

Was this page helpful?