Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.26.4, which is no longer the latest release. See the latest release.

Gets all files of a package

GET
/packages/{owner}/{type}/{name}/{version}/files
curl --request GET \
--url https://gitea.com/api/v1/packages/example/example/example/example/files \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the package

type
required
string

Type of the package

name
required
string

Name of the package

version
required
string

Version of the package

PackageFileList

Media typeapplication/json
Array<object>

PackageFile represents a package file

object
id

The unique identifier of the package file

integer format: int64
md5

The MD5 hash of the package file

string
name

The name of the package file

string
sha1

The SHA1 hash of the package file

string
sha256

The SHA256 hash of the package file

string
sha512

The SHA512 hash of the package file

string
size

The size of the package file in bytes

integer format: int64
Examplegenerated
[
{
"id": 1,
"md5": "example",
"name": "example",
"sha1": "example",
"sha256": "example",
"sha512": "example",
"size": 1
}
]

APINotFound is a not found empty response

Media typeapplication/json