Answer the question
In order to leave comments, you need to log in
Steam Web API ERROR - HTTP request failed! HTTP/1.0 429 Unknown?
This line:
$appDetails = (json_decode(file_get_contents('http://store.steampowered.com/api/appdetails?appids=' . $app->appid)));
file_get_contents(http://store.steampowered.com/api/appdetails?appids=564): failed to open stream: HTTP request failed! HTTP/1.0 429 Unknown
{"564":{"success":false}}
$apps = $this->steamService->getAllApps();
foreach ($apps as $app) {
sleep(3); // prevents steam api calls limits
$appDetails = (json_decode(file_get_contents('http://store.steampowered.com/api/appdetails?appids=' . $app->appid)));
$appId = $app->appid;
//validate data
if ($appDetails->$appId->success === TRUE && $appDetails->$appId->data->type === 'game' && $appDetails->$appId->data->is_free === FALSE && isset($appDetails->$appId->data->price_overview->initial) && $appDetails->$appId->data->price_overview->initial > 500) {
$dbGameCheck = SteamGame::where('steam_appid', '=', $appDetails->$appId->data->steam_appid)->count();
if ($dbGameCheck === 0) {
$data = [.....
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question