Actually, looking at the source code, I found some other ones, such as...
http://scratch.mit.edu/api/getgalleryinfobyid/24994 - gets info for a gallery by the ID given http://scratch.mit.edu/api/getnumprojectsbyuser/jvvg - gets the number of projects uploaded by the given user http://scratch.mit.edu/api/getnumcommentsbyuser/jvvg- gets the number of comments by the given user http://scratch.mit.edu/api/getpcommentsbyid/255443 - returns all comments on the given project http://scratch.mit.edu/api/getusersfavoriteprojectsbyuid/261892 - returns all favorited projects by the given user http://scratch.mit.edu/api/getprojectblockscount/4447 - returns the amount of blocks in the given project http://scratch.mit.edu/api/getprojectblocks/1308192 - returns JSON formatted code for the given project http://scratch.mit.edu/api/get_latest_project/XXXXXXXXXXXXX - returns the latest project of the given user (enter an ID there) in JSON format http://scratch.mit.edu/api/getblockcountpercategorybyuserid/139 - returns the amount of blocks by the given user by category in JSON format http://scratch.mit.edu/api/getblockcategorycountbypid/12339 - returns the amount of blocks in the given project by category in JSON format http://scratch.mit.edu/api/get_remixed_project - returns latest remixes in JSON format http://scratch.mit.edu/api/getuserspcommentsbyuid/2/3 - returns all comments user A has posted on user B's projects (user ID, not username)
Offline
btw, API source code is at
http://trac.assembla.com/scratchr/brows … roller.php
Last edited by DarthPickley (2012-09-09 16:24:10)
Offline
DarthPickley wrote:
btw, API source code is at
http://trac.assembla.com/scratchr/brows … roller.php
Yeah, that's where I got the code (I have my own copy of ScratchR working).
Offline
Asraelite wrote:
Does anyone have the API to get a user's id by their name? I really need it.
Yes, here's the PHP code:
$getuserid = file_get_contents("http://scratch.mit.edu/api/getinfobyusername/" . $username); $getuserid = explode(":", $getuserid); $getuserid = $getuserid[1];
Set $username to the username, run this script, and then $getuserid will contain the ID.
Offline
Gravitation wrote:
Asraelite wrote:
Does anyone have the API to get a user's id by their name? I really need it.
Yes, here's the PHP code:
Code:
$getuserid = file_get_contents("http://scratch.mit.edu/api/getinfobyusername/" . $username); $getuserid = explode(":", $getuserid); $getuserid = $getuserid[1];Set $username to the username, run this script, and then $getuserid will contain the ID.
Thanks a bunch
Offline
Asraelite wrote:
Gravitation wrote:
Asraelite wrote:
Does anyone have the API to get a user's id by their name? I really need it.
Yes, here's the PHP code:
Code:
$getuserid = file_get_contents("http://scratch.mit.edu/api/getinfobyusername/" . $username); $getuserid = explode(":", $getuserid); $getuserid = $getuserid[1];Set $username to the username, run this script, and then $getuserid will contain the ID.
Thanks a bunch
No problem!
Offline
Couldn't someone easily write a bruteforcer with the API?
Offline
majormax wrote:
Couldn't someone easily write a bruteforcer with the API?
theoretically, which is why they're moving away from this and towards cas i believe
Offline
SJRCS_011 wrote:
which is why they're moving away from this and towards cas
Do you mean Central Authentication Service?
Offline
s_federici wrote:
SJRCS_011 wrote:
which is why they're moving away from this and towards cas
Do you mean Central Authentication Service?
Yep, I think so.
Offline
majormax wrote:
Couldn't someone easily write a bruteforcer with the API?
The API delays a long time if the username/password pair is incorrect. For example: http://scratch.mit.edu/api/authenticate … mypassword
Offline
jvvg wrote:
Actually, looking at the source code, I found some other ones, such as...
-snip-
Hey, that's nice to know
Dominic1 wrote:
someone could make some awesome stuff with those API's!!!
I'm pretty sure I've seen some Scratch mods (Panther?) that call these APIs.
Offline
technoguyx wrote:
jvvg wrote:
Actually, looking at the source code, I found some other ones, such as...
-snip-Hey, that's nice to know
Dominic1 wrote:
someone could make some awesome stuff with those API's!!!
I'm pretty sure I've seen some Scratch mods (Panther?) that call these APIs.
Mod Share does.
Offline
nXIII wrote:
majormax wrote:
Couldn't someone easily write a bruteforcer with the API?
The API delays a long time if the username/password pair is incorrect. For example: http://scratch.mit.edu/api/authenticate … mypassword
That's good.
And although 2.0 does have CAS, an API will be provided as well.
Offline
majormax wrote:
Couldn't someone easily write a bruteforcer with the API?
Yup, I actually have to see if it would work. It does, but it is extremely slow and brute forcing would take months. I doubt someone would spend that much time on a Scratch account rather than a bank account or something.
Offline
jji7skyline wrote:
nXIII wrote:
majormax wrote:
Couldn't someone easily write a bruteforcer with the API?
The API delays a long time if the username/password pair is incorrect. For example: http://scratch.mit.edu/api/authenticate … mypassword
That's good.
And although 2.0 does have CAS, an API will be provided as well.
Offline
Offline
Oh yeah;
"Courtesy nXIII"
Happy?
Offline
Yeah, the API's are cool. I used a lot of them to write the Scratch Forum API, better known as "self updating images and links in text"! I did write a brute force program for it once to generate a list of people who have friended me, since I can only see those that I have friended, but the process is so slow over the API I think I gave up when I realized it would take about ten days to check through all the names.
EDIT: found the old thread!
Last edited by sparks (2012-11-18 04:42:14)
Offline
sparks wrote:
Yeah, the API's are cool. I used a lot of them to write the Scratch Forum API, better known as "self updating images and links in text"! I did write a brute force program for it once to generate a list of people who have friended me, since I can only see those that I have friended, but the process is so slow over the API I think I gave up when I realized it would take about ten days to check through all the names.
EDIT: found the old thread!
I think it was actually 10 months, if I remember right.
EDIT: Well, I remembered wrong.
Last edited by Hardmath123 (2012-11-18 04:58:26)
Offline
sparks wrote:
Yeah, the API's are cool. I used a lot of them to write the Scratch Forum API, better known as "self updating images and links in text"! I did write a brute force program for it once to generate a list of people who have friended me, since I can only see those that I have friended, but the process is so slow over the API I think I gave up when I realized it would take about ten days to check through all the names.
EDIT: found the old thread!
This used to work for friend names, but the 2.0 site APIs are dying and are going to be removed eventually…
Offline