--- title: search - Storefront API description: List of the search results. api_version: 2025-10 api_name: storefront type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/storefront/latest/queries/search md: https://shopify.dev/docs/api/storefront/latest/queries/search.md --- # search query List of the search results. ## SearchResultItemConnection arguments [SearchResultItemConnection!](https://shopify.dev/docs/api/storefront/latest/connections/SearchResultItemConnection) * after [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) Returns the elements that come after the specified cursor. * before [String](https://shopify.dev/docs/api/storefront/latest/scalars/String) Returns the elements that come before the specified cursor. * first [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int) Returns up to the first `n` elements from the list. * last [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int) Returns up to the last `n` elements from the list. * prefix [Search​Prefix​Query​Type](https://shopify.dev/docs/api/storefront/latest/enums/SearchPrefixQueryType) Specifies whether to perform a partial word match on the last search term. * product​Filters [\[Product​Filter!\]](https://shopify.dev/docs/api/storefront/latest/input-objects/ProductFilter) Returns a subset of products matching all product filters. The input must not contain more than `250` values. * query [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String) required The search query. * reverse [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean) Default:false Reverse the order of the underlying list. * sort​Key [Search​Sort​Keys](https://shopify.dev/docs/api/storefront/latest/enums/SearchSortKeys) Default:RELEVANCE Sort the underlying list by the given key. * types [\[Search​Type!\]](https://shopify.dev/docs/api/storefront/latest/enums/SearchType) The types of resources to search for. The input must not contain more than `250` values. * unavailable​Products [Search​Unavailable​Products​Type](https://shopify.dev/docs/api/storefront/latest/enums/SearchUnavailableProductsType) Specifies how unavailable products or variants are displayed in the search results. *** ## Possible returns * edges [\[Search​Result​Item​Edge!\]!](https://shopify.dev/docs/api/storefront/latest/objects/SearchResultItemEdge) non-null A list of edges. * nodes [\[Search​Result​Item!\]!](https://shopify.dev/docs/api/storefront/latest/unions/SearchResultItem) non-null A list of the nodes contained in SearchResultItemEdge. * page​Info [Page​Info!](https://shopify.dev/docs/api/storefront/latest/objects/PageInfo) non-null Information to aid in pagination. * product​Filters [\[Filter!\]!](https://shopify.dev/docs/api/storefront/latest/objects/Filter) non-null A list of available filters. * total​Count [Int!](https://shopify.dev/docs/api/storefront/latest/scalars/Int) non-null The total number of results. *** ## Examples * ### search reference ## Query Reference ```graphql { search(query) { # search fields } } ```