GitHub Repo Downloader API

Dokumentasi resmi GitHub Repo Downloader API dari Maelyn API untuk info repo, arsip tarball/zipball, dan aset rilis terbaru (terverifikasi)

Base Information

  • BASE_URL_API: https://api.maelyn.eu/api
  • Path / Endpoint: /downloader/github
  • Method: GET
  • Credit Usage: 1

Authentication

Gunakan header berikut pada setiap request:

x-maelyn-auth: YOUR_API_KEY

Query Parameters

Endpoint ini mengembalikan info repo publik (bintang, fork, lisensi), URL arsip tarball/zipball per ref, dan aset rilis terbaru — semua URL file diverifikasi valid.

Example Request

GET /downloader/github?repo=octocat/Hello-World

Parameters

NameTypeRequiredDescription
repostringYesFormat owner/name. Contoh: octocat/Hello-World
refstringNoBranch/tag/commit (default: branch utama).

Example Usage

GET /downloader/github?repo=octocat/Hello-World&ref=master

Success Response

{
  "success": true,
  "data": {
    "platform": "github",
    "repo": "octocat/Hello-World",
    "description": "My first repository on GitHub!",
    "stars": 10000,
    "forks": 5000,
    "language": null,
    "license": null,
    "default_branch": "master",
    "ref": "master",
    "archives": [
      {
        "label": "tarball",
        "url": "https://api.github.com/repos/octocat/Hello-World/tarball/master",
        "valid": true,
        "content_type": "application/x-gzip",
        "size": null
      },
      {
        "label": "zipball",
        "url": "https://api.github.com/repos/octocat/Hello-World/zipball/master",
        "valid": true,
        "content_type": "application/zip",
        "size": null
      }
    ],
    "latest_release": {
      "tag": "v1.0",
      "name": "First release",
      "published_at": "2024-01-01T00:00:00Z",
      "assets": [
        {
          "name": "app.zip",
          "size": 123456,
          "download_count": 100,
          "url": "https://github.com/.../download/.../app.zip",
          "valid": true,
          "content_type": "application/zip"
        }
      ]
    }
  }
}

Error Response

Repo Not Found

{
  "success": false,
  "error": "NOT_FOUND",
  "message": "Repo tidak ditemukan / privat."
}

Playground