Getting regional stats data from Steamworks API - steam-web-api

I am working on a project that involves connecting to Steamworks Web API to fetch statistical information related to a number of games. I have a Web API Key and also, a list of Application IDs for the games I am interested in. After going through the entire Steamworks API I was unable to find an endpoint that satisfies my requirements.
I am looking for statistics related to different regions of the game. I want to know the number of active players in the region. The only relevant endpoint I found (not sure if this is what I am looking for is) GetGlobalStatsForGame endpoint found here. From what I understood, this endpoint can be used to get aggregated values for certain values related to the game. Now, in order for this to work, I need to know what available Global Stats are actually used by the game. Looking at the Global Stats documentation here I can see that there is a function called RequestGlobalStats. However, this involves using a Steamworks sdk.
Is there a way I can request the global stats using the Steamworks Web API? If so, how can I do that? Are there any other endpoints that gives the name for each of these desired values?

Is there a way I can request the global stats using the Steamworks Web API?
You can check out what stats a game provideds with GetSchemaForGame like this: https://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key=YOUR_API_KEY&appid=730.
CS GO for example does not have any regional game stats.
Unless developers supply that this information in their game statistics, there is no way with the API to find the information you are looking for.
You have to manually check every stats for the 400000+ games on Steam. I doubt many games have this information.

Related

Index data entered in the smart contract for offchain computation

I want to index the data entered in the near protocol smart contract for offchain computation.
How to trigger a new entry of the smart contract in offchain sql database or elasticsearch for real-time data indexing?
I can do that in the frontend, but don't know if it's the right/best method as different users can use different frontend for querying the blockchain.
Great question. There is currently not an "event" system in NEAR. So the solution will have to be polling for now.
I would recommend looking at this experimental method:
https://docs.near.org/docs/api/rpc-experimental#example-of-data-changes
The code contained in that resource is meant to be run in Terminal, similar to running a curl command. These types of RPC calls are fairly easy to understand if you look in near-api-js. For an example of how a NodeJS app uses this library which talks to the RPC, I would recommend looking in this directory of near-shell:
https://github.com/near/near-shell/tree/master/commands

Google APIs - API Key not Counting Against Queries

I've come to you today in hopes of getting some support in regards to the Google Distance Matrix API. Currently I'm using this in a very simple way with a Web Services request through an HTTP interface and am having no problems getting results. Unfortunately my project seems to be running into Query limits due to the 2,500 query Quota limit. I have added Billing to the project to allow for going over 2,500 queries, and it reflects that increased quota in my project. What's funky though is that the console is not showing any usage and so I'm not sure if these requests are being ran against what I have set up.
I am using a single API Key for the project which is present in my requests, and as I said before the requests ARE working, but again I'm hoping to see if someone can shed some light as to why I might not be seeing my queries reflected in my usage, and to see how I can verify that my requests are being run under the project for which I have attached billing.
If there is any information I can provide to help assist in finding an answer, please feel free to let me know and I'll be happy to give what information I can.
After doing some digging I was able to find the following relevant thread to answer my question:
Google API Key hits max request limit despite billing enabled

How to handle request traffic of a background location update application

I am working on a family networking app for Android that enables family members to share their location and track location of others simultaneously. You can suppose that this app is similar with Life360 or Sygic Family Locator. At first, I determined to use a MBaaS and then I completed its coding by using Parse. However, I realized that although a user read and write geolocation data per minute (of course, in some cases geolocation data is sent less frequently), the request traffic exceeds my forward-looking expectations. For this reason, I want to develop a well-grounded system but I have some doubts about whether Parse can still do its duty if number of users increases to 100-500k.
Considering all these, I am looking for an alternative method/service to set such a system. I think using a backend service like Parse is a moderate solution but not the best one. What are the possible ways to achieve this from bad to good? To exemplify, one of my friends say that I can use Sinch which is an instant messaging service in background between users that set the price considering number of active users. Nevertheless, it sounds weird to me, I have never seen such a usage of an instant messaging service as he said.
Your comments and suggestions will be highly appreciated. Thank you in advance.
Well sinch wouldn't handle location updates or storing of location data, that would be parse you are asking about.
And since you implied that the requests would be to much for your username maybe I wrongly assumed price was the problem with parse.
But to answer your question about sending location data I would probably throttle it if I where you to aile or so. No need for family members to know down to the feet in realtime. if there is a need for that I would probably inement a request method instead and ask the user for location when someone is interested.

Programmatically generate VersionOne reports for multiple projects

My organization is tracking multiple Scrum projects in VersionOne. Each week, we use the Release Forecasting report for each project to create a management dashboard that indicates the health and expected completion date of each project. I would like to automate this. Do any of the VersionOne APIs allow for the execution of this report and retrieving the image that is generated?
There is not an endpoint specific to Release Forecasting. Nor is there an endpoint to generate the image. However, you can get to the underlying data via the existing API endpoints. For reporting, I recommend query.v1. The closest example is the query for burndown data. You would need to take Scope as the focus of the query, not Timebox.
You might also take a look at VersionOne's Reporting and Analytics. While that is not a coding or API way to get the reports, it might still automate the needs you have.
I was able to automate the retrieval of this report, but not through the V1 API. Through careful use of Fiddler and a C# script using WebClient to execute POST requests, it was possible. The resulting code is pretty fragile, though, since it isn't using the API.

What's google's position on programmatically querying pagerank?

Is there a public API for programmatically querying pagerank? If so, for what level of volumes would it be permitted for a service to use it?
From my Experience, It's OK to query page-rank as long as you do it with 1 second intervals, otherwise Google blocks you IP address after a few queries. if you're using .net there is library to help query page-rank anagrammatically , you can find it here.
Just tried a PageRank tool, and the answer from Google is clear :
http://www.google.com/support/websearch/bin/answer.py?&answer=86640&hl=en
That says :
"If you tried the steps above and haven't resolved the issue, it's very likely that a user or a computer in your network is sending automated traffic to Google. Your network administrator may be able to locate and shut down the source of the automated traffic; feel free to refer them to this page. Sending automated queries of any sort to Google is against our Terms of Service. This includes, among other things, the following activities:
Using any software that sends queries to Google to determine how a website or webpage ranks on Google for various queries"
So the answer is NO : Google forbids and blocks those kind of queries !
This is from google guideline page
http://www.google.com/support/webmasters/bin/answer.py?answer=35769
"Don't use unauthorized computer
programs to submit pages, check
rankings, etc. Such programs consume
computing resources and violate our
Terms of Service. Google does not
recommend the use of products such as
WebPosition Gold™ that send automatic
or programmatic queries to Google"
So I guess that is a no.
But I found this: http://www.fourmilab.ch/webtools/PageRank/ that you could try. I do not know if it is "legal".

Resources