Getting information from steam market

Ramballah

Active Member
Joined
Sep 25, 2018
Messages
311
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to make an excel spreadsheet that imports data from the steam marketplace so that I can keep track of prices of certain items.
I have found that google spreadsheets allows this very easily but I'd very rather use excel as I use it way more than google spreadsheets.
So basically what I want is to open my excel spreadsheet and it will automatically update the prices for me.
My spreadsheet would look something like this:

1696115428976.png

I dont know much about VBA my self so I don't know if this is doable.
The website link for this specific item is: click here
(if this turns out to be something thats to be done with VBA, I maybe should mention that I would like this for multiple items and not only 1)
EDIT* using web queries etc doesn't work for steam market
Thanks in advance,
Ram
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hello, I have found some things that could potentially help with this on the internet. However I have some issues that I cannot seem to solve my self.
People seem to be using the webservice function to get data from the website. However when I use webservice I get a #value error saying that my organizations administrator turned off the service required for this function. I am the administrator but I can't find anywhere online how to enable the service required. But when I use webservice("google.com") it works and returns a lot of information to me. Then the next issue I have (if the #value error will be fixed). is how do I extract the right data from that string of text I get?

I hope this makes the problem easier to solve...
 
Upvote 0
Upvote 0
First, set a reference (Visual Basic Editor > Tools > References) to Microsoft XML, v6.0. Then try the following macro..

VBA Code:
Option Explicit

Sub test()

    'Set a reference (Visual Basic Editor > Tools > References) to Microsoft XML, v6.0

    Dim xmlReq As MSXML2.ServerXMLHTTP60
    Dim strURL As String
    Dim strResp As String
    Dim strLowestPrice As String
    
    strURL = "https://steamcommunity.com/market/priceoverview/?currency=3&appid=252490&market_hash_name=Neon%20Tools%20Storage"
    
    Set xmlReq = New MSXML2.ServerXMLHTTP60
    
    With xmlReq
        .Open "GET", strURL, False
        .send
        If .Status <> 200 Then
            MsgBox "Error " & .Status & ":  " & .statusText
            Exit Sub
        End If
        strResp = .responseText
    End With
    
    strLowestPrice = Mid$(strResp, InStr(1, Replace(strResp, ":", "^", 1, 1), ":") + 2)
    strLowestPrice = Left$(strLowestPrice, InStr(1, strLowestPrice, """") - 2)
    strLowestPrice = Trim$(strLowestPrice)
    
    MsgBox "Lowest price:  " & strLowestPrice
    
    Set xmlReq = Nothing

End Sub

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top