1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "apps": [
10 "570",
11 "Elden Ring",
12 "https://store.steampowered.com/app/413150/Stardew_Valley/",
13 ],
14 "charts": ["most-played"],
15 "chartSize": 25,
16 "country": "us",
17 "language": "en",
18 "searchQueries": [],
19 "sortBy": "relevance",
20 "tagIds": [],
21 "maxResultsPerQuery": 50,
22 "onlyGames": True,
23 "includePlayerCount": True,
24 "includeSteamSpy": True,
25 "includeReviewSummary": True,
26 "enrichChartEntries": False,
27 "maxConcurrency": 3,
28 "proxyConfiguration": { "useApifyProxy": True },
29}
30
31
32run = client.actor("insight.solutions/steam-store-stats-api").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39