---
title: "Download Tarball"
method: GET
path: "/api/{namespace}/{repository}/tree/{tree}/download/targz"
tags: ["repository"]
---

# Download Tarball

`GET /api/{namespace}/{repository}/tree/{tree}/download/targz`

## Request

- Base URL: `https://api.git.mari.zip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.git.mari.zip/api/{namespace}/{repository}/tree/{tree}/download/targz`
- Auth: one of:
  - none
  - API key in cookie `gitarena-session`
- TypeScript: <https://skmtc.dev/mari/apis/gitarena/docs/api/:namespace/:repository/tree/:tree/download/targz/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `namespace` string, required
- `repository` string, required
- `tree` string, required

## Response `200`

.tar.gz archive of the repository source content

## Changes

- **2026-10-29** `efaeb85ac1be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mari/apis/gitarena/changes/api/:namespace/:repository/tree/:tree/download/targz/get.md)

---

[API](https://skmtc.dev/mari/apis/gitarena.md) - [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) - [OpenAPI document](https://skmtc.dev/mari/apis/gitarena/revisions/437eec085d26?raw)
