I need to send a get request to my own API and get data with nested list of object details (not just ids)
So I think I can achieve this by creating a back-end workflow that can fetch data in 2 steps.
I’ve already done this using the “Return Data from API” method but it returns the first object or a specific object in the list. When I tried the “Schedule an API workflow on a list” method It would go through the list successfully because it gives me a response with the same number of items in the list but it doesn’t return any useful data, instead, it always returns some weird numbers I think someone mentioned here is the request ids.
It sounds like you are trying to fetch data from a list of objects using an API workflow in Bubble. To do this, you can use the “For each” loop in your API workflow to iterate over the list of objects and make a separate API request for each object. Here is an example of how you can set this up:
In your API workflow, use the “For each” loop to iterate over the list of objects that you want to fetch data for.
Inside the “For each” loop, use the “Make a request” action to make an API request to your API endpoint for each object.
Use the “Return data from API” action to parse the response and extract the data that you want to return for each object.
In the “Return data from API” action, you can use the “Append to list” option to add the data for each object to a list that you can return as the output of the API workflow.
This way, you can make a separate API request for each object in the list and return a list of data for each object in the response.