DEV Community

Cover image for Read what players complain about: Steam negative reviews in Python
Fjord Labs
Fjord Labs

Posted on

Read what players complain about: Steam negative reviews in Python

If you ship or publish games, the negative Steam reviews from the last few weeks are the cheapest bug report you will get. Steam has review endpoints, but paging, language codes and date filtering are fiddly. Here is how I pull recent negative reviews and look at them by playtime.

Fetch the reviews

I use an Actor I maintain on Apify (Steam Reviews & Game Data Scraper). It takes store URLs or app IDs. With pip install apify-client pandas:

from apify_client import ApifyClient
import pandas as pd

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("fjordlabs/steam-reviews").call(run_input={
    "games": ["https://store.steampowered.com/app/620/Portal_2/"],
    "maxReviewsPerGame": 200,
    "sort": "recent",
    "language": "english",
    "reviewType": "negative",
    "reviewsNewerThan": "30 days",
    "includeGameDetails": True,
})

rows = list(client.dataset(run.default_dataset_id).iterate_items())
reviews = pd.DataFrame([r for r in rows if r["type"] == "review"])
games = [r for r in rows if r["type"] == "game"]
print(games[0]["name"], games[0]["positivePercent"])
Enter fullscreen mode Exit fullscreen mode

Review rows have reviewId, review (the text), createdAt, votesUp, playtimeAtReviewHours, playtimeForeverHours, steamPurchase and writtenDuringEarlyAccess. The game row carries the store data, such as price, genres and reviewScoreDesc. Reviewer IDs and names are off by default (includeReviewerIds), so you don't collect personal data you don't need.

Split by playtime

Someone who quit after 20 minutes is complaining about something different from someone with 300 hours:

reviews["bucket"] = pd.cut(
    reviews["playtimeAtReviewHours"],
    [0, 2, 20, 100, 100000],
    labels=["<2h", "2-20h", "20-100h", "100h+"],
)
print(reviews["bucket"].value_counts())

top = reviews.sort_values("votesUp", ascending=False).head(10)
for _, r in top.iterrows():
    print(r["votesUp"], r["bucket"], r["review"][:120])
Enter fullscreen mode Exit fullscreen mode

Early quitters usually point at onboarding, performance or price. Long-time players point at content, balance or broken updates. Sorting by votesUp shows which complaints other players agree with.

Monitor after a patch

Set reviewsNewerThan to the patch date, schedule the run daily, and compare the share of negative reviews before and after. Because the Actor stops paging at the first review older than your window, repeat runs stay small.

Cost

A review row costs $0.0003 ($0.30 per 1,000) and a game detail row costs $0.002. The run above with 200 reviews and one game is about $0.06 plus $0.002, and a tiny start fee. Error rows, for example an unknown app ID, are not charged. Set maxReviewsPerGame to 0 if you only want the game details.

Try it in one click: Collect negative Steam reviews of a competitor's game opens this example with the input already filled in; press Start. Apify's free plan includes $5 of usage every month, which covers a run like this many times over.

Disclosure: I built and maintain this Actor. Happy to answer questions in the comments. Links to Apify include my referral code.

Top comments (0)