Discuss Scratch

t8thegr8st
Scratcher
7 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)

t8thegr8st
Scratcher
7 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
7 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
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.ezproxyberklee.flo.org/statistics/data/daily/
- https://scratch-mit-edu.ezproxyberklee.flo.org/statistics/data/monthly-ga/
- https://scratch-mit-edu.ezproxyberklee.flo.org/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.ezproxyberklee.flo.org/statistics/data/daily/
- https://scratch-mit-edu.ezproxyberklee.flo.org/statistics/data/monthly-ga/
- https://scratch-mit-edu.ezproxyberklee.flo.org/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)

Powered by DjangoBB