Steam API: How to get the recent review sentiment?
Hey, I can see how to get the overall review sentiment for a game via the API, just go to, for example https://store.steampowered.com/appreviews/275850?json=1 and you'll get the review_score_desc field. Unfortunately, this seems to only be the overall score. No matter what mix of filters I use from https://partner.steamgames.com/doc/store/getreviews I can't find any way to get the "recent reviews" sentiment/score.

I've tried Google'ing for solutions to this problem but am coming up blank. A tough one to search for, since you end up with tons of results about Valve adding that field and stuff, but no API info.

Thoughts? Tips?
En son hvh4lfc3 tarafından düzenlendi; 3 Oca 2024 @ 7:28
< >
2 yorumdan 1 ile 2 arası gösteriliyor
I found https://store.steampowered.com/appreviewhistogram/275850?l=english, but can't find any documentation on this endpoint. It also doesn't give the sentiment, but one could, in theory, calculate it out with the provided data.
I've never needed review data, and unfortunately your example only has a few reviews to start with -- but, if it gives your ALL reviews even on games with a lot of reviews, you can just go through the array of the reviews and do whatever you want -- like count the review score for the last 14 days yourself, based on the timestamps provided.

Alternatively, if you want to be sure to get the same data that Steam displays on the store page... grab the store page yourself, and fetch the data from there.
< >
2 yorumdan 1 ile 2 arası gösteriliyor
Sayfa başına: 1530 50

Gönderilme Tarihi: 3 Oca 2024 @ 7:27
İleti: 2