1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "appIds": [
10 "730",
11 "570",
12 "https://store.steampowered.com/app/440/Team_Fortress_2/",
13 ],
14 "includeAppDetails": True,
15 "country": "us",
16 "language": "english",
17 "snapshotStoreName": "steam-live-player-count-snapshots",
18 "maxConcurrency": 4,
19 "maxRequestRetries": 3,
20}
21
22
23run = client.actor("automation-lab/steam-live-player-count-monitor").call(run_input=run_input)
24
25
26print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30