> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/jobs/{job_id}/results.ndjson

```text
GET https://weights.fyi/run/v1/jobs/<job_id>/results.ndjson
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-08, with the exports of your own data. the download only once the job has finished.

**Answer time:** streamed: the first rows leave at once and the download lasts as long as your connection takes to carry every row of the job.

Downloads every result of a page job as one NDJSON file named `<job_id>-results.ndjson`, one line per page in `seq` order, each the row [GET /v1/jobs/{job_id}/results](/run/docs/reference/jobs-results.md) lists; it is what the Results link on your panel downloads. It is streamed, 1,000 rows a read, so a job of any size downloads without being held whole; a stream cut part way closes without the chunked end mark, so you see a cut download, never a short file that looks whole. It needs `read` only, not the Tracing and tracking option.

An unfinished job answers `409 results_not_ready`; wait until the job is `SUCCEEDED`, `FAILED` or `CANCELLED` before downloading. A training job's results are one object; asking here answers `400 not_a_page_job` with where to read them.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and your token. The token needs the `read` scope. Reads are not counted against the token's request rate. |
| `job_id` | path | yes | The page job whose results you download. |

## Return value

**200 OK**, `application/x-ndjson`, chunked, `Content-Disposition: attachment; filename="<job_id>-results.ndjson"`; one compact JSON object per page:

| Field | Meaning |
|---|---|
| `seq` | The page's sequence number, 1 for the first page you sent. |
| `id` | Your own identifier for the page, as text, or `null` when you sent none. |
| `input_sha` | The SHA-256 of the page's UTF-8 text, 64 hexadecimal characters. |
| `label` | The role the model gives the page: `detail`, `listing`, `landing`, `not_vacancy` or `unresolved`; `null` until the page is done. |
| `probabilities` | The model's calibrated probability for each of the five labels; `null` until the page is done. |
| `status` | `done`, `failed`, `cancelled`, `queued` or `leased`. |
| `error` | Why a failed page failed, as a short code; otherwise `null`. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `400` | `not_a_page_job` | The job is a training job; `results` gives the path of its results. | Read [GET /v1/jobs/{job_id}/results](/run/docs/reference/jobs-results.md) instead. |
| `409` | `results_not_ready` | The job has not finished; the answer carries `Retry-After: 1` and a `message`. | Read finished rows with [GET /v1/jobs/{job_id}/results](/run/docs/reference/jobs-results.md), and download once the job has finished. |
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `read`, or the account is suspended. | Use a token with `read`; for a suspended account, talk to us. |
| `404` | `job_not_found` | The job does not exist or belongs to another account. | Check the id. |

## Examples

```sh
curl -s -o results.ndjson https://weights.fyi/run/v1/jobs/JOB_ID/results.ndjson \
  -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

The first two lines, for a job whose pages carried your ids:

```json
{"seq":1,"id":"page-000001","input_sha":"809f756b65c64bed8fc568254ad4604343a41d876d22f6334503ea587cb1ffc0","label":"listing","probabilities":{"detail":0.04,"listing":0.88,"landing":0.05,"not_vacancy":0.02,"unresolved":0.01},"status":"done","error":null}
{"seq":2,"id":"page-000002","input_sha":"9de63a8f1489ec0fd159882d2e10e8ed92177a667f42e3d3284a7a86485fb6a2","label":"detail","probabilities":{"detail":0.91,"listing":0.03,"landing":0.02,"not_vacancy":0.03,"unresolved":0.01},"status":"done","error":null}
```

## Patterns

### Checking a download is whole

A whole file has one line per page, numbered from 1 without a gap: compare the line count with `progress.total` from [GET /v1/jobs/{job_id}](/run/docs/reference/jobs-get.md), and check curl's exit status, which fails on a cut stream. `jq -r .status results.ndjson | sort | uniq -c` counts `done`, `failed` and `cancelled`.

## History

- 2026-10-08: added with the exports (results, usage as CSV, traces).
- 2026-10-10 implementation review: `409 results_not_ready` until the job has finished.

## See also

[GET /v1/usage.csv](/run/docs/reference/usage-csv.md), [GET /v1/traces](/run/docs/reference/traces.md), [Tracing and exports](/run/docs/tracing.md).
