Discuss Scratch

TheGameBuilder
Scratcher
100+ posts

Accessing the project's JSON objects

To my knowledge(Chrome's network tab), when you access a project's page it downloads it's JSON file. Is there a way to acess it's objects?
PS1: I'm using javascript.
PS2: I tried downloading the project's JSON file via a new http request but if the project i'm in is private, even though it's mine, I get the 405 error.

Last edited by TheGameBuilder (Oct. 6, 2014 04:27:45)

MegaApuTurkUltra
Scratcher
1000+ posts

Accessing the project's JSON objects

Well, an easy way is to just download the project to your computer from the editor, rename to .zip, and unzip it. The file project.json contains all the json.
EMPedemonte20
Scratcher
100+ posts

Accessing the project's JSON objects

Look on the wiki about the 2.0 api. As for the unshared problem… I can't help for that.
TheGameBuilder
Scratcher
100+ posts

Accessing the project's JSON objects

MegaApuTurkUltra wrote:

Well, an easy way is to just download the project to your computer from the editor, rename to .zip, and unzip it. The file project.json contains all the json.
It's an userscript, I need to access it through javascript.

EMPedemonte20 wrote:

Look on the wiki about the 2.0 api. As for the unshared problem… I can't help for that.
That's why I need to access find out where they store the JSON object after they download it. I think they send some info within the GET request to let the api know you're allowed to see it.
MegaApuTurkUltra
Scratcher
1000+ posts

Accessing the project's JSON objects

If you look on the Scratch wiki,
http://cdn.projects.scratch.mit.edu/internalapi/project/ID GOES HERE/get/
is the endpoint for getting the project json. It works for me
(even if I access one of my unshared projects while signed out. ST, Y U no have good security skillz?)
minirag
Scratcher
81 posts

Accessing the project's JSON objects

It doesn't seem to work…. I know how to access JSON and hack projects XD But I can't seem to use the link you suggested above. :\
nathanprocks
Scratcher
1000+ posts

Accessing the project's JSON objects

minirag wrote:

It doesn't seem to work…. I know how to access JSON and hack projects XD But I can't seem to use the link you suggested above. :\
It works for me. Did you put the correct project ID?
minirag
Scratcher
81 posts

Accessing the project's JSON objects

N=

nathanprocks wrote:

minirag wrote:

It doesn't seem to work…. I know how to access JSON and hack projects XD But I can't seem to use the link you suggested above. :\
It works for me. Did you put the correct project ID?
Nope…
minirag
Scratcher
81 posts

Accessing the project's JSON objects

I get 404. I think it was patched in an update…
Sam_PATL
Scratcher
1 post

Accessing the project's JSON objects

How can you enter the id for JSON?

Powered by DjangoBB