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.ezproxyberklee.flo.org/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.
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.ezproxyberklee.flo.org/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