Lewati ke konten
BerandaProyekCatatanBak pasir
Sign in
M. Revi Ramadhan

M. Revi Ramadhan

Teknisi Perangkat LunakTeknisi Perangkat Lunak

Berbasis di Indonesia dengan pengalaman lebih dari 4 tahun di bidang rekayasa perangkat lunak. Telah menyelesaikan 20+ proyek untuk klien di seluruh dunia.

Dokumentasi API

Proxy API GitHub + tempat bermain kode gratis. Tidak perlu token GitHub – cukup gunakan kunci API Anda.

Otentikasi

Semua endpoint memerlukan kunci API. Sertakan dalam header permintaan:

x-api-key: your_api_key_here

Cara mendapatkan API Key:

  1. Masuk ke revy.my.id/profile
  2. Gulir ke bagian "Autentikasi API"
  3. Kunci API Anda dibuat secara otomatis saat pertama kali Anda mengunjungi
  4. Salin dan simpan dengan aman – kunci lengkap hanya ditampilkan sekali

URL Dasar

https://api.revy.my.id

Proxy API GitHub

Akses gratis ke API GitHub melalui proxy. Mendukung info pengguna, repositori, pencarian, organisasi, gist, dan batas penggunaan.

GET/api/github

Pass path param to target a GitHub API endpoint.

Parameter

ParameterCompulsoryDeskripsi
pathOke?Jalur API GitHub (lihat contoh di bawah)
qTidakKueri pencarian (untuk titik akhir pencarian)
sortTidakUrutkan bidang (dibintangi, diperbarui, dibuat, dll.)
per_pageTidakHasil per halaman (default: 30, maks: 100)

Allowed Paths & Examples

user - Info pengguna yang masuk

GET https://api.revy.my.id/api/github?path=user

curl -H "x-api-key: YOUR_KEY" \
  "https://api.revy.my.id/api/github?path=user"

users/{username} - Profil publik pengguna

GET https://api.revy.my.id/api/github?path=user/revyfachryza

curl -H "x-api-key: YOUR_KEY" \
  "https://api.revy.my.id/api/github?path=user/revyfachryza"

user/repos - Repositori pengguna masuk

GET https://api.revy.my.id/api/github?path=user/repos&per_page=10

curl -H "x-api-key: YOUR_KEY" \
  "https://api.revy.my.id/api/github?path=user/repos&per_page=10"

users/{username}/repos - Repo publik pengguna

GET https://api.revy.my.id/api/github?path=user/revyfachryza/repos&sort=updated&per_page=5

search/repositories - Cari repositori

GET https://api.revy.my.id/api/github?path=search/repositories&q=nextjs+typescript&sort=stars&per_page=10

curl -H "x-api-key: YOUR_KEY" \
  "https://api.revy.my.id/api/github?path=search/repositories&q=nextjs&sort=stars"

search/users - Cari pengguna

GET https://api.revy.my.id/api/github?path=search/users&q=revy

user/orgs - Kelola pengguna yang akan bergabung

GET https://api.revy.my.id/api/github?path=user/orgs

users/{username}/gists - Ringkasan User

GET https://api.revy.my.id/api/github?path=user/revyfachryza/gists&per_page=5

rate_limit - Cek status batas rate API

GET https://api.revy.my.id/api/github?path=rate_limit

Format Respons

{
  "status": "ok",
  "data": { ... },
  "meta": {
    "path": "user/repos",
    "authenticated": true,
    "rateLimit": "59",
    "rateLimitReset": "1711929600"
  }
}

Playground Kode

Jalankan kode Go, Rust, atau PHP melalui kontainer sandbox. Tidak ada akses jaringan dari luar sandbox.

POST/api/playground

Bahasa yang didukung

gorustphp

Permintaan Konten

{
  "lang": "go",
  "code": "package main\nimport \"fmt\"\nfunc main() { fmt.Println(\"Hello!\") }"
}

Contoh

curl -X POST https://api.revy.my.id/api/playground \
  -H "Content-Type: application/json" \
  -H "x-api-key: your_api_key_here" \
  -d '{"lang":"go","code":"package main\nimport \"fmt\"\nfunc main() { fmt.Println(\"Hello from Go!\") }"}'

Respons

{
  "error": false,
  "output": "Hello from Go!"
}

Fitur Sandbox

JavaScript

Berjalan langsung di peramban dengan rendering dan responsivitas asli.

Python

CPython asli melalui Pyodide (WebAssembly); permintaan disesuaikan menggunakan jaringan peramban.

TypeScript

Ditranspilasi ke JS melalui kompilator TS resmi, lalu dijalankan secara langsung.

cURL

Baca perintah curl dan jalankan melalui server proxy – tanpa batasan CORS.

Go / Rust / PHP

Dikompilasi & dijalankan melalui glot.io (sisi server). Tidak ada akses jaringan di luar sandbox.

Penyimpanan Kode

Kode Anda disimpan hingga tombol Reset ditekan. Mengubah bahasa tidak akan menghapus perubahan.

Respons Kesalahan

401 Unauthorized
{ "error": "API key required" }
{ "error": "Invalid API key" }
{ "error": "API key is inactive" }
{ "error": "API key expired" }
403 Forbidden
429 Too Many Requests
{ "error": "Rate limit exceeded" }

Batas Tarif

Batas laju diterapkan per kunci API setiap jam. Respons menyertakan info batas laju GitHub di meta.rateLimit.

Bantuan

Ada pertanyaan? Hubungi saya melalui Formulir kontak.