# Github rest API for downloading gitea release assets missing some assets

**URL:** <https://forum.gitea.com/t/github-rest-api-for-downloading-gitea-release-assets-missing-some-assets/3730>\
**Category:** API/SDK/Tea/HelmChart/Terraform\
**Created:** [September 5, 2021, 7:56pm UTC](https://forum.gitea.com/t/github-rest-api-for-downloading-gitea-release-assets-missing-some-assets/3730 "2021-09-05T19:56:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TraceyC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/traceyc/32/1576_2.png) [@TraceyC](https://forum.gitea.com/u/TraceyC)\
**Post date:** [September 5, 2021, 7:56pm UTC](https://forum.gitea.com/t/github-rest-api-for-downloading-gitea-release-assets-missing-some-assets/3730/1 "2021-09-05T19:56:15Z")

</div>

I’ve got a small perl script to backup my gitea instance, download the latest release and install it. In the script, I’m trying to get a download link using the github rest API for a “linux-amd64” xz file for the latest release based on the URL

```auto
https://api.github.com/repos/go-gitea/gitea/releases/latest

```

This returns (abbreviated)

```auto
url	"https://api.github.com/repos/go-gitea/gitea/releases/48960628"
assets_url	"https://api.github.com/repos/go-gitea/gitea/releases/48960628/assets"
upload_url	"https://uploads.github.com/repos/go-gitea/gitea/releases/48960628/assets{?name,label}"
html_url	"https://github.com/go-gitea/gitea/releases/tag/v1.15.2"
id	48960628

```

This URL [https://api.github.com/repos/go-gitea/gitea/releases/48960628/assets](https://api.github.com/repos/go-gitea/gitea/releases/48960628/assets)  
doesn’t have all the assets that are listed in the URL for users to download files:  
[Release v1.15.2 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/releases/tag/v1.15.2)

None of the linux-amd64 assets are listed there.  
I’m looking specifically for gitea-1.15.2-linux-amd64.xz which is here:

```auto
https://github.com/go-gitea/gitea/releases/download/v1.15.2/gitea-1.15.2-linux-amd64.xz

```

That URL is not in the assets link.

This has worked for me in the past. Is this a configuration issue in the gitea repo on github?

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [September 12, 2021, 7:55pm UTC](https://forum.gitea.com/t/github-rest-api-for-downloading-gitea-release-assets-missing-some-assets/3730/2 "2021-09-12T19:55:32Z")

</div>

Likely it’s not being listed for pagination sake, we have a lot more assets.

I recommend instead referring to [gitea | Gitea](https://dl.gitea.io/gitea/) for download assets, it even has a json api. it’s `curl -H "Accept: application/json" https://dl.gitea.io/gitea` (ignore the `latest` field in the value though).
