Good day all, I’m trying to extract some data from a website’s API. If I take the result from the webpage and put it in to a .json file and call it instead of the url it works fine but with the url it’s not working, so I’m thinking it must either be a url formatting error or I’m using the wrong function. I know from my limited experience that php is really finnicky about characters in strings.
The key is private so I just replaced it for the forum with INSERTKEYHERE but when I’m requesting it I have my API key in the url.
Any help would be appreciated.
[php]<?php
$url = "https://opskins.com/api/user_api.php?request=GetLowestSalePrices&key=INSERTKEYHERE&appid=440&contextid=2&delimiter,&names=A+Rather+Festive+Tree,A+Whiff+of+the+Old+Brimstone";
$jsonData = file_get_contents($url);
$json = json_decode($jsonData, true);
echo $json['result']['appid'];
?>[/php]