--- title: useShop description: The `useShop` hook enables fetching a shop by its ID. api_name: shop-minis source_url: html: 'https://shopify.dev/docs/api/shop-minis/hooks/shop/useshop' md: 'https://shopify.dev/docs/api/shop-minis/hooks/shop/useshop.md' --- # use​Shop The `useShop` hook enables fetching a shop by its ID. ## use​Shop(**[params](#-propertydetail-params)**​) ### Parameters * **params** **UseShopParams** **required** ### Returns * **UseShopReturns** ### ### UseShopReturns * **error** **Error | null** * **loading** **boolean** * **refetch** **() => Promise\** * **shop** **Shop | null** The shop returned from the query. ### UseShopParams * fetchPolicy ```ts DataHookFetchPolicy ``` * id The shop ID to fetch. ```ts string ``` * skip ```ts boolean ``` ### DataHookFetchPolicy ```ts 'cache-first' | 'network-only' ``` ### UseShopReturns * error ```ts Error | null ``` * loading ```ts boolean ``` * refetch ```ts () => Promise ``` * shop The shop returned from the query. ```ts Shop | null ``` ### Shop * id ```ts string ``` * isFollowing ```ts boolean | null ``` * logoImage ```ts ProductImage | null ``` * name ```ts string ``` * primaryDomain ```ts { url: string; } ``` * reviewAnalytics ```ts { averageRating?: number; reviewCount: number; } ``` * shareUrl ```ts string | null ``` * visualTheme ```ts VisualTheme | null ``` ### ProductImage * altText ```ts string | null ``` * height ```ts number | null ``` * id ```ts string | null ``` * sensitive ```ts boolean | null ``` * thumbhash ```ts string | null ``` * url ```ts string ``` * width ```ts number | null ``` ### VisualTheme * brandSettings ```ts BrandSettings | null ``` * description ```ts string | null ``` * featuredImages ```ts ImageType[] ``` * id ```ts string ``` * logoImage ```ts ImageType | null ``` ### BrandSettings * colors ```ts ColorTheme | null ``` * headerTheme ```ts HeaderTheme | null ``` * id ```ts string ``` * logos ```ts LogoTheme | null ``` ### ColorTheme * coverDominant ```ts string | null ``` * id ```ts string ``` * logoAverage ```ts string | null ``` * logoDominant ```ts string | null ``` * primary ```ts string | null ``` * secondary ```ts string | null ``` * secondaryText ```ts string | null ``` * statusBarStyle ```ts string | null ``` ### HeaderTheme * coverImage ```ts ImageType | null ``` * endingScrimColor ```ts string | null ``` * id ```ts string ``` * startingScrimColor ```ts string | null ``` * thumbnailImage ```ts ImageType | null ``` * videoUrl ```ts string | null ``` * wordmark ```ts ImageType | null ``` ### ImageType * altText ```ts string | null ``` * height ```ts number | null ``` * sensitive ```ts boolean ``` * thumbhash ```ts string | null ``` * url ```ts string ``` * width ```ts number | null ``` ### LogoTheme * id ```ts string ``` * logoImage ```ts ImageType | null ``` Examples ### Examples * #### Example code ##### Default ```tsx import {useShop} from '@shopify/shop-minis-react' export default function MyComponent() { const {shop, loading, error} = useShop({id: 'gid://shopify/Shop/1234567890'}) console.log({shop, loading, error}) } ```