Discuss Scratch

ChocolatePi
Scratcher
1000+ posts

Scratch APIs

PullJosh wrote:

ChocolatePi wrote:

MegaApuTurkUltra wrote:

Get list of followers and following for a user
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
Note that if you need to collect them all, you have to loop through the number until you get a 404.
That's true for all pagination-based APIs, yes?
Yeah, but I was confused at first so I figured that maybe other people would be.
Rumanti
Scratcher
1000+ posts

Scratch APIs

MegaApuTurkUltra wrote:

Get list of followers and following for a user
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
Hmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?

Last edited by Rumanti (April 28, 2015 02:06:51)


MegaApuTurkUltra
Scratcher
1000+ posts

Scratch APIs

Rumanti wrote:

MegaApuTurkUltra wrote:

Get list of followers and following for a user
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
Hmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?
Cause they're ajaxed for the add curators page.

cute cute cute cute cute

rip in pizza ATs
Rumanti
Scratcher
1000+ posts

Scratch APIs

MegaApuTurkUltra wrote:

Rumanti wrote:

MegaApuTurkUltra wrote:

Get list of followers and following for a user
https://scratch.mit.edu/studios/addfrom/followers/<user>/1/
https://scratch.mit.edu/studios/addfrom/following/<user>/1/
Hmm. Interesting. If they lists Scratchers' followers and followings, why are they subpages of /studios/ ?
Cause they're ajaxed for the add curators page.
That explains me what the “Add” links are doing there.

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&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/


202e-202e-202e-202e-202e UNI-CODE~~~~~
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

liam48D wrote:

Is it bad if I semi-bump up this because I have a new piece of info?

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

ninja'd.. (https://scratch.mit.edu/discuss/topic/96414/?page=4#p960114)

PullJosh
Scratcher
1000+ posts

Scratch APIs

Here's another: https://scratch.mit.edu/projects/68827258/remixtree/bare/

(Thanks to liam48D for that one.)

Last edited by PullJosh (July 28, 2015 14:24:27)


Base 10 is the best number system.
liam48D
Scratcher
1000+ posts

Scratch APIs

PullJosh wrote:

Here's another: https://scratch.mit.edu/projects/68827258/remixtree/bare/

(Thanks to liam48D for that one.)
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

xD

202e-202e-202e-202e-202e UNI-CODE~~~~~
iamunknown2
Scratcher
1000+ posts

Scratch APIs

BUMP.

| My website | Using Geany | A Christian | Running Ubuntu MATE 14.04 with Flash 18.0 (release 0) | Search this with quotation marks on Google to view my posts: “ellipsepostpianolizard” (some posts may not show up) |

Moving on from Scratch? Learn Python/a scripting language (e.g Perl, JavaScript), then move on to a C derivative
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

202e-202e-202e-202e-202e UNI-CODE~~~~~
site-api
New to Scratch
2 posts
WooHooBoy
Scratcher
1000+ posts

Scratch APIs

site-api wrote:

https://scratch.mit.edu/site-api/projects/all/XXXXX/share/
Shares a project
You had to make a new account to do that?

considered harmful
liam48D
Scratcher
1000+ posts

Scratch APIs

WooHooBoy wrote:

site-api wrote:

https://scratch.mit.edu/site-api/projects/all/XXXXX/share/
Shares a project
You had to make a new account to do that?
Totally.

202e-202e-202e-202e-202e UNI-CODE~~~~~
MegaApuTurkUltra
Scratcher
1000+ posts

Scratch APIs

WooHooBoy wrote:

site-api wrote:

https://scratch.mit.edu/site-api/projects/all/XXXXX/share/
Shares a project
You had to make a new account to do that?
^

cute cute cute cute cute

rip in pizza ATs
Smitop
Scratcher
100+ posts

Scratch APIs

You can find a list of some APIs here. This displays a list of tags, like the user list, and this seems to display recent projects.
WooHooBoy
Scratcher
1000+ posts

Scratch APIs

MegaApuTurkUltra wrote:

WooHooBoy wrote:

site-api wrote:

https://scratch.mit.edu/site-api/projects/all/XXXXX/share/
Shares a project
You had to make a new account to do that?
^
Oh my, there's @siteapi too now

considered harmful
Rumanti
Scratcher
1000+ posts

Scratch APIs

Why @siteapi? Dun dun.. The directory name is site-api

thisandagain
Scratch Team
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.

Last edited by thisandagain (Oct. 27, 2015 00:37:31)

Powered by DjangoBB

Standard | Mobile