POST / GET
/check
(Heartbeat Request)
Kirim request ke endpoint ini setiap 1 detik untuk mempertahankan status online.
| Parameter | Type | Required | Description |
| number | String | YES | Format: 628xxx (ID Unik) |
| name | String | YES | Nama Bot/Device |
| owner | String | YES | Kunci pemilik (Group ID) |
| IP, ram, cpu, etc | String | NO | Data spesifikasi opsional |
const axios = require('axios');
async function sendHeartbeat() {
try {
await axios.post('https://uptime.zpr0.com/check', {
number: '628123456789',
name: 'Bot-V1',
owner: 'YOUR_OWNER_KEY', // Ganti dengan key kamu
IP: '192.168.1.1',
ram: '2GB / 4GB'
});
console.log('Heartbeat Sent');
} catch (err) {
console.error('API Error');
}
}
setInterval(sendHeartbeat, 1000);
import requests
import time
url = "https://uptime.zpr0.com/check"
payload = {
"number": "628123456789",
"name": "Bot-Python",
"owner": "YOUR_OWNER_KEY",
"ram": "8GB"
}
while True:
try:
requests.post(url, json=payload)
print("Heartbeat Sent")
except:
pass
time.sleep(1)
<?php
$url = "https://uptime.zpr0.com/check";
$data = [
"number" => "628123456789",
"name" => "Bot-PHP",
"owner" => "YOUR_OWNER_KEY"
];
while(true) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
sleep(1);
}
?>
GET
/list
(Fetch Active Devices)
Mendapatkan daftar perangkat yang aktif berdasarkan Owner.
| Parameter | Type | Required | Description |
| owner | String | YES | Filter berdasarkan pemilik |
fetch('https://uptime.zpr0.com/list?owner=YOUR_OWNER_KEY')
.then(response => response.json())
.then(data => {
console.log("Total Devices:", data.total_devices);
console.log("Devices:", data.devices);
});