---
title: blogByHandle - Storefront API
description: >
  Retrieves a [`Blog`](/docs/api/storefront/2026-01/objects/Blog) by its handle.
  A blog organizes [`Article`](/docs/api/storefront/2026-01/objects/Article)
  objects for the online store and includes author information,
  [`SEO`](/docs/api/storefront/2026-01/objects/SEO) settings, and custom
  [`Metafield`](/docs/api/storefront/2026-01/objects/Metafield) objects.
api_version: 2026-01
api_name: storefront
type: query
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/storefront/latest/queries/blogByHandle'
  md: 'https://shopify.dev/docs/api/storefront/latest/queries/blogByHandle.md'
---

# blog​By​Handle

query

Deprecated. Use [blog](https://shopify.dev/docs/api/admin-graphql/latest/queries/blog) instead.

Retrieves a [`Blog`](https://shopify.dev/docs/api/storefront/2026-01/objects/Blog) by its handle. A blog organizes [`Article`](https://shopify.dev/docs/api/storefront/2026-01/objects/Article) objects for the online store and includes author information, [`SEO`](https://shopify.dev/docs/api/storefront/2026-01/objects/SEO) settings, and custom [`Metafield`](https://shopify.dev/docs/api/storefront/2026-01/objects/Metafield) objects.

## Arguments

* handle

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  required

  The handle of the blog.

***

## Possible returns

* Blog

  [Blog](https://shopify.dev/docs/api/storefront/latest/objects/Blog)

  A blog container for [`Article`](https://shopify.dev/docs/api/storefront/2026-01/objects/Article) objects. Stores can have multiple blogs, for example to organize content by topic or purpose.

  Each blog provides access to its articles, contributing [`ArticleAuthor`](https://shopify.dev/docs/api/storefront/2026-01/objects/ArticleAuthor) objects, and [`SEO`](https://shopify.dev/docs/api/storefront/2026-01/objects/SEO) information. You can retrieve articles individually [by handle](https://shopify.dev/docs/api/storefront/2026-01/objects/Blog#field-Blog.fields.articleByHandle) or as a [paginated list](https://shopify.dev/docs/api/storefront/2026-01/objects/Blog#field-Blog.fields.articles).

  * article​By​Handle

    [Article](https://shopify.dev/docs/api/storefront/latest/objects/Article)

    Find an article by its handle.

    * handle

      [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      required

      ### Arguments

      The handle of the article.

    ***

  * articles

    [Article​Connection!](https://shopify.dev/docs/api/storefront/latest/connections/ArticleConnection)

    non-null

    List of the blog's articles.

    * first

      [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

      ### Arguments

      Returns up to the first `n` elements from the list.

    * after

      [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      Returns the elements that come after the specified cursor.

    * last

      [Int](https://shopify.dev/docs/api/storefront/latest/scalars/Int)

      Returns up to the last `n` elements from the list.

    * before

      [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      Returns the elements that come before the specified cursor.

    * reverse

      [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean)

      Default:false

      Reverse the order of the underlying list.

    * sort​Key

      [Article​Sort​Keys](https://shopify.dev/docs/api/storefront/latest/enums/ArticleSortKeys)

      Default:ID

      Sort the underlying list by the given key.

    * query

      [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      Apply one or multiple filters to the query. Refer to the detailed [search syntax](https://shopify.dev/api/usage/search-syntax) for more information about using filters.

      * author
      * blog\_title
      * created\_at
      * tag
      * tag\_not
      * updated\_at

    ***

  * authors

    [\[Article​Author!\]!](https://shopify.dev/docs/api/storefront/latest/objects/ArticleAuthor)

    non-null

    The authors who have contributed to the blog.

  * handle

    [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    non-null

    A human-friendly unique string for the Blog automatically generated from its title.

  * id

    [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

    non-null

    A globally-unique ID.

  * metafield

    [Metafield](https://shopify.dev/docs/api/storefront/latest/objects/Metafield)

    Token access required

    A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and `key`, that's associated with a Shopify resource for the purposes of adding and storing additional information.

    * namespace

      [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      ### Arguments

      The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

    * key

      [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

      required

      The identifier for the metafield.

    ***

  * metafields

    [\[Metafield\]!](https://shopify.dev/docs/api/storefront/latest/objects/Metafield)

    non-null Token access required

    A list of [custom fields](https://shopify.dev/docs/apps/build/custom-data) that a merchant associates with a Shopify resource.

    * identifiers

      [\[Has​Metafields​Identifier!\]!](https://shopify.dev/docs/api/storefront/latest/input-objects/HasMetafieldsIdentifier)

      required

      ### Arguments

      The list of metafields to retrieve by namespace and key.

      The input must not contain more than `250` values.

    ***

  * online​Store​Url

    [URL](https://shopify.dev/docs/api/storefront/latest/scalars/URL)

    The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel.

  * seo

    [SEO](https://shopify.dev/docs/api/storefront/latest/objects/SEO)

    The blog's SEO information.

  * title

    [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

    non-null

    The blogs’s title.

***

## Examples

* ### blogByHandle reference
