Documentation
Jobs and results
View .mdOpenAPI

Download job results as NDJSON

GEThttps://weights.fyi/run/v1/jobs/{job_id}/results.ndjsonscope: read
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 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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the read scope. Reads are not counted against the token's request rate.
job_idpathyesThe 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:

FieldMeaning
seqThe page's sequence number, 1 for the first page you sent.
idYour own identifier for the page, as text, or null when you sent none.
input_shaThe SHA-256 of the page's UTF-8 text, 64 hexadecimal characters.
labelThe role the model gives the page: detail, listing, landing, not_vacancy or unresolved; null until the page is done.
probabilitiesThe model's calibrated probability for each of the five labels; null until the page is done.
statusdone, failed, cancelled, queued or leased.
errorWhy a failed page failed, as a short code; otherwise null.

Errors

StatusCodeWhen it happensWhat to do
400not_a_page_jobThe job is a training job; results gives the path of its results.Read GET /v1/jobs/{job_id}/results instead.
409results_not_readyThe job has not finished; the answer carries Retry-After: 1 and a message.Read finished rows with GET /v1/jobs/{job_id}/results, and download once the job has finished.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read; for a suspended account, talk to us.
404job_not_foundThe 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}, 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, GET /v1/traces, Tracing and exports.