API Kaep Store
Cek saldo, beli produk otomatis (auto buy), dan ambil token akun (refresh token) dari script atau bot kamu sendiri. Saldo, stok, dan harga sama persis dengan website & bot Discord.
Mulai cepat
- 1
Bikin API key
Login, buka Akun → API & Auto Buy, klik Buat API key, lalu Salin. Lupa key? Salin lagi kapan aja dari halaman itu.
- 2
Taruh key di header
Setiap request wajib bawa header
X-API-Keyberisi key kamu. - 3
Coba cek saldo
Kalau jawabannya
"ok": true, berarti udah nyambung.
curl https://kaepstore.site/api/v1/balance -H "X-API-Key: API_KEY_KAMU"const res = await fetch('https://kaepstore.site/api/v1/balance', {
headers: { 'X-API-Key': 'API_KEY_KAMU' },
});
console.log(await res.json());import requests
res = requests.get('https://kaepstore.site/api/v1/balance', headers={'X-API-Key': 'API_KEY_KAMU'})
print(res.json())Dasar
| Alamat API | https://kaepstore.site/api/v1 |
| Login | Header X-API-Key: kaep_… (bisa juga Authorization: Bearer kaep_…) |
| Kirim data | JSON, pakai header Content-Type: application/json |
| Metode bayar | "wl" = saldo World Lock, "rp" = saldo Rupiah |
Semua jawaban formatnya sama. Cek ok dulu: kalau true datanya ada di data, kalau false alasannya ada di error.
{
"ok": true,
"data": { "...": "..." }
}{
"ok": false,
"error": {
"code": "OUT_OF_STOCK",
"message": "Stok tidak cukup! Tersisa: 3"
}
}Contoh JavaScript buat Node.js 18 ke atas (simpan sebagai file .mjs). Contoh Python butuh pip install requests. Contoh curl buat Linux, macOS, atau Git Bash di Windows.
/balanceCek saldoSaldo World Lock & Rupiah kamu, sama dengan yang ada di website dan bot Discord.
curl https://kaepstore.site/api/v1/balance -H "X-API-Key: API_KEY_KAMU"const res = await fetch('https://kaepstore.site/api/v1/balance', {
headers: { 'X-API-Key': 'API_KEY_KAMU' },
});
const json = await res.json();
if (json.ok) {
console.log('Saldo WL:', json.data.balance.wl);
console.log('Saldo Rp:', json.data.balance.rp);
} else {
console.log('Gagal:', json.error.message);
}import requests
res = requests.get('https://kaepstore.site/api/v1/balance', headers={'X-API-Key': 'API_KEY_KAMU'})
data = res.json()
if data['ok']:
print('Saldo WL:', data['data']['balance']['wl'])
print('Saldo Rp:', data['data']['balance']['rp'])
else:
print('Gagal:', data['error']['message']){
"ok": true,
"data": {
"discord_id": "1190606903911403650",
"growid": "KaepGT",
"balance": { "wl": 500, "rp": 33950 },
"total_deposit": { "wl": 1200, "rp": 35000 }
}
}/productsDaftar produkSemua produk beserta stok & harga. Mau 1 produk aja? Pakai /products/{kode}, misalnya /products/JAMAL.
price= harga per item, udah termasuk diskon.null= gak bisa dibeli pakai saldo itu.bulk= harga grosir: harga per item kalau beli minimalmin_qtydalam 1 pesanan.null= sama kayak harga biasa.
curl https://kaepstore.site/api/v1/products -H "X-API-Key: API_KEY_KAMU"const res = await fetch('https://kaepstore.site/api/v1/products', {
headers: { 'X-API-Key': 'API_KEY_KAMU' },
});
const json = await res.json();
for (const p of json.data) {
console.log(`${p.code} - ${p.name}: stok ${p.stock}, ${p.price.wl} WL`);
}import requests
res = requests.get('https://kaepstore.site/api/v1/products', headers={'X-API-Key': 'API_KEY_KAMU'})
for p in res.json()['data']:
print(f"{p['code']} - {p['name']}: stok {p['stock']}, {p['price']['wl']} WL"){
"ok": true,
"data": [
{
"code": "CID",
"name": "CID Growtopia Fresh",
"type": "item",
"stock": 34,
"sold": 93,
"price": { "wl": 3, "rp": 250 },
"discount_percent": 0,
"bulk": [
{ "min_qty": 300, "wl": null, "rp": 200 },
{ "min_qty": 1000, "wl": 2, "rp": 150 }
]
}
]
}/quoteHitung hargaHitung total persis kayak waktu beli (udah termasuk harga grosir & diskon), tanpa beli beneran.
| Parameter | Wajib | Keterangan |
|---|---|---|
code | Ya | Kode produk |
qty | Ya | Jumlah |
method | Tidak | wl (default) atau rp |
curl "https://kaepstore.site/api/v1/quote?code=JAMAL&qty=300&method=wl" -H "X-API-Key: API_KEY_KAMU"const res = await fetch('https://kaepstore.site/api/v1/quote?code=JAMAL&qty=300&method=wl', {
headers: { 'X-API-Key': 'API_KEY_KAMU' },
});
const json = await res.json();
console.log('Total:', json.data.total, 'WL');import requests
res = requests.get('https://kaepstore.site/api/v1/quote', headers={'X-API-Key': 'API_KEY_KAMU'},
params={'code': 'JAMAL', 'qty': 300, 'method': 'wl'})
print('Total:', res.json()['data']['total'], 'WL'){
"ok": true,
"data": {
"code": "CID",
"qty": 300,
"method": "wl",
"unit_price": 3,
"total": 900,
"bulk_tier": null,
"stock": 34,
"enough_stock": false
}
}/buyBeli produkBeli pakai saldo kamu. Isi produk langsung ada di jawaban (items), juga masuk ke halaman Pesanan dan dikirim bot ke DM Discord, sama kayak beli di website.
| Data (JSON) | Wajib | Keterangan |
|---|---|---|
code | Ya | Kode produk, lihat /products |
qty | Ya | Jumlah, 1 sampai 10.000 |
method | Ya | "wl" = saldo World Lock, "rp" = saldo Rupiah |
max_total | Tidak | Batas total. Kalau harga sekarang lebih mahal dari ini, gak jadi beli (error PRICE_CHANGED). Bagus buat auto buy. |
Idempotency-Key (sangat disarankan): isi kode unik per pembelian, bebas, maks 64 karakter (misal beli-cid-001). Kalau koneksi putus sebelum dapat jawaban, kirim ulang request yang sama persis dengan key yang sama: kalau tadi udah kebeli, kamu dapet pesanan yang sama ("replayed": true), gak kebeli 2 kali.curl -X POST https://kaepstore.site/api/v1/buy \
-H "X-API-Key: API_KEY_KAMU" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: beli-cid-001" \
-d '{"code": "JAMAL", "qty": 2, "method": "wl", "max_total": 10}'const res = await fetch('https://kaepstore.site/api/v1/buy', {
method: 'POST',
headers: {
'X-API-Key': 'API_KEY_KAMU',
'Content-Type': 'application/json',
'Idempotency-Key': 'beli-cid-001',
},
body: JSON.stringify({ code: 'JAMAL', qty: 2, method: 'wl', max_total: 10 }),
});
const json = await res.json();
if (json.ok) {
console.log('Order #' + json.data.order_no);
console.log(json.data.items.join('\n'));
} else {
console.log(json.error.code, json.error.message);
}import requests
res = requests.post('https://kaepstore.site/api/v1/buy',
headers={'X-API-Key': 'API_KEY_KAMU', 'Idempotency-Key': 'beli-cid-001'},
json={'code': 'JAMAL', 'qty': 2, 'method': 'wl', 'max_total': 10})
data = res.json()
if data['ok']:
print('Order #', data['data']['order_no'])
print('\n'.join(data['data']['items']))
else:
print(data['error']['code'], data['error']['message']){
"ok": true,
"data": {
"order_no": 1525,
"code": "CID",
"product": "CID Growtopia Fresh",
"qty": 2,
"method": "wl",
"unit_price": 3,
"total": 6,
"source": "api",
"created_at": "2026-10-27T21:22:05+07:00",
"items": ["cid1:pass1", "cid2:pass2"],
"discord_dm": true,
"balance_after": 494
}
}Produk tipe item: 1 isi = 1 baris di items. Produk tipe script: seluruh isi script ada di items[0]. Kalau "ok": false, saldo kamu gak berkurang.
/ordersRiwayat & detail pesanan/orders?limit=10 = pesanan terbaru (maks 50, tanpa isi produk). /orders/{nomor} = detail 1 pesanan lengkap dengan isinya, berguna buat ngambil ulang produk kalau tadi koneksi putus.
curl https://kaepstore.site/api/v1/orders/1525 -H "X-API-Key: API_KEY_KAMU"const res = await fetch('https://kaepstore.site/api/v1/orders/1525', {
headers: { 'X-API-Key': 'API_KEY_KAMU' },
});
const json = await res.json();
console.log(json.data.items);import requests
res = requests.get('https://kaepstore.site/api/v1/orders/1525', headers={'X-API-Key': 'API_KEY_KAMU'})
print(res.json()['data']['items'])/refreshRefresh token akunKirim daftar email, dapet token login terbaru tiap akun dari database akun, sama kayak tool Refresh Token di website. Cuma baca (read-only): gak login ke Growtopia dan gak ngubah apa pun.
| Data (JSON) | Wajib | Keterangan |
|---|---|---|
emails | Ya | Array email (["[email protected]", "[email protected]"]), atau teks 1 email per baris. Baris format lama (email|…) juga bisa, emailnya diambil otomatis. |
include_script | Tidak | true = jawaban juga berisi script: script login Lucifer yang udah keisi semua hasil, tinggal tempel. |
Tiap akun yang berhasil jadi 1 baris di success dengan format email|mac:rid:wk:token:platform. MAC juga pakai :, jadi ambil platform dari bagian paling belakang.
| platform | Artinya |
|---|---|
0 | Windows |
2 | macOS |
1 | iOS |
4 | Android |
curl -X POST https://kaepstore.site/api/v1/refresh \
-H "X-API-Key: API_KEY_KAMU" \
-H "Content-Type: application/json" \
-d '{"emails": ["[email protected]", "[email protected]"]}'const res = await fetch('https://kaepstore.site/api/v1/refresh', {
method: 'POST',
headers: { 'X-API-Key': 'API_KEY_KAMU', 'Content-Type': 'application/json' },
body: JSON.stringify({ emails: ['[email protected]', '[email protected]'] }),
});
const json = await res.json();
if (json.ok) {
for (const line of json.data.success) {
const platform = line.split(':').pop(); // 0 Windows, 2 macOS
console.log(line, '-> platform', platform);
}
console.log('Gagal:', json.data.failed);
} else {
console.log(json.error.code, json.error.message);
}import requests
# emails.txt: 1 email per baris
emails = open('emails.txt', encoding='utf-8').read()
res = requests.post('https://kaepstore.site/api/v1/refresh', headers={'X-API-Key': 'API_KEY_KAMU'},
json={'emails': emails, 'include_script': True}, timeout=60)
data = res.json()
if data['ok']:
open('hasil.txt', 'w', encoding='utf-8').write('\n'.join(data['data']['success']))
open('login.lua', 'w', encoding='utf-8').write(data['data']['script'])
print('Sukses:', data['data']['counts']['success'], '| Gagal:', data['data']['counts']['failed'])
else:
print(data['error']['code'], data['error']['message']){
"ok": true,
"data": {
"total": 3,
"counts": { "success": 2, "failed": 1 },
"success": [
"[email protected]|02:1A:2B:3C:4D:5E:8c1f0d2e9b7a4c3d5e6f708192a3b4c5:e3b0c44298fc1c149afbf4c8996fb924:TOKEN_AKUN_1:2",
"[email protected]|02:6F:7A:8B:9C:0D:1b2c3d4e5f60718293a4b5c6d7e8f901:4a5b6c7d8e9f00112233445566778899:TOKEN_AKUN_2:0"
],
"failed": ["[email protected]"],
"platforms": { "macOS": 1, "Windows": 1 },
"truncated": false
}
}failed= email yang gak ketemu, token kosong, datanya rusak, atau bukan email.wkdibikin acak tiap request, jadi hasilnya beda-beda tiap kali dipanggil. Itu normal.- Script login bawaan (
include_script) cuma login akun platform0&2, akun platform lain di-skip. truncated: true= email kebanyakan, yang diproses cuma 50,000 pertama.db_errorsmuncul kalau database akun lagi error, coba lagi bentar.
Contoh auto buy
Script ini ngecek stok tiap 30 detik. Begitu stok cukup, langsung beli (dengan max_total & Idempotency-Key biar aman), nampilin isi produknya, lalu berhenti. Tinggal ganti bagian paling atas.
// autobuy.mjs - jalanin: node autobuy.mjs
const API = 'https://kaepstore.site/api/v1';
const KEY = 'API_KEY_KAMU';
const CODE = 'JAMAL'; // kode produk
const QTY = 10; // jumlah yang mau dibeli
const METHOD = 'wl'; // 'wl' = saldo World Lock, 'rp' = saldo Rupiah
const MAX_TOTAL = 50; // batal kalau total lebih mahal dari ini
const CEK_TIAP = 30; // cek stok tiap berapa detik
const sleep = (detik) => new Promise((r) => setTimeout(r, detik * 1000));
async function api(path, options = {}) {
const res = await fetch(API + path, {
...options,
headers: { 'X-API-Key': KEY, 'Content-Type': 'application/json', ...options.headers },
});
return res.json();
}
async function beli() {
// 1 Idempotency-Key = 1 pembelian. Kalau koneksi putus, dikirim ulang pakai key yang SAMA (gak kebeli 2x).
const idem = `autobuy-${CODE}-${Date.now()}`;
for (let coba = 1; coba <= 3; coba++) {
try {
return await api('/buy', {
method: 'POST',
headers: { 'Idempotency-Key': idem },
body: JSON.stringify({ code: CODE, qty: QTY, method: METHOD, max_total: MAX_TOTAL }),
});
} catch {
console.log('Koneksi putus, kirim ulang...');
await sleep(3);
}
}
throw new Error('Gagal terus. Cek GET /orders dulu sebelum jalanin lagi.');
}
while (true) {
let produk;
try {
produk = await api(`/products/${CODE}`);
} catch {
console.log('Koneksi error, coba lagi nanti...');
await sleep(CEK_TIAP);
continue;
}
if (!produk.ok) {
console.log('Error:', produk.error.message);
break;
}
if (produk.data.stock >= QTY) {
const hasil = await beli();
if (hasil.ok) {
console.log(`Berhasil! Order #${hasil.data.order_no}, total ${hasil.data.total}`);
console.log(hasil.data.items.join('\n'));
break;
}
console.log('Belum bisa beli:', hasil.error.code, '-', hasil.error.message);
if (['INSUFFICIENT_BALANCE', 'PRICE_CHANGED', 'UNAUTHORIZED'].includes(hasil.error.code)) break;
} else {
console.log(`Stok ${produk.data.stock}, nunggu restock...`);
}
await sleep(CEK_TIAP);
}# autobuy.py - jalanin: python autobuy.py (butuh: pip install requests)
import time
import requests
API = 'https://kaepstore.site/api/v1'
KEY = 'API_KEY_KAMU'
CODE = 'JAMAL' # kode produk
QTY = 10 # jumlah yang mau dibeli
METHOD = 'wl' # 'wl' = saldo World Lock, 'rp' = saldo Rupiah
MAX_TOTAL = 50 # batal kalau total lebih mahal dari ini
CEK_TIAP = 30 # cek stok tiap berapa detik
HEADERS = {'X-API-Key': KEY}
def beli():
# 1 Idempotency-Key = 1 pembelian. Kalau koneksi putus, dikirim ulang pakai key yang SAMA (gak kebeli 2x).
idem = f'autobuy-{CODE}-{int(time.time())}'
for _ in range(3):
try:
res = requests.post(f'{API}/buy', headers={**HEADERS, 'Idempotency-Key': idem}, timeout=30,
json={'code': CODE, 'qty': QTY, 'method': METHOD, 'max_total': MAX_TOTAL})
return res.json()
except requests.RequestException:
print('Koneksi putus, kirim ulang...')
time.sleep(3)
raise SystemExit('Gagal terus. Cek GET /orders dulu sebelum jalanin lagi.')
while True:
try:
produk = requests.get(f'{API}/products/{CODE}', headers=HEADERS, timeout=15).json()
except requests.RequestException:
print('Koneksi error, coba lagi nanti...')
time.sleep(CEK_TIAP)
continue
if not produk['ok']:
print('Error:', produk['error']['message'])
break
if produk['data']['stock'] >= QTY:
hasil = beli()
if hasil['ok']:
print(f"Berhasil! Order #{hasil['data']['order_no']}, total {hasil['data']['total']}")
print('\n'.join(hasil['data']['items']))
break
print('Belum bisa beli:', hasil['error']['code'], '-', hasil['error']['message'])
if hasil['error']['code'] in ('INSUFFICIENT_BALANCE', 'PRICE_CHANGED', 'UNAUTHORIZED'):
break
else:
print(f"Stok {produk['data']['stock']}, nunggu restock...")
time.sleep(CEK_TIAP)Kode error
Kalau "ok": false, baca error.code buat tahu harus ngapain.
| error.code | HTTP | Artinya & solusinya |
|---|---|---|
UNAUTHORIZED | 401 | API key salah atau belum dikirim. Cek header X-API-Key, atau buat ulang key. |
RATE_LIMITED | 429 | Kebanyakan request. Tunggu sesuai header Retry-After (detik). |
INVALID_INPUT | 400 | Data request salah/kurang (code, qty, method, max_total, Idempotency-Key, emails), atau input refresh lebih dari 256 KB. |
INVALID_QTY | 400 | qty harus 1 sampai 10.000. |
INVALID_METHOD | 400 | method harus "wl" atau "rp". |
PRODUCT_NOT_FOUND | 404 | Kode produk gak ada. Cek /products. |
NOT_FOUND | 404 | Pesanan gak ada atau bukan punya kamu. |
OUT_OF_STOCK | 422 | Stok kurang. Tunggu restock. |
INSUFFICIENT_BALANCE | 422 | Saldo kurang. Isi saldo dulu. |
PRICE_CHANGED | 422 | Total sekarang lebih mahal dari max_total kamu. Cek harga lagi (/quote). |
PRICE_NOT_SET | 422 | Harga produk buat metode itu belum di-set owner. Coba metode lain. |
NOT_REGISTERED | 422 | Akun belum isi GrowID. Isi dulu di website. |
IN_PROGRESS | 409 | Idempotency-Key yang sama lagi diproses / statusnya gak pasti. Cek /orders dulu, baru coba lagi pakai key baru. |
MAINTENANCE | 503 | Toko lagi maintenance. Coba lagi nanti. |
API_DISABLED | 403 | API lagi dimatiin owner. |
REFRESH_DISABLED | 403 | Refresh token lagi dimatiin owner (database akun belum di-set). |
SERVER_ERROR | 500 | Ada error di server. Cek /orders dulu sebelum coba beli lagi. |
Batasan & keamanan
- Maksimal 60 request/menit per key, khusus beli maksimal 20/menit, khusus refresh token maksimal 15/menit. Buat auto buy, cek stok tiap 15–30 detik udah cukup.
- Refresh token maksimal 256 KB per request. Lebih dari itu, pecah jadi beberapa request.
- Maksimal 10.000 pcs per pesanan. Harga & diskon sama dengan website.
- Pembelian lewat API dapat DM & role Discord sama kayak beli di website, dan muncul di halaman Pesanan dengan sumber API.
- API key = akses ke saldo kamu. Jangan dibagi, jangan di-upload ke GitHub atau tempat publik. Kalau bocor, buat ulang key: key lama langsung gak berlaku.