Documentation
Datasets
View .mdOpenAPI

Get a dataset

GEThttps://weights.fyi/run/v1/datasets/{dataset_id}scope: read
text
GET https://weights.fyi/run/v1/datasets/<dataset_id>
Authorization: Bearer <token>                    scope: read
Available since
2026-10-08, with fine-tuning, the day the service went live on weights.fyi/run. Merged on 2026-10-09 and live from the deploy that carries it: datasets count against storage limits.
Answer time
synchronous: the dataset is read from the service's own records and answered at once.

Reads one dataset of your account: its status, the counts and the digest of its file once one is accepted, and the training jobs that used it. This is the call to make after an upload whose answer you lost, to learn whether the file was accepted; and before a training job, to check that train_rows and validation_rows are what you expect, since the training estimate is computed from them.

The answer has the same shape as an entry of GET /v1/datasets. Unlike the list, this call also answers for a dataset you deleted: it shows the dataset in status deleted, with its name, counts and digest kept, so that a training job that names it still leads somewhere. The file itself is gone from storage once a dataset is deleted, and a deleted dataset can neither take an upload nor train. A dataset that belongs to another account answers exactly as one that does not exist, 404 dataset_not_found, so an id can never tell you whether someone else has it. The call reads the service's records only, so it answers whether or not fine-tuning is switched on.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token. The token needs the read scope; reads do not count against the request rate.
dataset_idpathyesThe dataset's identifier, ds_ followed by 24 hexadecimal characters.

Return value

200 OK with the dataset.

FieldMeaning
dataset_idThe dataset's identifier.
nameThe name you gave the dataset when you made it.
formatThe file format, laya-page-role/jsonl.
base_modelThe model the dataset trains, laya-page-role-base.
labelsThe labels its rows may carry, in the base model's order.
statusuploading (no file accepted yet), ready (a file accepted; it can train), failed (the last upload was refused) or deleted (removed; its file is gone).
errorThe code of the last refused upload, or null.
rows, train_rows, validation_rowsThe rows in the accepted file, in all and per split; null until a file is accepted.
bytesThe accepted file's size in bytes, or null.
sha256The SHA-256 of the accepted file, or null. Compare it with your own copy's digest.
created_atWhen the dataset was made.
ready_atWhen its file was accepted, or null.
jobsEvery training job that has used the dataset, oldest first.

Errors

StatusCodeWhen it happensWhat to do
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.
404dataset_not_foundThere is no such dataset in your account.Check the id with GET /v1/datasets.

Examples

sh
curl -s https://weights.fyi/run/v1/datasets/DATASET_ID -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "dataset_id": "ds_12be8b8818ceaf13696e7ff9",
  "name": "my labelled pages",
  "format": "laya-page-role/jsonl",
  "base_model": "laya-page-role-base",
  "labels": ["detail", "listing", "landing", "not_vacancy", "unresolved"],
  "status": "ready",
  "error": null,
  "rows": 50,
  "train_rows": 40,
  "validation_rows": 10,
  "bytes": 8935,
  "sha256": "96c0db13101fe3bbdf7aa2fa278fe54799434ae60fc1ecbe52e66f9fb972f506",
  "created_at": "2026-10-09T08:28:09.826Z",
  "ready_at": "2026-10-09T08:28:09.829Z",
  "jobs": ["job_a698e920d5f0db918008bc43"]
}

History

  • 2026-10-08: live with fine-tuning.
  • 2026-10-09 (merged, live from the deploy that carries it): every dataset not deleted counts against your account's storage limits, a failed or uploading one with the largest size until it is deleted; see POST /v1/datasets.

See also