Jump to content
McKay Development

SteamUs1

Member
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

SteamUs1's Achievements

  1. What proxies do you use to interact with Steam? Do you know anything about not using certain proxies to avoid being banned from the platform by steam? I can of course use residential proxies, but I thought that datacenter proxies are much cheaper and should work the same way as long as steam doesn't ban them.
  2. Recently, it no longer seems possible to call up your created and deleted market listings in the market history. However, this also means that you no longer receive the new assetids after you have removed a listing. That can't be intentional, can it? Are there any other ways to get the new assetid? Is it the same for you Guys?
  3. Have found it! Somehow, i was not logged in, so steam was sending me the normal Page, as if would browse on the steammarket without session information. Make sure, that everything in the cookies is setup correctly! Edit: Make sure, that you include the params for "webTradeEligibility"!!
  4. I have found out the difference: For example, in my code the page I get has no wallet info: g_rgWalletInfo[\'wallet_currency\'] while the web browser has one: var g_rgWalletInfo = { "wallet_currency": 3, "wallet_country": "NL" ... } Does anyone know why steam thinks I don't have a wallet or why the Request with the SteamUser Cookies is so diffrent?
  5. I am currently trying to get some Steam Market listings in my program, but am running into the following problem: When I send the request to this Webpage "https://steamcommunity.com/market/listings/730/AK-47 | Asiimov (Field-Tested)" with this example code: import axios from "axios"; const url = "https://steamcommunity.com/market/listings/730/AK-47%20%7C%20Asiimov%20%28Field-Tested%29"; import axios from "axios"; axios.get(url, { headers }) .then(response => { console.log("Response:", response.data); }) .catch(error => { console.error("Error:", error); }); I get an HTML page from which I can extract the data in a Variable. However, when I use javascript, only general information is displayed, but not the converted price, which is important for me, because otherwise the items are in any currency. In the code I am also logged in with SteamUser in the same account with which I receive the covered price as a variable via the browser. Do you Guys know, what i need to change, to also get the converted Price?
  6. How can I get the assetids or other information of a CS2 Market Listing? The CSFloat extension can do this, but how do they get the information such as the listing id? Thanks for your help!
  7. I found the issue. Its in the Content Type, in Python its "application/x-www-form-urlencoded" and in TS its "application/json". To get the same Type in Python you simply need to format the params (body) right. For example: const data = new URLSearchParams(); data.append('sessionid', sessionid); data.append('appid', '730'); data.append('contextid', '2');
  8. When I try to sell an item on the community market with Typescript, I always get a 400 although it totaly works on python. This is my Python code: session = requests.Session() cookies = { "sessionid": "XXX", "steamLoginSecure": "X%7C%XX.X.X", } session.cookies.update(cookies) def sellSteamMarketItem(cookie): url = "https://steamcommunity.com/market/sellitem/" HEADERS = { "Referer": "https://steamcommunity.com/profiles/XXXXXX/inventory" } session_body = session.post("https://steamcommunity.com/market/sellitem/", data={ "sessionid": "XXXXX", "appid": "730", # App-ID (z. B. CS:GO) "contextid": "2", # Kontext-ID (Inventar) "assetid": "XXXX", # Artikel-ID "amount": "1", # Anzahl "price": "149999" }, headers=HEADERS) if session_body.status_code != 200: print("Error, Statuscode: ", session_body.status_code) And this is my Typescript code: create(assetId: number, price: number) { let url: string = "https://steamcommunity.com/market/sellitem/"; const data = { sessionid: this.session.sessionid, appid: "730", contextid: "2", assetid: assetId.toString(), amount: "1", price: price.toString(), }; const referer = "https://steamcommunity.com/profiles/" + this.session.client.steamID.getSteamID64() + "/inventory"; const respone = this.session.steamAPI.httpPost(url, data, referer); console.log(respone); //this.session.community.acceptConfirmationForObject(this.session.identitySecret, respone["listingid"], ) } async sendRequest(url, method, params, referer, repeated=false) { const headers = { "Cookie": this.session.cookies, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", "Accept": "application/json, text/plain, */*", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive", "Referer": referer }; this.response = await axios.post(url, params, { headers: headers }); } Here some Sequences from the Axois Request: { "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/json", "Cookie": "sessionid=XX; steamLoginSecure=XX;", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36", "Accept-Encoding": "gzip, deflate, br", "Connection": "keep-alive", "Referer": "https://steamcommunity.com/profiles/XX/inventory", "Content-Length": "123" }, "method": "post", "url": "https://steamcommunity.com/market/sellitem/", "data": { "sessionid": "XX", "appid": "730", "contextid": "2", "assetid": "XX", "amount": "1", "price": "14555" } } { "data": { "success": false, "message": "Session mismatch" }, "status": 400 } Has anyone an idea, why this occurs?
  9. I think you dont need to pass in params, you just need to filter your results (via Appid for Example). I dont know any option to only get specific Games.
  10. Okay, that would be very practical! I'll try it out straight away, that would solve the problem directly, as I always use cookies anyway. Thank you!
  11. I understand that the access token is highly sensitive account information. However, the Steam WebAPI at https://api.steampowered.com/IEconService/GetTradeHistory/v1/ currently requires the access token for functionality. My question is: Do I need to use Steam-Session to obtain the access token, or is it possible to retrieve it using Steam-User? Thank you for your assistance!
  12. Oh, thanks! My apologies for missing that!
  13. Thanks for these great tools that allow you to easily program with steam! I noticed that in the documentation the method “getUserInventoryContents” is not listed, but can be found in the code. Can the method still be used to get the user inventory? @Dr. McKay
  14. Topic is irrelevant, I found the post where steam session is explained. Thank you
  15. I am very new here and find the project really great! I myself am trying to realize a small project with steam, but for this I need the steam login secure token in addition to the session id. Is there a way for steam users to get this token? Thanks for your help!
×
×
  • Create New...