Repository source

Download a source archive

Streams a gzip-compressed tar archive for a branch, tag, or full commit OID. Public repositories allow anonymous reads; supplied credentials are validated and may expand access to private resources.

get/api/repos/{owner}/{repo}/archive/{kind}/{archive}

Request

  • Base URL
    https://git.cafe
  • Auth
    • none
    • or API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:contents:read

Path parameters

ownerstring required
repostring required
kind'branch' | 'tag' | 'commit' required
archivestring required

This exact path value may contain encoded or literal slashes; the server captures all remaining URL segments as one identity.

Response

Gzip-compressed tar archive.

Changes

No recorded changes to this operation across all 1 revision of this API.