# External API's in Extensions

**URL:** https://forum.makecode.com/t/external-apis-in-extensions/40423
**Category:** Help
**Tags:** extension
**Created:** [November 13, 2025, 10:37pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423 "2025-11-13T22:37:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MeatballDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meatballdev/32/28502_2.png) [@MeatballDev](https://forum.makecode.com/u/MeatballDev)
#### Post date: [November 13, 2025, 10:37pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423/1 "2025-11-13T22:37:56Z")

</div>

So I am making a Translator Extension but in order for it to work it requires access to external API’s for the translation part, is it possible for Extensions to access API’s such as Google Translate

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [November 14, 2025, 11:15pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423/2 "2025-11-14T23:15:42Z")

</div>

@Brohann has made a Websockets extension. [https://github.com/Brohann3214/pxt-websockets-browser-extension](https://github.com/Brohann3214/pxt-websockets-browser-extension). You would need to host your own server that would receive websocket requests from people using the extension, hit some Google Translate API to get the translation, and then send back the translation to the person who requested it. All of this would probably cost money to run, especially the server hosting. You would also probably need DDOS protection because you’re server would be public, so anyone could send any request to it.

---

<div class="post-metadata">

### Author: ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)
#### Post date: [November 17, 2025, 6:26pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423/3 "2025-11-17T18:26:13Z")

</div>

pxt-websockets-browser extension is actually useless, I tried to combine the pxt-websockets extension with the pxt-browser extension but it didn’t work and I just kept it anyways. It’s functionally the exact same as the regular pxt-websockets extension

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [November 17, 2025, 6:56pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423/4 "2025-11-17T18:56:13Z")

</div>

I just copied the link for the first one I found on your gitHub 😅  
Oh, I found it: `pelikhan/pxt-sockets`  
Oh, and I forgot to mention, @MeatballDev, it’s not in blocks.

---

<div class="post-metadata">

### Author: ![MeatballDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meatballdev/32/28502_2.png) [@MeatballDev](https://forum.makecode.com/u/MeatballDev)
#### Post date: [November 19, 2025, 9:05pm UTC](https://forum.makecode.com/t/external-apis-in-extensions/40423/5 "2025-11-19T21:05:42Z")

</div>

pro hacker launches ddos attack against makecode extension
