xDimGG / node-steamapi

An object-oriented Steam API wrapper for Node.js developers.
https://www.npmjs.com/package/steamapi
177 stars 43 forks source link

Get discount end date #50

Closed wokcito closed 2 months ago

wokcito commented 2 months ago

Hi, I was trying to use /appdetails endpoint, but I need know when a game's discount finish.

I tried to figure out how steamdb gets this information but I wasn't able to find the endpoint or the filter that gives this information.

xDimGG commented 2 months ago

Max,

After a bit of investigation, it would appear that a discount end date is not provided by the public Steam API. If I were to guess, SteamDB scrapes the store page rather than (or maybe as well as) fetching the /appdetails endpoint to get that information.

I did find the following resource: https://github.com/m0uka/steam_games_apify

Which scrape the game page using an HTML parser and puts that information in a field called saleUntil.

Hope that helps.

wokcito commented 2 months ago

Thank you so much, I will investigate about it!