Greetings, Magento friends!!
Creating multiple stores products programmatically in Magento 2 can be a tricky job, but don’t worry because the hook is here with a detailed guide on this matter. Have a look at How to get Magento 2 all stores programmatically (Retrieve a list of all stores).
Attachment 16558
Discover more: https://magecomp.com/blog/get-magento-2-all-stores-programmatically/