How to download the source in ZIP format from GitHub?


I want to download a source code from GitHub using API and UI, how to do that?


Using API:

If you have a repository say “” and the branch you want to download is “main” then the link or URL to download your code will be “” or “

You can use wget command to download a public GitHub repository as shown below

Using GitHub UI:

In your repository page, click “Code” => “Download ZIP”.

Leave a Reply