Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch APIs
- ChocolatePi
-
Scratcher
1000+ posts
Scratch APIs
Yeah, but I was confused at first so I figured that maybe other people would be.That's true for all pagination-based APIs, yes?Get list of followers and following for a userNote that if you need to collect them all, you have to loop through the number until you get a 404.
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
- Rumanti
-
Scratcher
1000+ posts
Scratch APIs
Get list of followers and following for a userHmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
Last edited by Rumanti (April 28, 2015 02:06:51)
- MegaApuTurkUltra
-
Scratcher
1000+ posts
Scratch APIs
Cause they're ajaxed for the add curators page.Get list of followers and following for a userHmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
- Rumanti
-
Scratcher
1000+ posts
Scratch APIs
That explains me what the “Add” links are doing there.Cause they're ajaxed for the add curators page.Get list of followers and following for a userHmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
- Superdoggy
-
Scratcher
1000+ posts
Scratch APIs
Found this one while poking around:
https://scratch.mit.edu/external/blog/api/read/json/?callback=%22displayPosts%22
You can also add this “&num=X” to it to limit it to a specific number of posts, X being the number of posts.
https://scratch.mit.edu/external/blog/api/read/json/?callback=%22displayPosts%22
You can also add this “&num=X” to it to limit it to a specific number of posts, X being the number of posts.
https://scratch.mit.edu/external/blog/api/read/json/?callback=%22displayPosts%22&num=1
- liam48D
-
Scratcher
1000+ posts
Scratch APIs
Is it bad if I semi-bump up this because I have a new piece of info?

https://scratch.mit.edu/statistics/data/daily/

- Rumanti
-
Scratcher
1000+ posts
Scratch APIs
@liam48D: Noooo that API is going to be very useful, I loooove it! <3 I can spy on Scratch for a school project!
- Zaidhaan
-
Scratcher
100+ posts
Scratch APIs
Is it bad if I semi-bump up this because I have a new piece of info?ninja'd.. (https://scratch.mit.edu/discuss/topic/96414/?page=4#p960114)https://scratch.mit.edu/statistics/data/daily/
- PullJosh
-
Scratcher
1000+ posts
Scratch APIs
Here's another: https://scratch.mit.edu/projects/68827258/remixtree/bare/
(Thanks to liam48D for that one.)
(Thanks to liam48D for that one.)
Last edited by PullJosh (July 28, 2015 14:24:27)
- liam48D
-
Scratcher
1000+ posts
Scratch APIs
Here's another: https://scratch.mit.edu/projects/68827258/remixtree/bare/I saw this bumped up to the top of the forums, so I came here, and while it was loading, I was like, “Hey, I should go suggest the remix tree one.” And of course that's what you were suggesting. lol
(Thanks to liam48D for that one.)
xD
- liam48D
-
Scratcher
1000+ posts
Scratch APIs
This might have to do with the Scratch News:
https://scratch.mit.edu/external/blog/api/read/json/?callback=%22displayPosts%22&num=3&_=1445766999472
- site-api
-
New Scratcher
2 posts
Scratch APIs
https://scratch.mit.edu/site-api/projects/all/XXXXX/share/
Shares a project
Shares a project
- WooHooBoy
-
Scratcher
1000+ posts
Scratch APIs
https://scratch.mit.edu/site-api/projects/all/XXXXX/share/You had to make a new account to do that?
Shares a project
- liam48D
-
Scratcher
1000+ posts
Scratch APIs
Totally.https://scratch.mit.edu/site-api/projects/all/XXXXX/share/You had to make a new account to do that?
Shares a project
- MegaApuTurkUltra
-
Scratcher
1000+ posts
Scratch APIs
^https://scratch.mit.edu/site-api/projects/all/XXXXX/share/You had to make a new account to do that?
Shares a project
- WooHooBoy
-
Scratcher
1000+ posts
Scratch APIs
Oh my, there's @siteapi too now^https://scratch.mit.edu/site-api/projects/all/XXXXX/share/You had to make a new account to do that?
Shares a project
- thisandagain
-
Forum Moderator
500+ posts
Scratch APIs
Nice! There are a few more that aren't documented, but as an FYI the “site-api” endpoints are all deprecated as of today. The new site architecture uses a totally isolated API cluster that you can preview here:
https://api-staging.scratch.mit.edu/
https://api-staging.scratch.mit.edu/news?limit=2
https://api-staging.scratch.mit.edu/news?limit=2&offset=2
etc. etc.
We'll be publishing an API guide once we get a little further along. Just let me know if you have any questions.
https://api-staging.scratch.mit.edu/
https://api-staging.scratch.mit.edu/news?limit=2
https://api-staging.scratch.mit.edu/news?limit=2&offset=2
etc. etc.
We'll be publishing an API guide once we get a little further along. Just let me know if you have any questions.
Last edited by thisandagain (Oct. 27, 2015 00:37:31)












