Skip to content

get store data using store url multi store magento2

I have multi store environment with three stores,

  1. us.abc.com
  2. ca.abc.com
  3. uk.abc.com

having respective websites and store views.

I want to get store data like store code, store id, store website etc. by store URL “us.abc.com”
is there any function that I can pass the store URL and get the data of store?