# The dataset in files

> Every job, open and closed, as gzipped JSON Lines in a storage bucket you read with your own key: the layout, the fields the API doesn't carry, and how to load and refresh it.

Source: https://hyperjobs.io/docs/guides/dataset-files

The API answers questions about the jobs that are open now. The dataset in files
is the whole thing to load into your own systems: **every job we hold, open and
closed**, each with its history. It's delivered by order, into a storage bucket
you read with a key of your own. Ask for it from [Data export](/exports) in your
dashboard, or [write to us](mailto:hello@hyperjobs.io).

| | The API | The dataset in files |
| --- | --- | --- |
| Jobs | open, and read by our AI | every job: open and closed, read by the AI or not |
| A job's record | the [Job object](/docs/objects/job) | the same object, plus [its history](#the-fields-the-api-doesnt-carry) |
| Freshness | minutes | a full snapshot each month |
| You get it by | calling an endpoint | downloading files |

The two fit together: a job has the same `id` and the same fields in both, so a
copy loaded from the files can be kept current through the API
([below](#keeping-it-current)).

## What you receive

A bucket on S3-compatible storage (Cloudflare R2), and a **read-only key** that
opens that bucket and nothing else. The key doesn't expire; we can revoke it.
Downloading costs nothing on either side: the storage charges no egress.

```text
v1/_latest.json                                   ← start here
v1/jobs/snapshot/date=2026-12-02/_manifest.json
v1/jobs/snapshot/date=2026-12-02/country=US/status=open/part-00000.jsonl.gz
v1/jobs/snapshot/date=2026-12-02/country=US/status=open/part-00001.jsonl.gz
v1/jobs/snapshot/date=2026-12-02/country=US/status=closed/part-00000.jsonl.gz
v1/jobs/snapshot/date=2026-12-02/country=DE/status=open/part-00000.jsonl.gz
README.md
```

- **`v1/_latest.json`** names the newest complete snapshot and its manifest. Read
  it first, every time.
- **`_manifest.json`** lists every file of the snapshot with its row count, its
  size in bytes and its SHA-256, and the counts by country and status. A
  snapshot is complete when its manifest is there: the manifest is written
  last, so files without one are a copy still in progress.
- **Each part** is gzipped [JSON Lines](https://jsonlines.org): one job per line,
  UTF-8, up to about 250 MB a file. Within a part, a company's jobs are next to
  each other.
- **Folders are by country and status.** `country=` is the ISO code of one of
  the job's places (`ZZ` when a place has no country), `status=` is `open` or
  `closed`. Take the folders you want, or all of them.

<Note>
  **A job with places in two countries is in both folders.** It is the same
  line, with the same `id`, twice. Keep one line per `id` when you load more
  than one country.
</Note>

Your order decides which folders your bucket holds: all countries or some, with
the closed jobs or without them.

## Downloading

The bucket's name, the address and your key's id are on [Data export](/exports),
with these commands filled in.

```bash
# the AWS CLI
AWS_ACCESS_KEY_ID=<key id> AWS_SECRET_ACCESS_KEY=<secret> \
  aws s3 sync s3://<bucket>/ ./hyperjobs-dataset/ \
  --endpoint-url https://<account>.r2.cloudflarestorage.com
```

```bash
# rclone
rclone config create hyperjobs s3 provider=Cloudflare \
  access_key_id=<key id> secret_access_key=<secret> \
  endpoint=https://<account>.r2.cloudflarestorage.com
rclone copy hyperjobs:<bucket> ./hyperjobs-dataset --progress
```

Both resume where they stopped and skip what you already have. To check a
download, compare each file's SHA-256 with the manifest's.

Or read the files where they are, without downloading, with
[DuckDB](https://duckdb.org):

```sql
INSTALL httpfs; LOAD httpfs;
CREATE SECRET (TYPE r2, KEY_ID '<key id>', SECRET '<secret>', ACCOUNT_ID '<account>');

SELECT status, count(DISTINCT id) AS jobs
FROM read_json('r2://<bucket>/v1/jobs/snapshot/date=2026-12-02/country=US/*/*.jsonl.gz', union_by_name = true)
GROUP BY status;
```

The folders become columns too: `country` and `date` come from the path.

## The fields the API doesn't carry

Each line is the [Job object](/docs/objects/job) exactly as `GET /v1/jobs`
returns it, with the description as HTML and the company as its summary, then
these:

| Field | What it says |
| --- | --- |
| `status` | `open` or `closed`, at the snapshot's `as_of` (in the manifest). |
| `closed_at` | When the job closed: when the last of its postings did. `null` while open. |
| `closed_by` | How we know it closed. `gone from source`: the posting left the employer's own list. `check`: we looked at the posting's page and it said closed. `timer`: an estimate, the posting reached the age at which its site ends it. `unknown`: closed too long ago for us to still say which of the last two. |
| `first_seen_at` | When we first saw any posting of the job. |
| `last_checked_at_source` | When we last saw it listed. |
| `date_posted_source` | Where `date_posted` comes from: `stated by the source`, `first seen by us`, `estimated from the requisition number`, or `unknown`. |
| `repost_of` | The `id` of the earlier job this one reposts, when it is a repost. |
| `sources` | Every site the job was found on. |
| `postings` | Every posting we merged into this job (see below). |
| `ai_read_at` | When our AI read the job. `null` when it hasn't: the fields it fills (skills, seniority, the summary, and so on) are then empty. |
| `description_text` | The description as plain text, paragraphs and list items kept. |

**`postings`** is the job's history across sites and cities. One employer's job
posted on its own careers page and on LinkedIn, or once per office, is one job
here, and each posting is an entry:

```json
{
  "posting_id": "j_39330ba834627f04",
  "role": "same job, other city",
  "source": "manatal",
  "url": "https://www.careers-page.com/…/job/63RRX35R",
  "location": "Kingstown, Saint Vincent and the Grenadines",
  "date_posted": "2026-06-22T00:00:00.000Z",
  "first_seen_at": "2026-09-14T23:55:12.042Z",
  "last_checked_at_source": "2026-12-01T17:01:59.715Z",
  "status": "open",
  "closed_at": null,
  "closed_by": null
}
```

`role` is `kept` for the posting the job's own fields come from, `same job,
other site` or `same job, other city` for the others. A job is open while any
of its postings is.

Two things differ from a job the API serves:

- **A job the AI hasn't read** has its facts as the source stated them (title,
  company, places, dates, description) and none of the derived fields.
- **A company we have no full record for** (about 1 job in 100) is given by its
  name and website only.

## Loading it

A snapshot is the whole dataset, not a difference. **Load the newest and drop
what you had**: don't merge two snapshots. The snapshot before stays in your
bucket for a week after the newest is complete, then is removed.

<Steps>
  <Step title="Read v1/_latest.json">
    It gives the snapshot's date and the path of its manifest.
  </Step>
  <Step title="Download the files the manifest lists">
    Only the ones you don't have, or whose size differs. Check the SHA-256.
  </Step>
  <Step title="Load into a new table, one row per id">
    Lines are independent, so the parts load in parallel. Deduplicate by `id`
    if you loaded more than one country.
  </Step>
  <Step title="Swap">
    Replace your previous table with the new one when the load has finished,
    so a reader never sees half a snapshot.
  </Step>
</Steps>

## Keeping it current

Between two snapshots, the jobs the API serves can be kept current through it:
[`/v1/jobs/changes`](/docs/api-reference/jobs-changes) lists every job that
became listed, changed or closed since your checkpoint, as often as you ask,
and bills nothing. Fetch the changed jobs with `/v1/jobs?id=…` and write them
over yours by `id`. The pattern is in [Syncing the feed](/docs/guides/feed-sync).

That covers the open jobs our AI has read. The others, closed jobs and jobs
not read yet, are refreshed by the next snapshot.

## Versions

Everything under `v1/` follows the API's rule: **a field is only ever added**.
A loader written for one snapshot reads the next. The manifest's `api_version`
says which release of the [API](/docs/changelog) the job's shape is from. A
change that would break a loader would open `v2/` beside `v1/`, with notice.

## Next

<CardGroup cols={2}>
  <Card title="The Job object" icon="Briefcase" href="/docs/objects/job">
    Every field of a job, the ones a file line starts with.
  </Card>
  <Card title="Syncing the feed" icon="RefreshCw" href="/docs/guides/feed-sync">
    Keep a loaded copy current through the API.
  </Card>
</CardGroup>
