How to display images from dynamic image ID fields—handling array size mismatch

Hi team,

I’m retrieving a list of items from an external API. Each item contains an array of image IDs (e.g., "image/55464"). To show an image, I need to fetch it from https://api.myapi.com/v100/image/{id_image}.

However, I’m not able to loop over the entire image array directly. In Bricks Builder, I have to manually add individual dynamic fields for each image ID, one by one. My concern is: what happens if the array in the API response includes more images (for example, 10 or more), but I’ve only mapped 4 dynamic image fields in the template? Is there any way to make this process dynamic, so it scales with the actual number of images in the response—without having to manually add an image field for every possible position?

Any advice or solutions for this scenario would be appreciated!

Thanks for your help!
image

No replies?

I think it’s important for using APIs in bricks

same here bro! :S i don’t know why lacks info about, this is so important for community