# HELP call api repeatedly and quickly

**URL:** <https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438>\
**Category:** How do I?\
**Created:** [March 6, 2024, 4:55pm UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438 "2024-03-06T16:55:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rayanenocode](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rayanenocode/32/13166_2.png) [@rayanenocode](https://community.weweb.io/u/rayanenocode)\
**Post date:** [March 6, 2024, 4:55pm UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438/1 "2024-03-06T16:55:31Z")

</div>

Hi everyone, let’s imagine I have a number of an item that varies according to + and -, each time I press one of the buttons it makes a call api to change +1 or -1 the value. Except that it doesn’t look very professional because the workflow takes 3 seconds, counting the call api, the fetch collection etc… is there any way of getting around this?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/ed0cda63319dddb4d47d15b70da4216d8b3f2f06.png)

---

<div class="post-metadata">

**Author:** ![andreas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/andreas/32/7349_2.png) [@andreas](https://community.weweb.io/u/andreas)\
**Post date:** [March 6, 2024, 5:53pm UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438/2 "2024-03-06T17:53:16Z")

</div>

You could fetch the current number with an initial API call and save that to a variable which you bind to the displayed number. With each click on the buttons you change that variable which changes the displayed number immediately. After change you send the new number to the API.

---

<div class="post-metadata">

**Author:** ![rayanenocode](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/rayanenocode/32/13166_2.png) [@rayanenocode](https://community.weweb.io/u/rayanenocode)\
**Post date:** [March 6, 2024, 7:01pm UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438/3 "2024-03-06T19:01:24Z")

</div>

Thanks for the tip, but I’ve already tested this. In fact, when you start a workflow on weweb and then start it again when it’s not yet finished, it finishes anyway and doesn’t start from the beginning. And knowing that this + and - is in a collection of items

---

<div class="post-metadata">

**Author:** ![imb](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@imb](https://community.weweb.io/u/imb)\
**Post date:** [March 7, 2024, 2:02am UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438/4 "2024-03-07T02:02:06Z")

</div>

Is the workflow you are triggering a global workflow?

---

<div class="post-metadata">

**Author:** ![imb](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@imb](https://community.weweb.io/u/imb)\
**Post date:** [March 7, 2024, 2:03am UTC](https://community.weweb.io/t/help-call-api-repeatedly-and-quickly/7438/5 "2024-03-07T02:03:13Z")

</div>

Example - you click on the button which in turn - “executes workflow” that then triggers a global workflow
