Hello I am trying to echo the "avrage_price" price of a item but I don't know why my code isn’t working, Help would be great. here is my code,
($name is a valid variable that when i echo works)
(I put myKey where I would normally put my key to hide my key)
$apiUrl = "http://api.csgo.steamlytics.xyz/v1/prices/$name?key=myKey";
$jsonApi = json_decode(file_get_contents($apiUrl));
echo $jsonApi['avrage_price'];