Stats API Question

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
uyaem
Posts: 219
Joined: Sat Mar 21, 2020 7:35 pm
Location: Esslingen, Germany

Stats API Question

Post by uyaem »

Hi all,

I couldn't really find an appropriate sub-forum in the "stats and servers" section, so I'm asking here:

The official stats pages seem to update slowly/cyclically, so I wanted to build a locally running web page that uses RESTful requests to get my user/team data, but I'm getting CORS errors.
Therefore, my question is:

Code: Select all

Is https://api.foldingathome.org considered public API?
(had to post as code block, or else the forum wouldn't let me post)
Image
CPU: Ryzen 9 3900X (1x21 CPUs) ~ GPU: nVidia GeForce GTX 1660 Super (Asus)
Jesse_V
Site Moderator
Posts: 2850
Joined: Mon Jul 18, 2011 4:44 am
Hardware configuration: OS: Windows 10, Kubuntu 19.04
CPU: i7-6700k
GPU: GTX 970, GTX 1080 TI
RAM: 24 GB DDR4
Location: Western Washington

Re: Stats API Question

Post by Jesse_V »

Hi and welcome to the forum!

Yes, I believe that it is. There are a couple of tools that update stats for teams and users and I believe they download the flat stats file and parse it themselves. That way they have all the information at once and there's only one query. That's one option.
F@h is now the top computing platform on the planet and nothing unites people like a dedicated fight against a common enemy. This virus affects all of us. Lets end it together.
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Stats API Question

Post by bruce »

This forum is full of questions and answers and we haven't had time to write everything up as a (new?) FAQ.

Please do not try to query the stats in a home-made script. Our servers are all overcommitted, including the stats subsysem and you would be adding traffic to an already clogged path.

Today I've heard the stats system is (at least partially) broken and not being updated in real time. That DOES NOT imply that the available work assignments are not being processed or that the individual stats reports are not being recorded and cached. FAH has a very good record of preventing the loss of those records but some time may pass before the database is updated. Delayed stats are not missing stats.

Moreover, it's more important that all hands concentrate on getting enough servers on-line and filling them with work that can be assigned than providing real-time stats to people who are just checking how they're doing. Like the phone-mail recoding says ... Your call is important to us. All our staff are helping other customers and we'll respond as soon as we can. Please call back at a later time."
uyaem
Posts: 219
Joined: Sat Mar 21, 2020 7:35 pm
Location: Esslingen, Germany

Re: Stats API Question

Post by uyaem »

I certainly didn't want to do bulk queries for that very reason. :)
And for that kind of "data mining" you're already providing the flat stat files I believe...

Regarding the stats not updating:
There seem to be several stats-providing end-points
- stats.foldingathomeorg/api (which is used by stats.foldingathome.org) seems to be behind
- api.foldingathome.org seems very up to date and working all the time, which is why I asked.

But thanks for the clarification, I won't cause any extra server load/traffic.
Image
CPU: Ryzen 9 3900X (1x21 CPUs) ~ GPU: nVidia GeForce GTX 1660 Super (Asus)
Post Reply