Images Array Woocommerce

Hello,

I need your help concerning a make scenario, from an API I’m going to look for properties, these have images, but this is variable, there can be 10 like 1.

For the moment I’m working with Filters, I say if there are 9 images then you do this, etc… But it’s very, very time-consuming, especially if I have to make a modification later on.

Like transforming only the images into arrays?
I’ve already tried the array aggregator but it compresses all the info and I can’t access the other product info.

Thanks for your help.