# How to load data to bubble database automatically every 5 minutes

**URL:** <https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075>\
**Category:** APIs\
**Created:** [June 30, 2021, 10:49pm UTC](https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075 "2021-06-30T22:49:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett4](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@brett4](https://forum.bubble.io/u/brett4)\
**Post date:** [June 30, 2021, 10:49pm UTC](https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075/1 "2021-06-30T22:49:06Z")

</div>

Hello,

I’m new to bubble and I am having trouble pulling data from an external API and loading it automatically into the bubble database every 5 minutes.

I know the API is working properly as I built out this functionality within a page. All I do is create a new workflow “When Do every 300 seconds” → then “Create a thing” and then choose the API and what data to be loaded into the database. However, if the page is not open the API will stop refreshing and therefore stop loading data into the database.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/1/51c92981c04cf9786e8229050da15c30b6b4841f.png)

Is there a way to do a similar logic within the backend workflows. It’s not intuitive and when I try to do a recurring event they keep asking for more money. I’m assuming the solution is going to cost more. Any advice on solving this without upgrading my plan?

Thank you,

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [July 1, 2021, 12:51am UTC](https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075/2 "2021-07-01T00:51:52Z")

</div>

There is, but I don’t think this is a healthy approach… The best way is to insert the data into your database using a webhook.

Anyway… The solution would be to trigger a backend workflow that, in the end. will schedule to trigger itself in 1 minute… this will generate a loop… But as I said, don’t think this is the best solution…

---

<div class="post-metadata">

**Author:** ![brett4](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@brett4](https://forum.bubble.io/u/brett4)\
**Post date:** [July 1, 2021, 2:29am UTC](https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075/3 "2021-07-01T02:29:21Z")

</div>

Thanks for your help! If there is a better way I am all ears. Again I am new so don’t know the full capabilities within bubbles or website functionality.

Anything you would recommend to read about webhooks to learn more?

Thanks again

---

<div class="post-metadata">

**Author:** ![shawnmi6](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/shawnmi6/32/96625_2.png) [@shawnmi6](https://forum.bubble.io/u/shawnmi6)\
**Post date:** [July 1, 2021, 4:54am UTC](https://forum.bubble.io/t/how-to-load-data-to-bubble-database-automatically-every-5-minutes/158075/4 "2021-07-01T04:54:31Z")

</div>

First step would be it find out if the place where you are pulling data from has the ability to send a webhook everytime the data changes.
