You can get all the stores id assigned to Specific website Using Magento 2.
Retrieve the Store website relation by the website id to fetch the number of store a specific website has available.
Useful Interface class:
Magento\Store\Api\StoreWebsiteRelationInterface Continue reading “How to get all store ids assigned to specific website Magento 2?”