I can not reach the data mins and price through url, but i can do it through file on my server. https://api.binance.com/api/v3/avgPrice?symbol=BNBUSDT
<!DOCTYPE>
<html>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<head>
<title>getJson example</title>
<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$("button").click(function(event){
$.getJSON("https://api.binance.com/api/v3/avgPrice?symbol=BNBUSDT", function(price) {
$("#getJsonDiv").html('<p> mins: ' + price.mins + '</p>');
$("#getJsonDiv").append('<p>price: ' + price.price+ '</p>');
});
});
});
</script>
</head>
<body>
<div id="getJsonDiv">
jQuery ajax getJSON example
</div>
<button>Get country data</button>
</body>
</html>