buckets

Get file metadata

Changed on

Returns file metadata including size, hash, and links to XET authentication

get/buckets/{namespace}/{repo}/resolve/{path}

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/buckets/{namespace}/{repo}/resolve/{path}
  • Auth: HTTP bearer

Path parameters

namespacestring required
repostring required
pathstring required

Wildcard path parameter

Query parameters

noContentDispositionstring
downloadstring

Headers

Accept'application/vnd.xet-fileinfo+json'

Returns json information about the XET file info

Response

XET file info returned when the Accept header is set to application/vnd.xet-fileinfo+json. Otherwise, a 302 redirect is returned.

hashstring required

The XET hash of the file

refreshUrlstring required

The XET auth URL for the file

reconstructionUrlstring required

The XET reconstruction URL for the file

etagstring required

The ETag of the file

sizenumber required

The size of the file

contentTypestring

The content type of the file

uploadedAtstring required

ISO 8601 timestamp of when the file was added to the bucket

Changes

    • info

      added the required property to the response with the status

    • info

      for the header request parameter Accept, the type was generalized from no type to string

    • info

      for the query request parameter download, the type was generalized from no type to string

    • info

      for the query request parameter noContentDisposition, the type was generalized from no type to string