Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Does anyone know how to import scratch API into a scratch project?
- StickMan1087
-
Scratcher
18 posts
Does anyone know how to import scratch API into a scratch project?
Hi i was wondering if anyone has an idea on how to put scratch API into a project. I have seen many people do it and i have an idea to use that for a project. If you dont know what scratch API is then go here https://en.scratch-wiki.info/wiki/Scratch_API
- hodgeonscratch
-
Scratcher
37 posts
Does anyone know how to import scratch API into a scratch project?
Sorry. I don't know. I think Google would be your best friend in this situation. I mean, there's no block called
Connect With Scratch API ::variables. Sorry I'd tell you if I knew.
- StickMan1087
-
Scratcher
18 posts
Does anyone know how to import scratch API into a scratch project?
Sorry. I don't know. I think Google would be your best friend in this situation. I mean, there's no block calledI have but it doesnt tell you. Thx for the reply thoConnect With Scratch API ::variables. Sorry I'd tell you if I knew.

- deck26
-
Scratcher
1000+ posts
Does anyone know how to import scratch API into a scratch project?
Can you link to a project that uses it? I suspect it means working on Scratch files outside of Scratch so you have to know enough to do that.
- awesome-llama
-
Scratcher
1000+ posts
Does anyone know how to import scratch API into a scratch project?
The only way to communicate outside of a scratch project is through cloud variables. Variables can be read from and written to through Scratch's cloud API and you can write a script in another programming language that can access this API. Scratchers often use Python for this. You will also need to have this running constantly so you need a server for it too. Running it off your computer is an option and another is using an online service such as repl.it (though note that this example no longer works, Scratch blocked it).
Once you have all that solved, if you wanted to have other parts of the scratch API in a project, you can have your server do it and send that data through cloud to the project.
Once you have all that solved, if you wanted to have other parts of the scratch API in a project, you can have your server do it and send that data through cloud to the project.
- StickMan1087
-
Scratcher
18 posts
Does anyone know how to import scratch API into a scratch project?
Can you link to a project that uses it? I suspect it means working on Scratch files outside of Scratch so you have to know enough to do that.I havnt started on it yet. Im just getting ideas
- StickMan1087
-
Scratcher
18 posts
Does anyone know how to import scratch API into a scratch project?
The only way to communicate outside of a scratch project is through cloud variables. Variables can be read from and written to through Scratch's cloud API and you can write a script in another programming language that can access this API. Scratchers often use Python for this. You will also need to have this running constantly so you need a server for it too. Running it off your computer is an option and another is using an online service such as repl.it (though note that this example no longer works, Scratch blocked it).Thats confusing. I guess i cant do it
Once you have all that solved, if you wanted to have other parts of the scratch API in a project, you can have your server do it and send that data through cloud to the project.
- Discussion Forums
- » Help with Scripts
-
» Does anyone know how to import scratch API into a scratch project?