{"id":1473,"date":"2020-12-20T06:02:46","date_gmt":"2020-12-20T06:02:46","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/get-website-id-and-store-id-from-admin-magento-2\/"},"modified":"2025-05-21T17:27:29","modified_gmt":"2025-05-21T11:57:29","slug":"get-website-id-and-store-id-from-admin-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/get-website-id-and-store-id-from-admin-magento-2\/","title":{"rendered":"How to Get Website ID and Store ID from Admin in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After you have configured multi-website or&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/setup-magento-2-multi-store\/\" target=\"_blank\" rel=\"noreferrer noopener\">set up multistore in Magento 2<\/a>, 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today, I have come up with the simple method to&nbsp;<strong>get website ID and store ID from admin in Magento 2<\/strong>, it would be easier for you while debugging or testing and configuring Magento 2 extensions that require ID.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stepwise Method to Get Store ID from Admin in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Log in to the Magento 2 admin panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to&nbsp;<strong>Content &gt; Design &gt; Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Select the Store for which require the store ID and click<strong>&nbsp;\u201cEdit\u201d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. The store ID is displayed in the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/12\/Annotation-on-2020-12-04-at-17-39-37-1024x369.png\" alt=\"find the ID of Website or Store in Magento 2\" class=\"wp-image-11978\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Stepwise Method to Get Website ID from Admin in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Log in to Magento 2 admin panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to&nbsp;<strong>Content &gt; Design &gt; Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Select the Website for which you require to find the website ID and click<strong>&nbsp;\u201cEdit\u201d<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. The website ID is displayed in the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/12\/Annotation-on-2020-12-04-at-17-38-30-1024x337.png\" alt=\"get website ID and store ID from admin in Magento 2\" class=\"wp-image-11989\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it. After completing with the above process if you are working with multi store environment you will often be in a need to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/get-current-store-id-in-magento-2\/\">get current store ID in Magento 2<\/a>, so just try it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do consider sharing this post with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After you have configured multi-website or&nbsp;set up multistore in Magento 2, you require to test or debug the functionality in relation to the muti website&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1473","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1473"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1473\/revisions"}],"predecessor-version":[{"id":13915,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1473\/revisions\/13915"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}