- Documentation
- Guides
Syncing the feed
The incremental-sync pattern: one full snapshot, then poll the feed, expired, and modified endpoints.
Keeping a local copy of the dataset current is a two-phase job: take one full
snapshot from /v1/jobs, then keep it fresh by
polling three feeds (/v1/jobs/feed for new
postings, /v1/jobs/expired for deletions,
and /v1/jobs/modified for in-place
changes). Each covers one kind of mutation, so together they replay everything
that happened to the dataset since your last poll.
All three page the same way: follow next_cursor until it comes back null,
and you have everything in the window. Rows arrive ascending by event time
(first-seen time, expiry time, modification time respectively), which makes
checkpointing natural: the last row you processed is your new high-water mark.
Don't re-walk the index
The obvious approach (page through /v1/jobs on a schedule and diff it against
what you have) fails on cost alone. The quota counts
rows returned, so a full walk bills one job for every live posting. Read
jobs on /v1/meta and compare it with your
plan's monthly quota. Repeat it hourly and you pay that again every hour, to
re-download a dataset that has mostly not changed. And a diff can tell you that a row disappeared, but not whether it
expired or you mis-paged.
The feeds bill only what changed: a poll that returns nothing costs nothing,
and one that returns 40 new postings costs 40. Deletions cost nothing at all:
/v1/jobs/expired returns ids, not jobs, and
bills none, as does /v1/jobs/changes, the
one-list alternative (every new, updated and closed id; fetch the jobs you want
with /v1/jobs?id=…, each billed once). Polling all three every 15
minutes is under 9,000 requests a month at steady state (well inside any
plan's per-minute rate), and its cost in jobs tracks the churn, not the
dataset. It also tells you explicitly what changed and how.
The shape
Bootstrap once with /v1/jobs
Page the index with
cursor(keyset paging is a consistent walk, so unlike offset paging, nothing shifts under you mid-snapshot) and store every row. This is the only time you walk it. (A filtered mirror can bootstrap the same way with filters applied. For every job, open and closed, start from the dataset in files instead.)Poll /v1/jobs/feed on an interval
New postings since the window opened, ascending by when they entered the catalogue. Page with
cursoruntilnext_cursorisnull: busy windows span multiple pages, and none of the rows are lost.Apply /v1/jobs/expired as deletions
The purge feed:
{id, expired_at, reason}tombstones for every posting that left the catalogue in the window. Delete (or mark dead) eachidon your side.reasonisexpiredwhen the posting is gone from its board andremovedwhen we stopped serving it: it failed a check, or was marked a duplicate. Tombstones are kept for 90 days.Apply /v1/jobs/modified as upserts
Full Job rows whose tracked fields changed: salary, title, apply URL, locations, and so on.
modified_fieldson each row says exactly what changed. Upsert byid.
Everything keys on id, and every window overlaps by design, so you re-see
rows. Upserting makes that harmless.
Choosing since
The rule: always poll on a window larger than your poll interval.
An exactly-matched window (polling every hour with since=1h) assumes your
clock, our clock, and publishing latency all agree perfectly. They don't, and
the last one matters most (see the lag trap
below). A posting that reaches the catalogue after your window has moved past
its timestamp falls into the gap between two polls and is never seen again.
Overlap closes that gap, and because you upsert by id, the redundancy is
harmless to your data, though re-seen rows are rows returned, so a wide
window polled often costs more quota than the same
window polled less often.
| Poll interval | since | Overlap |
|---|---|---|
| 15 min | 6h | 5 h 45 min |
| 1 h | 12h | 11 h |
| 6 h | 1d | 18 h |
| 1 d | 7d | 6 d |
m means minutes: since=15m is a quarter of an hour, and sub-hourly
polling no longer has to over-fetch a full hour. The units are m, h, d;
anything else, since=banana included, is a
400 rather than a silently applied 24-hour default. See
the feed reference.
The feed windows on catalogue time
The feed windows on when a posting entered the catalogue, and in the feed
that moment is the row's created_at. It is not the posting date: a posting
backdated by its source board still enters the feed when it reaches us, so
nothing slips behind your window by carrying an old posted_at. Nor is it when
we first saw the posting: since 17 November 2026 the catalogue serves open
postings of any age, so a job we first saw weeks ago can enter it today, and it
enters your feed today too.
Two details. Postings that entered the catalogue before 17 November 2026 carry
the time we first saw them instead, as the feed always did. And outside the
feed, on /v1/jobs and
/v1/jobs/{id}, created_at stays the
time we first saw the posting, so the same job can show an earlier
created_at there than in the feed.
Publishing runs in rounds, and a round's rows become visible when the round finishes, carrying the time it started. A poller that only ever asks for the last few minutes can already be past them. Keep your window, or your checkpoint, behind the present (the table above leaves hours of slack), or page the whole window by cursor on each poll.
Resumable checkpoints
since is the right tool for a poller that never stops. For anything that can
crash, deploy, or pause, use the absolute forms instead (created_gte on the
feed, expired_gte on expired, modified_gte on modified) and persist a
high-water mark. Because rows arrive ascending, the checkpoint is just the
timestamp of the last row you processed:
// Start a few hours behind the high-water mark: a publish round that started
// before it can still be finishing (see "The feed windows on catalogue time").
const LAG_MS = 6 * 3600_000;
const saved = await store.maxCreatedAt(); // e.g. "2026-07-16T09:48:15.000Z"
let checkpoint = new Date(Date.parse(saved) - LAG_MS).toISOString();
for await (const job of drain("/v1/jobs/feed", { created_gte: checkpoint, limit: 1000 })) {
store.upsert(job);
checkpoint = job.created_at; // ascending order → last row = new high-water mark
}
await store.saveCheckpoint(checkpoint);Restart after a week offline and the same code catches up from where it
stopped. The step back re-reads a few hours you already have, and upserting
by id makes that harmless.
A complete worker
Runnable as-is on Node 18+ (node sync.mjs). Swap store for your database.
const BASE = "https://api.hyperjobs.io";
const KEY = process.env.HYPERJOBS_KEY;
const POLL_MS = 15 * 60_000;
const SINCE = "6h"; // well beyond POLL_MS, see "Choosing since"
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
// Replace with your database. Upsert on `id`: the overlapping window guarantees
// you re-see rows, and that redundancy is what makes the sync safe.
const store = {
jobs: new Map(),
upsert(job) {
this.jobs.set(job.id, job);
},
expire(id) {
this.jobs.delete(id);
},
};
async function api(path, params) {
const res = await fetch(`${BASE}${path}?${new URLSearchParams(params)}`, {
headers: { Authorization: `Bearer ${KEY}` },
});
if (res.status === 429) {
// Per-minute 429s carry Retry-After in seconds. (Monthly quota is a 402,
// with no Retry-After: sleeping and retrying that one won't save you.)
await sleep(Number(res.headers.get("retry-after") ?? 5) * 1000);
return api(path, params);
}
if (!res.ok) throw new Error(`${path} → ${res.status}`);
return res.json();
}
// Every list endpoint pages the same way: follow next_cursor until null.
async function* drain(path, params) {
let cursor = null;
do {
const page = await api(path, cursor ? { ...params, cursor } : params);
yield* page.data;
cursor = page.next_cursor;
} while (cursor);
}
async function bootstrap() {
// Keyset paging: a consistent walk of the index, no drift, no double-counting.
for await (const job of drain("/v1/jobs", { limit: 200 })) store.upsert(job);
}
async function poll() {
// 1. New postings, ascending by first-seen time.
for await (const job of drain("/v1/jobs/feed", { since: SINCE, limit: 1000 })) {
store.upsert(job);
}
// 2. Deletions. The payload is just ids, timestamps and a reason, so the pages are big.
for await (const row of drain("/v1/jobs/expired", { since: SINCE, limit: 5000 })) {
store.expire(row.id);
}
// 3. In-place changes. Full Job rows; modified_fields says what changed.
for await (const job of drain("/v1/jobs/modified", { since: SINCE, limit: 1000 })) {
store.upsert(job);
}
}
await bootstrap();
console.log(`bootstrapped ${store.jobs.size} jobs`);
for (;;) {
await poll();
console.log(`polled → ${store.jobs.size} live`);
await sleep(POLL_MS);
}The feed excludes expired postings and duplicates, the same as /v1/jobs.
Each endpoint carries one kind of mutation (inserts, deletes, updates), so
nothing here inspects expires_at by hand. The feed never carries dead rows,
and count === limit doesn't mean data loss: it means there's another page,
and next_cursor takes you there.
Notes on running this for real
Don't cache the feed. There's no Cache-Control, ETag, or Last-Modified
header on any endpoint, including the one that would benefit most. A CDN or a
fetch cache won't help you; your local copy is the cache.
Filter during, not after. The feed takes every /v1/jobs filter
(skill, country, city, taxonomies_primary, source, posted_gte and the rest), so a
mirror of one slice (say, software jobs in New York) pulls and pays for that slice only. Every
row the feed returns is billed: pulling the whole window to keep a few percent of it spends the
rest of your quota on jobs you throw away. Keep the same filters on every poll, so the
checkpoint stays the same feed.
New to us is not new to the world. A job enters the catalogue when we first publish it, and
a board we start reading brings its open jobs of every age. If you want recent postings rather
than everything we add, put posted_gte (or time_frame=7d) in the filters.
Leave descriptions off. description_format omits descriptions by default,
and a 1,000-row feed page with them turned on is the difference between a 20KB
and a multi-megabyte response on every poll. Fetch them on demand with
/v1/jobs/{id}.
Watch the rate-limit headers. Every authed response carries
X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset, so a
polite worker can pace itself before the 429 instead of after. See
rate limits.
Divide the rate if you shard. Limits are per account, not per key, so four workers on a Growth plan get 75 requests/min each, not 300.
Next
The endpoint reference: every parameter and response field.
Expired jobsThe purge feed: ids, timestamps and reasons, in bulk.
Modified jobsThe update feed: changed rows and their modified_fields.
Budgeting a poll interval against your plan.