here’s a simple bubble app that i built that calls indeed.com’s job API. i’m using a “data” API call rather than an “action” API call. i like “data” rather than “action” API calls in this case.
(this is my first time sharing an app, so i’m assuming that other users can open it up and look at it behind the scenes. if not, please let me know.)
upon page load, job search results are loaded immediately based on the default values in the input fields. you’ll see them at the bottom of the screen once the page loads. i don’t want the app to do this. i want the app to wait to call the API until the user clicks the “get jobs” button, and not before.
it seems like i’m halfway there. the app DOES work this way AFTER the button is pressed for the first time, and every time thereafter (the app waits for the user to push the “get jobs” button before applying the new search parameters). but i want the page to work this way (wait to call the API until the “get jobs” button is pressed) upon page load. i don’t want any API data to load without the user expressly calling the data by pushing the button. again, it works this way already, but only after the “get jobs” button is pressed for the first time.
any suggestions on getting the page to work this way?
the reason i want the app to wait to call the API is because i’m planning to use a paid API that charges me per query. i don’t want to be charged for an API call that was called upon page load–the user doesn’t have any user for those default results. bubble also appears to run the call as you’re typing–so if you’re typing out “account manager” as the search term, bubble appears to run the call before i’m even done typing. this can get really wasteful and expensive on a paid API. so i really want to set up the app to wait until the “get jobs” button is pressed before any API data is called.
thanks for any help you can provide–these forums have already been really helpful!