How to display API data

I am using the API data source, I need to save in my database the entire data field, so far I got that when I open the define API Schema and click on fetch schema, it shows me the data, this is an API that creates data each time it gets accessed, all I need is to store that data under my users Id, but no idea how to either display the data on the front end or to store it with the insert to the database, there is no parameter I need for this it just a direct link to the API, and for now there is no key since it is under development.

I tried to bind it to a paragraph field
I tried to band it to a form field but its always empty when I try without the fetch Schema option that is use to test, how can I fetch the data on the front end and save it on a variable?

There are a couple of ways you can access the result dataset.

  1. Set Value variable - In the Server Action where you’re fetching the external API result, add one or more set value steps after the API step, click on the dynamic picker to select field/s to bind from the API result dataset. Disable Output for the API step and enable Output for the set value step to access on the front end.
  2. Complete API result dataset & to display data on the front end - Enable Output for the API step. Add a Server Connect (App Connect) and select the Server Action (External API). The complete dataset from the External API will become available along with any set value variable if these have been added in the Server Action.

To store data in a database - Add a Server Connect Form on the front end, add Input Fields and dynamically bind the values you want to save with the API result dataset values. To save it with the user Id, add this input field as a hidden field. Create a new Server Action that will insert / update these values in the database and link the form to this Server Action.

1 Like

Thank you for the repolay