# \# of API calls in 1 Front-End Workflow?

**URL:** <https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862>\
**Category:** Need help\
**Created:** [January 27, 2023, 10:52pm UTC](https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862 "2023-01-27T22:52:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark7](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mark7](https://forum.bubble.io/u/mark7)\
**Post date:** [January 27, 2023, 10:52pm UTC](https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862/1 "2023-01-27T22:52:30Z")

</div>

Hi, I have an app that needs to send multiple different prompts at a time to open ai’s API. So I’m only returning text on each call. That means I’ll have a workflow that will have numerous API calls, anywhere between 1 and 15.

Is there a rule of thumb for how many I should limit this to as a front-end workflow?

Does anyone have any experiencing with workflows timing out with stuff like this?

I would love to run it on the server instead, but then I can’t access the return data without saving it, and much of it will just be thrown out.

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 28, 2023, 2:10am UTC](https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862/2 "2023-01-28T02:10:07Z")

</div>

There’s no set number of API calls that will cause a time out - best advice is just to test it. Some APIs take longer than others to respond, and depending on your set up, some API calls may be synchronous.

It is possible though to run it on the server w/o saving the data. You can expose a backend workflow as a public endpoint (ex. [yourbubbleapp.com/api/1.1/wf/yourworkflowname](http://yourbubbleapp.com/api/1.1/wf/yourworkflowname)) and then call that endpoint from the client side.

---

<div class="post-metadata">

**Author:** ![mark7](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@mark7](https://forum.bubble.io/u/mark7)\
**Post date:** [January 28, 2023, 4:02am UTC](https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862/3 "2023-01-28T04:02:18Z")

</div>

Thanks! I’m having some trouble finding resources on doing this. Do you know of any?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 7, 2023, 10:53pm UTC](https://forum.bubble.io/t/of-api-calls-in-1-front-end-workflow/243862/4 "2023-04-07T22:53:05Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
