GET /api.php with key & type
Choose your interval
Quick snippets to get started
# Fetch 30s data curl -X GET "https://ethbd.site/api.php?key=YOUR_KEY&type=30s" \ -H "Accept: application/json"
fetch('https://ethbd.site/api.php?key=YOUR_KEY&type=1m') .then(r => r.json()) .then(d => console.log(d)) .catch(e => console.error(e));
import requests url = 'https://ethbd.site/api.php' params = {'key': 'YOUR_KEY', 'type': '3m'} r = requests.get(url, params=params) print(r.json())
$key = 'YOUR_KEY'; $type = '30s'; $url = "https://ethbd.site/api.php?key=$key&type=$type"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $res = curl_exec($ch); curl_close($ch); print_r(json_decode($res, true));
{
"status": "success",
"data": {
"issue": "20240814001",
"number": "123456",
"timestamp": "2024-08-14 10:30:00"
},
"source": "WinGo 30s"
}