Discuss Scratch

t8thegr8st
Scratcher
4 posts

Raw Data From Statistics Page

So, I've been bored lately, and I've been looking at the statistics page, and I noticed some interesting trends, and wanted to look more into it. So I wondered. Is there any way to get the raw data from the statistics page? I think that if I could extract the data and get it's derivative, I should be able to find out how much activity is lost during the summer lulls, or anything else interesting. If anyone has an answer, please help me. Either way though, thank you for spending your time to read my questions.
scratcher2286
Scratcher
79 posts

Raw Data From Statistics Page

I saw a method in Scratch Wiki.
You may need the Scratch API for that.
See the Scratch API docs on the Scratch Wiki

Last edited by scratcher2286 (Nov. 30, 2022 09:21:05)


A simple user working on the old offline editor.
Click to be a famous Scratcher
t8thegr8st
Scratcher
4 posts

Raw Data From Statistics Page

scratcher2286 wrote:

I saw a method in Scratch Wiki.
You may need the Scratch API for that.
See the Scratch API docs on the Scratch Wiki
Thanks so much

Last edited by t8thegr8st (Nov. 30, 2022 19:46:02)

ajskateboarder
Scratcher
1000+ posts

Raw Data From Statistics Page

Just to clarify for people stumbling on this topic (and the OP), I don't believe there is an API for fetching Scratch's statistics

You will have to use a browser scripting framework to extract graph values with JavaScript. This is possible with Selenium
t8thegr8st
Scratcher
4 posts

Raw Data From Statistics Page

ajskateboarder wrote:

Just to clarify for people stumbling on this topic (and the OP), I don't believe there is an API for fetching Scratch's statistics

You will have to use a browser scripting framework to extract graph values with JavaScript. This is possible with Selenium

Ah, ok thanks. I had been thinking that for a while now. Nice to have some clarification on this
t8thegr8st
Scratcher
4 posts

Raw Data From Statistics Page

scratchusername40 wrote:

actually, these are the apis:
- https://scratch.mit.edu/statistics/data/daily/
- https://scratch.mit.edu/statistics/data/monthly-ga/
- https://scratch.mit.edu/statistics/data/monthly/
Oooooh thanks dude that's really cool!
scratchusername40
Scratcher
1000+ posts

Raw Data From Statistics Page

no problem


















ajskateboarder
Scratcher
1000+ posts

Raw Data From Statistics Page

scratchusername40 wrote:

actually, these are the apis:
- https://scratch.mit.edu/statistics/data/daily/
- https://scratch.mit.edu/statistics/data/monthly-ga/
- https://scratch.mit.edu/statistics/data/monthly/
Huh, the more you know

But for other things, like the age distribution of Scratchers, you'll have to extract it manually
Never mind, that data is included in the above API links

Last edited by ajskateboarder (May 1, 2023 16:35:43)

dynamicsofscratch
Scratcher
1000+ posts

Raw Data From Statistics Page

ajskateboarder wrote:

(#9)

scratchusername40 wrote:

actually, these are the apis:
- https://scratch.mit.edu/statistics/data/daily/
- https://scratch.mit.edu/statistics/data/monthly-ga/
- https://scratch.mit.edu/statistics/data/monthly/
Huh, the more you know

But for other things, like the age distribution of Scratchers, you'll have to extract it manually
eh, most probably 12 is to commodity right now (actually) and 11/13
most probably what you could do is just make a fetch this page and what data it handles and yeah. (I don't know how to make that so yeah i'll leave that to other people)

aII toasters toast toast, but what happens when there are no longer toasters being produced? will their technology simply become obsolete, with humans moving onto bigger, better things? will toast become a distant memory, written in textbooks of the future as foods us simpler generations ate? who's to say! society is constantly moving, changing, evolving, ideas being built upon, improved upon, theories being proven or disproven. are we but a blip on the timeline? sure, our names may not be remembered, but that's not the point. you can make a change. you can make a difference. you can make the world better, even if you don't know yet. and the first step is to go for it. even if you are afraid of failure. going back to the example of toasters, do you know off the top of your head who invented them? no? have you used one? probably. so, even if you don't remember my name, if I was able to help awnser your question, that is enough. if I was able to help you, even in the slightest way, this could push you to continue with scratch and not give up after the program crashes, and maybe one day learn other programming languages and change the world. everything is a cause and effect reaction, new inventions lead to the technology of the future, and even as the generations of the past are slowly forgotten, their influence lives on to this day, affecting how the world eventually turned out and how it will be for generations to come.

and, without toasters, we wouldn't have toast.


Regards
dynamicsofscratch

Anything above that grey line is a signature!
Also, anything can be put in your signature, (also referred as a siggy) including ads but! You cannot do anything else that violates the community guidelines as, you will be reported and you could be banned/muted.
Computer enthusiast, coder, designer and a offline veteran.
700th post

Powered by DjangoBB