Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch Asset API
- drmcw
-
1000+ posts
Scratch Asset API
Has anyone used the Scratch API for assets? e.g.
http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/asset/510da64cf172d53750dffd23fbf73563/get/
as described here.
The number between asset and get in the URL should be the MD5 hash for a background image in a project which was retrieved from the project's json file using the project api which does work.
When I try and get a response from the asset API I just get a 404 Not Found exception. Has anyone used this api successfully?
http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/asset/510da64cf172d53750dffd23fbf73563/get/
as described here.
The number between asset and get in the URL should be the MD5 hash for a background image in a project which was retrieved from the project's json file using the project api which does work.
When I try and get a response from the asset API I just get a 404 Not Found exception. Has anyone used this api successfully?
- ShinyRedGenesect
-
99 posts
Scratch Asset API
Doesn't that vandalize the privacy of others?
- drmcw
-
1000+ posts
Scratch Asset API
How can it when it's not private? Doesn't that vandalize the privacy of others?
- Gamer59620
-
2 posts
Scratch Asset API
Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.How can it when it's not private? Doesn't that vandalize the privacy of others?
- drmcw
-
1000+ posts
Scratch Asset API
Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.How can it when it's not private? Doesn't that vandalize the privacy of others?
- Hardmath123
-
1000+ posts
Scratch Asset API
It doesn't work for projects that aren't shared. So we're safe.Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.How can it when it's not private? Doesn't that vandalize the privacy of others?

I used it in the original Pythonic snapin8r (the new one takes ZIPs instead).
- drmcw
-
1000+ posts
Scratch Asset API
It doesn't work for projects that aren't shared. So we're safe.Well if it's shared its no longer private is it? If you want to argue about Scratch and its privacy policies then please do it on another topic.Well, maybe the person has some private stuff, like some pictures that he/she made. That's just an example.How can it when it's not private? Doesn't that vandalize the privacy of others?
I used it in the original Pythonic snapin8r (the new one takes ZIPs instead).
Any idea why I get a 404 error for the api. The MD5 is taken from the json file for a stage backdrop in a shared project so I assume is correct.
- MathWizz
-
100+ posts
Scratch Asset API
You didn't include the .png or .svg or other extension. This is correct: http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/asset/510da64cf172d53750dffd23fbf73563.png/get/ (it's white so you can't see it on a white background.)
- drmcw
-
1000+ posts
Scratch Asset API
I didn't add the extension! I did wonder about that but thought it odd to add .png or .wav etc. when the api implies it's purely md5. Oh well.
Thanks for your help.
Thanks for your help.
- drmcw
-
1000+ posts
Scratch Asset API
http://scratch.mit.edu.ezproxyberklee.flo.org/internalapi/asset/510da64cf172d53750dffd23fbf73563.png/get/ (it's white so you can't see it on a white background.)Yes it's just a default project for testing. And there I was explicitly removing the extension as I thought it wasn't needed! You didn't include the .png or .svg or other extension. This is correct:
Thanks.
- Discussion Forums
- » Advanced Topics
-
» Scratch Asset API