Discuss Scratch

septicorn
Scratcher
6 posts

Scratch API Cloud Variables?

Hello,

Is there a way to get the data stored in cloud variables using the Scratch API or some other method?
IcyCoder
Scratcher
1000+ posts

Scratch API Cloud Variables?

Yes you can use a python and nodejs library made fo that I forget the links
jokebookservice1
Scratcher
1000+ posts

Scratch API Cloud Variables?

If you only need the value every so often, try

https://scratch.mit.edu/varserver/<proectID>

for example,

https://scratch.mit.edu/varserver/117103601

Otherwise, as @IcyCoder said, people have written libraries in Python and Node.js to reverse engineer the way Scratch streams cloud data. Here are the repos on GitHub:

Python version credit to Dylan5797
(I cannot find the Node.js version yet)

Last edited by jokebookservice1 (Nov. 6, 2016 18:06:50)

tt_thoma
Scratcher
100+ posts

Scratch API Cloud Variables?

jokebookservice1 wrote:

(#3)
If you only need the value every so often, try

https://scratch.mit.edu/varserver/<proectID>

for example,

https://scratch.mit.edu/varserver/117103601
(I cannot find the Node.js version yet)
The link leads to 404
Chiroyce
Scratcher
1000+ posts

Scratch API Cloud Variables?

tt_thoma wrote:

The link leads to 404
Use this now - https://clouddata.scratch.mit.edu/logs?projectid={project_id}&limit=100&offset=0. And also don't necropost.

Powered by DjangoBB