# Plugin that returns data from API

**URL:** <https://forum.bubble.io/t/plugin-that-returns-data-from-api/251230>\
**Category:** Plugins\
**Created:** [March 11, 2023, 11:01am UTC](https://forum.bubble.io/t/plugin-that-returns-data-from-api/251230 "2023-03-11T11:01:58Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [March 11, 2023, 2:12pm UTC](https://forum.bubble.io/t/plugin-that-returns-data-from-api/251230/6 "2023-03-11T14:12:06Z")

</div>

As I said your function logic has problems even before adding `context.async`.  
Make it run locally on your machine as a node script, then when it’s working use it in the plugin.  
You can find plenty of examples in the forum about how to use `context.async`.  
See [here](http://forum.bubble.io/t/need-help-with-async-server-side-plugin/242868/4) for a recent example.

---

_[View the full topic](https://forum.bubble.io/t/plugin-that-returns-data-from-api/251230)._
