Discuss Scratch

BigBlueBlock
Scratcher
500+ posts

Is there any way of listing project URLs in a studio in JavaScript?

Hi, is there any way of listing all project URLs in a studio?
Thanks!

Last edited by BigBlueBlock (Aug. 18, 2013 09:21:09)

scimonster
Scratcher
1000+ posts

Is there any way of listing project URLs in a studio in JavaScript?

You can get a list of the first 60 projects here: http://scratch.mit.edu/site-api/projects/in/STUDIO ID/1/
If you need more, make the number at the end 2, or 3, etc.

Just remember that Scratch isn't CORS enabled, so unless you're making the requests from the Scratch site itself, you'll get security errors. To work around that, use something like corsproxy.com.

Retired Community Moderator
BTW, i run Google Chrome 41.0.2272.101 on a Linux system - Ubuntu 14.04. NEW: iPad 4th gen. w/retina.

418 I'm a teapot (original - to be read by bored computer geeks)
THE GAME (you just lost)
; THE SEMICOLON LIVES ON IN OUR SIGS
BigBlueBlock
Scratcher
500+ posts

Is there any way of listing project URLs in a studio in JavaScript?

scimonster wrote:

You can get a list of the first 60 projects here: http://scratch.mit.edu/site-api/projects/in/STUDIO ID/1/
If you need more, make the number at the end 2, or 3, etc.

Just remember that Scratch isn't CORS enabled, so unless you're making the requests from the Scratch site itself, you'll get security errors. To work around that, use something like corsproxy.com.
Thanks!

Powered by DjangoBB

Standard | Mobile