I'm creating a stats website for PUBG and I can't seem to get the total player count - api

So at the moment I'm working on a PUBG stats website(I know it's been done a billion times but it's a fun project) but I can't seem to find the total player count in the official PUBG api. I know there is a way to get the player count but I've been going through steams and PUBG's official api and I can't find it. Anyone have an idea where to get this?

This is definitely not available through the game's API, or in any other game that I know.
There was a hole in the steam API a few months back that allowed that info to come through, but it has since been fixed. This is not the kind of data developers want you to have access to, really.
Give this article a read:
https://arstechnica.com/gaming/2018/07/steam-data-leak-reveals-precise-player-count-for-thousands-of-games/

Related

How do I get all of the tracks released in a specific year using Spotify's API?

I am attempting to get all of the tracks release on Spotify for a given year (e.g. all tracks release in 2018)? I've been looking through their APIs and various projects posted by others, but have not been able to find a solution for this one. One particular issue is the limit on 50 API calls, so as part of a solution, I am looking for a way that I could get the thousands of songs released in a year all at once.
I have tried looking at Spotify API documentation, Spotipy library documentation, and various projects related to this topic, but have not seen anyone tackle this particular issue.

The steam API 2020

I'm looking to make a hobbie website using the steam API, mostly focusing on the actual products and not really any user info. According to an article by the man behind Steamspy, Valve decided to change their API sometime in 2018, removing a lot of relevant data related to the store.
I went through the steamworks documentation and the closest thing to any specific information about the applications/games were in:
https://partner.steamgames.com/doc/webapi/ISteamApps -
I figured their API must offer more than just a list of all the apps and their ID's, but thus far I have only found some other API:s.
https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
Seems to be popular in a lot of threads
https://steamapi.xpaw.me/#ISteamApps
Some kind of collection of APIs?
https://github.com/Autarc/steam-store/blob/master/README.md
Not sure if this is still usable?
https://steamspy.com/api.php
Question: If I want the name, ID, genre/tags and picture of a game (and potentially price), is really the only way to use these non-valve related API:s? Or have I missed something in Valves own API documentation?
I'm super new to API:s so please forgive my insolence, I did search a ton of threads but seeing as the API changed I'm not sure which answers still are up to date in 2020.
The storefront API is still up-to-date and should give you what you need, mostly.
There is no API for game tags. You have to get the directly from the store pages or from any of the third party API providers if they have them.
Question: If I want the name, ID, genre/tags and picture of a game (and potentially price), is really the only way to use these non-valve related API:s? Or have I missed something in Valves own API documentation?
No, you have not missed anything. Yes you need to use unoffical APIs. Compared to other gaming stores you still get more data on Steam than anywhere else.
I am afraid the last answer is not fully true.
You can get tags as categories or genres through api eg.https://store.steampowered.com/api/appdetails/?appids=306480

How can I grab a list of games by Google Play Gamer ID?

I am trying to figure out how I can retrieve the list of games owned by a person by their Google Play Gamer ID. I remember that I saw the exact answer and code example somewhere on Google's API documentation or n their help center but I have spent half a day today and couldn't find it again. It's probably somewhere here and I just keep overlooking it.
I know that it is definitely possible not only because I saw it but also there are some products that actually use this function. Like this one → https://www.exophase.com
It doesn't have to be a list of games, a list of achievements gained by a person is also fine (since you can link achievements to games).

Ensure that API calls are efficient

I'm integrating with the Sport Radar API. This is a pretty great API but I'm noticing it doesn't have a particular Endpoint that I was hoping to leverage.
I noticed that the API does not have a Players index call. In order to get all the players in the league you have to go through this process (Confirmed by the API team)
1) Call an endpoint that lists the ids of each team in the league.
2) For each Team id call an endpoint that gets each team and lists each player for each team.
All in all that is over 30 API requests for each time I need to run a fairly common function.
MY CURRENT SOLUTION:
Store the Players in the database. So instead of reaching out through the API every time I need to list the players. I can just make a DB query for the players. This solution seems heavy handed though, I'd like for my application to not have to keep track of the players.
MY QUESTION
What are some ways of solving this problem? Again the questions is: What are ways of avoiding many api calls in order to get common data? Is the best solution just to make the 30 api call each time? Thank you!
I am working with the sport radar API and we had a similar problem, to solve it we use a cache to have this information faster and filtered, basically we connect a redis and run a cron in a service that updates the data (in our case each 24 hours).

Forgotify vs track play count in Spotify API

There's lots of buzz about Forgotify (http://forgotify.com) - a tool, that crawls Spotify against unplayed tracks.
Non-technical press articles say that they use Spotify API to crawl the songs and index only those with zero play count.
However, according to Spotify API documentation, such value is not available for single tracks:
https://developer.spotify.com/docs/apps/api/1.0/api-models-track.html
Similar question about possibility to retrieve track play count has also been answered here on StackOverflow (Get play count of a track from Spotify API) with similar results - that it's not possible.
I'm looking for a clue how Forgotify achieved what they claim they did. Any ideas? :)
The metadata api and libspotify provide the popularity score for songs. Perhaps they searched for tracks with popularity of zero. I don't know that zero popularity implies zero plays though.
They also could have implemented a remote control of the desktop client with some screen scraping. Or reverse engineered whatever internal communication the desktop does (though I suspect Spotify would have put a stop to that).