Forum Documentation Showcase Pricing Learn more

Get api data and save to database


#1

Hi all experienced Bubblers
I am using API plugin to get data from an Api
I want to get Rental availability
I have connected and calling the api, it returns with response, see attached screen


The response returns 5 item “to, from, available, closed and title”, But all comes with raw data. i am trying to figure out how to save the data in db ( i have created a data type availability with 5 fields to, from, available, closed and title) and show in the front end.

Thanks in advance
Sanjay


#2

Looks like you already have the data in the db. Now you just have to link it to a repeating group on the front end.


#3

He does, but can you explain how to me how to get it into the database


#4

You can access data returned by your API connection in one of two ways, depending upon how you’ve set it up:

If you’ve configured your API call as “data”, you’ll see expressions in any expression builder field for “Get Data from an API…”. If you’ve configured your API call as an “action”, you’ll see a workflow action for pinging the API. That action’s returned data is available to downstream actions (such as Data actions like “make a new thing”, “make changes to a thing”, and Element > Set State actions) as “Results of step x’s blah-de-blah field” (where x is the step order of your API action in the workflow).