Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » External web api communication
- douglapsley
- Scratcher
2 posts
External web api communication
Hi
Does anyone know if is is possible for Scratch to communicate with external web APIs please?
I can see that it is possible to write extensions that communicate with external hardware and that communication is done via http requests. But I don't know if that would extend to remote web based APIs?
My thinking is that it would be great to be able to access the host of web apis out there so that the characters can, for example, tell you what the weather is going to be like today or similar. My kids would get a real kick out of that.
Any thoughts or feedback would be most welcome.
Thank you!
Does anyone know if is is possible for Scratch to communicate with external web APIs please?
I can see that it is possible to write extensions that communicate with external hardware and that communication is done via http requests. But I don't know if that would extend to remote web based APIs?
My thinking is that it would be great to be able to access the host of web apis out there so that the characters can, for example, tell you what the weather is going to be like today or similar. My kids would get a real kick out of that.
Any thoughts or feedback would be most welcome.
Thank you!
- _nix
- Scratcher
1000+ posts
External web api communication
I think you and your kids would find ScratchX interesting! It's an official website dedicated to extensions that connect to the internet or external hardware (actually there's also a few extensions that connect to your computer or browser, letting you do things like playing text as speech).
Extensions are generally programmed using JavaScript. You can find more information about making them on the ScratchX wiki. There's also a fair bit of information in the Developing Scratch Extensions forum (plus you can ask any extension-related questions there).
You can't share projects made with Scratch extensions on the Scratch website, but you can save and load them with the “file” menu in the editor.
Extensions are generally programmed using JavaScript. You can find more information about making them on the ScratchX wiki. There's also a fair bit of information in the Developing Scratch Extensions forum (plus you can ask any extension-related questions there).
You can't share projects made with Scratch extensions on the Scratch website, but you can save and load them with the “file” menu in the editor.
Last edited by _nix (April 8, 2017 10:21:41)
══ trans autistic lesbian enbydoggirls // 16 17 18 19 20 21, she/they ════
sparrows one word to the paragraph // <3 // ~(quasar) nebula
- douglapsley
- Scratcher
2 posts
External web api communication
Thank you, that's exactly the kind of thing I was looking for! Love it. We'll definitely have a play with that. Great Spotify extension!
Much appreciated!
Much appreciated!
- coolcoder1213
- Scratcher
100+ posts
External web api communication
This is so cool!
So, this is just a signature.
Scratchleton - Hamilton Mod
Cloud Stats Projects
My Profile:
coolcoder1213
I am great at cloud variables and Python.
- AlGamesDeveIoper
- Scratcher
63 posts
External web api communication
This is so cool!
Please do not necropost
Thanks!
PFP is my face reveal. Don't laugh at me, this is the best I will ever be. At least it isn't like my cousin, Chris P Bacon
- coolcoder1213
- Scratcher
100+ posts
External web api communication
This is so cool!
Please do not necropost
Thanks!
What does that even mean?
So, this is just a signature.
Scratchleton - Hamilton Mod
Cloud Stats Projects
My Profile:
coolcoder1213
I am great at cloud variables and Python.
- kasumikawaii
- Scratcher
500+ posts
External web api communication
This will help, just click the link :)This is so cool!
Please do not necropost
Thanks!
What does that even mean?
Kamishiro Rui (神代類) is a second-year student at Kamiyama High School. He is a member of the musical show unit Wonderlands x Showtime.
- Discussion Forums
- » Questions about Scratch
- » External web api communication