@brandon8
It sounds like a suggestion to have a recurring event setup to do API calls. This would result in unnecessarily running API calls at regular intervals which wouldn’t be ideal.
This would require querying the DB unnecessarily. To optimize an application performance, a rule of thumb I follow is to touch the DB as little as possible. In the event that I am working with API data, I don’t incorporate my DB into this, and instead just pull the data from the API when I need the data from the API.
This would be another instance of touching the database unnecessarily and combining it with running workflows.
It is always best in my opinion to work with the data from the API using the API calls, unless there is some kind of fee per API call, then I would consider storing those values in my app DB.
When saving API data in an DB I save it as the type of data returned by the API…in the screen shot below I have two text fields, but two fields that are of the type of data returned by the API.

This text element below is inside a repeating group searching my DB for this data type of Airplane Listing and is referencing one of the data fields of the API data type and I can access from it all the fields associated.
I personally have never tested using an API in which a data field on it might be updating regularly and after I have originally saved it to the DB, so I would be very interested to find out if the updated fields return with the values they were when saved to the DB or the updated values…my assumption is the field would be basically static and return the value at the time I saved it.
In any event, I always try to reduce the number of workflows and database calls in my apps. In this sort of situation I rely on performing the sorting and filtering on the API call when a user needs the data.
Here is a screen shot of a dynamic sort and filter on an API call.
Screen shot of the pagination workflow
The repeating group gets updated automatically with the data from the API in the same way it does when I do pagination on entries from my DB and I add some new values for the constraints.
Learn More
Boston85719 is an expert Bubbler with a decade experience as an educator. Real name Matthew, he has been actively building SaaS apps, marketplace apps, scheduling apps and more for clients, himself and for sale as templates.
As an official Bubble Bootcamp Instructor, he leads Bubble Bootcamps on a regular basis.
Always willing to offer advice via the Bubble Forum, Matthew also offers Private Personal and Group Training Sessions.
Through his site, NoCodeTrainer, Matthew provides a range of tutorials with editor access to help you jumpstart your Bubble development.
Always accessible you can send Matthew a private message via the forum or send an email directly with your requests.
Be sure to checkout the Stripe Integration Course when you are ready to integrate Stripe payments to start monetizing your application via product sales or subscriptions.

