API Key. IP anda perlu di-whitelist.
Base endpoint: https://api.gamevia.shop/v1.
Jika ada masalah, hubungi WA Admin.
- Klik "Dapatkan API Key" di atas
- Login ke akaun GameVia anda
- Pergi ke halaman Account Settings
- Cari section API Key
- Generate API Key baru atau gunakan yang sedia ada
- Salin API Key dan gunakan dalam kod anda
1. ML Check API NEW
Endpoint: POST /ml-check.php
Description: Check status dan maklumat Mobile Legends account
Headers: x-api-key: YOUR_API_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id |
String | ✅ Yes | Mobile Legends User ID |
zone_id |
String | ✅ Yes | Mobile Legends Zone ID |
📊 Response Structure (Success):
📝 Raw JSON Response:
{
"success": true,
"data": {
"success": true,
"message": "Success",
"data": {
"nickname": "Prince+Zham+?",
"account_created_from": "Malaysia",
"account_login_from": "Malaysia",
"created_at": "20:07, 19 October 2025"
}
},
"request_id": "ml_68f4d487a450b",
"user_info": {
"username": "BRENz",
"api_requests": "unlimited"
}
}
2. Check Games
Endpoint: POST /check_games.php
Description: Dapatkan senarai semua games yang tersedia
Headers: x-api-key: YOUR_API_KEY
📊 Response Structure:
📝 Raw JSON Response:
{
"success": true,
"games": [
{
"slug": "mlbb",
"name": "Mobile Legends"
},
{
"slug": "ff",
"name": "Free Fire"
},
{
"slug": "pubg",
"name": "PUBG Mobile"
},
{
"slug": "cod",
"name": "Call of Duty Mobile"
}
]
}
3. Get Products
Endpoint: POST /get_products.php
Description: Dapatkan senarai produk untuk game tertentu
Headers: x-api-key: YOUR_API_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
slug |
String | ✅ Yes | Game slug (mlbb, ff, pubg, cod) |
📊 Response Structure (Mobile Legends):
📝 Raw JSON Response:
{
"success": true,
"slug": "mlbb",
"game_name": "Mobile Legends",
"products": [
{
"name": "Diamonds 12",
"srv_code": "ML12",
"price": 5.00,
"stock": "available"
},
{
"name": "Diamonds 50",
"srv_code": "ML50",
"price": 20.00,
"stock": "available"
},
{
"name": "Diamonds 100",
"srv_code": "ML100",
"price": 38.00,
"stock": "available"
}
]
}
4. Order
Endpoint: POST /order.php
Description: Buat pesanan baru untuk topup game
Headers: x-api-key: YOUR_API_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
srv_code |
String | ✅ Yes | Product service code (ML12, ML50, etc) |
user_id |
String | ✅ Yes | Game User ID |
zone_id |
String | ✅ Yes | Game Zone ID |
📊 Response Structure:
📝 Raw JSON Response:
{
"success": true,
"custom_order_id": "GV20251016123456789",
"api_order_id": "MTK123456",
"status": "Success",
"amount": 5.00,
"description": "Diamonds 12 for Mobile Legends",
"user_id": "12345",
"zone_id": "1"
}
5. Check Account
Endpoint: POST /check_account.php
Description: Dapatkan maklumat akaun dan baki semasa
Headers: x-api-key: YOUR_API_KEY
📊 Response Structure:
📝 Raw JSON Response:
{
"success": true,
"account": {
"username": "reseller123",
"email": "reseller@example.com",
"phone": "0123456789",
"balance": 150.75,
"role": "reseller",
"kyc_status": "verified",
"joined_date": "2024-01-15"
}
}
6. Get History
Endpoint: POST /get_history.php
Description: Dapatkan sejarah transaksi
Headers: x-api-key: YOUR_API_KEY
| Parameter | Type | Required | Description |
|---|---|---|---|
custom_order_id |
String | ❌ Optional | Order ID tertentu (jika kosong, return 10 transaksi terbaru) |
📊 Response Structure (Multiple Orders):
📝 Raw JSON Response:
{
"success": true,
"count": 3,
"history": [
{
"custom_order_id": "GV20251016123456789",
"created_at": "2024-01-15 14:30:00",
"status_order": "Success",
"description": "Diamonds 12 for Mobile Legends",
"amount": 5.00
},
{
"custom_order_id": "GV20251016123456788",
"created_at": "2024-01-15 12:15:00",
"status_order": "Pending",
"description": "Diamonds 50 for Free Fire",
"amount": 20.00
},
{
"custom_order_id": "GV20251016123456787",
"created_at": "2024-01-14 16:45:00",
"status_order": "Failed",
"description": "UC 60 for PUBG Mobile",
"amount": 15.00
}
]
}
Error Handling
Common Error Responses:
| Error Code | HTTP Status | Description |
|---|---|---|
MISSING_API_KEY |
400 | API key tidak disertakan |
INVALID_API_KEY |
403 | API key tidak valid |
IP_NOT_ALLOWED |
403 | IP tidak di-whitelist |
INSUFFICIENT_BALANCE |
400 | Baki tidak mencukupi |
PRODUCT_NOT_FOUND |
404 | Produk tidak ditemukan |
ORDER_FAILED |
500 | Gagal membuat pesanan |
Error Response Example:
{
"success": false,
"message": "Invalid API key",
"error_code": "INVALID_API_KEY"
}
Interactive API Tester
Test API endpoints secara langsung dengan tool interaktif ini. Masukkan API Key dan pilih endpoint untuk test.
Klik "Test API" untuk melihat response API...