After you have configured multi-website or set up multistore in Magento 2, you require to test or debug the functionality in relation to the muti website or multi-stores before going live. To speed up the process, you need to have the website ID and store ID.
Magento 2 stores have several extensions that require store ID while configuration. A Magento newbie may spend too much time to find the website ID or store ID of a particular website or store.
Today, I have come up with the simple method to get website ID and store ID from admin in Magento 2, it would be easier for you while debugging or testing and configuring Magento 2 extensions that require ID.
Stepwise Method to Get Store ID from Admin in Magento 2
1. Log in to the Magento 2 admin panel.
2. Navigate to Content > Design > Configuration
3. Select the Store for which require the store ID and click “Edit”
4. The store ID is displayed in the URL.

Stepwise Method to Get Website ID from Admin in Magento 2
1. Log in to Magento 2 admin panel.
2. Navigate to Content > Design > Configuration
3. Select the Website for which you require to find the website ID and click “Edit”
4. The website ID is displayed in the URL.

That’s it. After completing with the above process if you are working with multi store environment you will often be in a need to get current store ID in Magento 2, so just try it.
Do consider sharing this post with Magento Community via social media.
Thank you.