API CekIDENGINE
API Reference Documentation

Dokumentasi API Cek ID Game & Validation Bank

Panduan integrasi REST API resmi untuk validasi Nickname Player Game dan Rekening Bank / E-Wallet.

Cara Autentikasi API Key

API CekID mendukung dua gaya otentikasi (gaya **Modern REST Header** maupun **Legacy Body Parameter**). Anda bebas memilih salah satu:

1. Header HTTP (Modern REST)

Kirimkan API Key melalui Header HTTP:

X-API-KEY: YOUR_API_KEY

Atau: Authorization: Bearer YOUR_API_KEY

2. Body Request (Legacy Parameter)

Kirimkan API Key melalui parameter body:

"key": "YOUR_API_KEY"

Atau opsi signature: "sign": "md5(api_id + api_key)"

Api Documentation Validation Game

Endpoint Validation Game
[ POST ] https://api.topupku.com/api/check-game
Content-Type: application/json / form-data
Parameter Type Description
key string Berisi API Key anda (wajib jika tidak dikirim via Header X-API-KEY).
sign string Opsional. Formula: md5(API_ID + API_KEY).
type string Opsional. Nilai: game.
code string Kode / nama game yang ingin anda cek (contoh: mobilelegend, freefire). Bisa dilihat di menu list game.
user_id string Game User ID / Player ID.
zone_id string Server ID / Zone ID (Wajib untuk game tertentu seperti Mobile Legends, kosongkan untuk game lain).
Example Success Response (200 OK)
{
    "code": 200,
    "status": true,
    "data": {
        "game": "Mobile Legends",
        "user_id": "5432455",
        "zone_id": "2459",
        "username": "Kuproy"
    },
    "message": "ID Terdeteksi"
}

Api Documentation Validation Bank

Endpoint Validation Bank
[ POST ] https://api.topupku.com/api/check-bank
Content-Type: application/json / form-data
Parameter Type Description
key string Berisi API Key anda (wajib jika tidak dikirim via Header X-API-KEY).
sign string Opsional. Formula: md5(API_ID + API_KEY).
type string Opsional. Nilai: validation.
bank_code string Kode bank / e-wallet yang ingin anda cek (contoh: bca, bni, dana, gopay). Bisa dilihat di menu list bank.
number string Nomor rekening terdaftar / nomor telepon e-wallet.
Example Success Response (200 OK)
{
    "code": 200,
    "status": true,
    "data": {
        "Bank_Name": "Bank BNI",
        "Bank_Code": "009",
        "Number": "123456789",
        "Name": "bni"
    },
    "message": "Successfully Validation Bank."
}

Endpoint List Game & Bank (Public GET)

GET https://api.topupku.com/api/games

Mengambil daftar seluruh game aktif beserta indikator kebutuhan user_id dan zone_id.

GET https://api.topupku.com/api/banks

Mengambil daftar seluruh bank dan e-wallet aktif beserta kode bank resmi.

Contoh Kode Integrasi Client

1. cURL (Header REST API Modern)
curl -X POST "https://api.topupku.com/api/check-game" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "game_code": "mobilelegend", "user_id": "5432455", "zone_id": "2459" }'
2. cURL (Body Parameter / Legacy Style)
curl -X POST "https://api.topupku.com/api/check-game" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "key=YOUR_API_KEY&type=game&code=mobilelegend&user_id=5432455&zone_id=2459"
3. PHP (cURL Native)
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.topupku.com/api/check-game"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-API-KEY: YOUR_API_KEY', 'Content-Type: application/json' ]); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'game_code' => 'mobilelegend', 'user_id' => '5432455', 'zone_id' => '2459' ])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $result = json_decode($response, true); print_r($result);