steam-web-api

ReferenceError: app is not definied in Node.js - SteamWebAPI

不羁岁月 提交于 2020-01-07 03:40:14
问题 Eh, my third question about API and still cannot manage to work it the way I want... Anyways, I have two files: app.js and index.html . My index.html is simple form: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Steam</title> </head> <body> <form> Steam User ID: <br> <input type="text" name="steamid"><br> <input type="submit" value="Pošalji"> </form> </body> </html> Form is getting Steam User ID and submit button, to submit this form. My app.js : //Express var express

Steam api user data: Only works for one steam id, else DOESNT WORK

独自空忆成欢 提交于 2019-12-31 05:41:11
问题 I'm really new to php and doesnt understand much with apis.. I wrote this code: <?php $steamkey = "xxxxxxxx"; // censored I use the right steamkey $id_user = "76561198059606697"; // only this steam id works $apifr = "http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=".$steamkey."&steamid=".$id_user; $data = file_get_contents($apifr); // put the contents of the file into a variable $test = json_decode($data); echo print_r($test->playerstats->stats[0]->value,

How to retrieve steam market price history?

旧时模样 提交于 2019-12-30 11:56:48
问题 I'm trying to get price history for items on steam market. I found a link that returns price history for a specific item (which is mentioned in almost every question about getting price history from market at this site). http://steamcommunity.com/market/pricehistory/?country=PT&currency=3&appid=730&market_hash_name=Falchion%20Case It works fine in browser while I'm logged-in in Steam, but when I try to do the same thing in python, it returns an empty list (the same thing happens when I try to

access steam web API using AJAX Jquery

一世执手 提交于 2019-12-25 04:07:02
问题 I want to try and get data from an API but I am getting No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. I cant change the content of API so I cant use JSONP These are all I tried so far: $.getJSON('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=keyhere&format=json&steamids=76561197970938759', function(data) { console.log(data); }); $.get("http://www.api.steampowered.com/ISteamUser

How to get steam level and make a check if someone has at least steam level 2

北战南征 提交于 2019-12-23 04:58:33
问题 I've been thinking about this so much and made it but something is wrong I think in the code. Can you say me what's it? I'd appreciate it! :) <?php $link = file_get_contents("http://api.steampowered.com/IPlayerService/GetSteamLevel/v1/? key=".$api_key."&steamid=".$user['steamid']); $result = json_decode($link, true); $_SESSION['steam_level'] = $result['response']['player_level']; if(!$_SESSION['steam_level'] >=2 && $_SESSION['steam_level'] <=3000){ exit(json_encode(array('success'=>false,

How to get the price of an app in Steam WebAPI?

*爱你&永不变心* 提交于 2019-12-20 08:19:06
问题 Is there a possibility to get the price of a game from Steam over the WebAPI? 回答1: In current days, we have an API call. This means we could use JSON for it: Appid 57690 = Tropico 4 http://store.steampowered.com/api/appdetails?appids=57690 Part of the response: "price_overview":{ "currency":"EUR", "initial":2999, "final":2999, "discount_percent":0 } The Price is looking like you should convert 2999 to 29.99 Full response: { "57690":{ "success":true, "data":{ "type":"game", "name":"Tropico 4:

How get a response of multiple price items on the market

家住魔仙堡 提交于 2019-12-19 05:02:02
问题 I check the price of each items of my backpack cs:go with this link : http://steamcommunity.com/market/priceoverview/?country=FR&currency=3&appid=440&market_hash_name= But for 100 items for exemple, i check 100 links for get the price of all my items. Is it possible to query steam with many items and steam response only one json with all prices requested? I want it's a system like that, you send a array with all classid of the items you want know the price to a steam url and steam send you

How get a response of multiple price items on the market

老子叫甜甜 提交于 2019-12-19 05:01:06
问题 I check the price of each items of my backpack cs:go with this link : http://steamcommunity.com/market/priceoverview/?country=FR&currency=3&appid=440&market_hash_name= But for 100 items for exemple, i check 100 links for get the price of all my items. Is it possible to query steam with many items and steam response only one json with all prices requested? I want it's a system like that, you send a array with all classid of the items you want know the price to a steam url and steam send you

Get steam item prices

我只是一个虾纸丫 提交于 2019-12-18 06:49:29
问题 I was wondering if there is any efficient way to get the prices of an item on steam. I found : http://steamcommunity.com/market/priceoverview/?country=DE&currency=3&appid=730&market_hash_name=P90%20%7C%20Asiimov%20%28Factory%20New%29 You get JSON with only "lowest_price". How I can get JSON with 3 lowest prices ? 回答1: I use render?start=0&count=10&currency=3&language=english&format=json currency: 1 for USD, 2 for GBP, 3 for EUR, 5 for RUB http://steamcommunity.com/market/listings/730/StatTrak

C# - How do I get the URL of an icon from Steam Trading API (encoded)

谁说胖子不能爱 提交于 2019-12-14 04:26:04
问题 Here is the part of the XML that the API returns for every item: <message> <appid>730</appid> <classid>469467368</classid> <instanceid>302028390</instanceid> <currency>false</currency> <background_color/> <icon_url> -9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpou6ryFA957PfMYTxW09SzlZaS2aX3MOvSlzlQucdy2LqU9NmnjAzl_UJoYmqldYSTIQI_NV_X81bvkufxxcjryPo2vmI </icon_url> </message> How do I parse and convert this string to an URL? Thanks! 回答1: I