# API requests in Run Code

**URL:** <https://community.appfarm.io/t/api-requests-in-run-code/80>\
**Category:** Ask the community\
**Tags:** web-request, run-code\
**Created:** [December 20, 2022, 3:07pm UTC](https://community.appfarm.io/t/api-requests-in-run-code/80 "2022-12-20T15:07:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fridtjof](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/fridtjof/32/262_2.png) [@Fridtjof](https://community.appfarm.io/u/Fridtjof)\
**Post date:** [December 20, 2022, 3:07pm UTC](https://community.appfarm.io/t/api-requests-in-run-code/80/1 "2022-12-20T15:07:55Z")

</div>

Is it possible to send API requests in the Run Code action node, e.g. using the node-module fs? Or another library?

---

<div class="post-metadata">

**Author:** ![Ole](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/ole/32/60_2.png) [@Ole](https://community.appfarm.io/u/Ole)\
**Post date:** [December 20, 2022, 3:14pm UTC](https://community.appfarm.io/t/api-requests-in-run-code/80/2 "2022-12-20T15:14:09Z")

</div>

node-modules like fs are not available. Run Code runs client side and you have the possibility to use whatever is available in the browser, such as the Request interface of the Fetch API:

> **[Request - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Request)**
>
> The Request interface of the Fetch API represents a resource request.
