--- title: blogs - GraphQL Admin description: >- Returns a paginated list of the shop's [`Blog`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Blog) objects. Blogs serve as containers for [`Article`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Article) objects and provide content management capabilities for the store's editorial content. Supports [cursor-based pagination](https://shopify.dev/docs/api/usage/pagination-graphql) to control the number of blogs returned and their order. Use the [`query`](https://shopify.dev/docs/api/admin-graphql/latest/queries/blogs#arguments-query) argument to filter results by specific criteria. api_version: 2026-01 api_name: admin type: query api_type: graphql source_url: html: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/blogs' md: 'https://shopify.dev/docs/api/admin-graphql/latest/queries/blogs.md' --- # blogs query Returns a paginated list of the shop's [`Blog`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Blog) objects. Blogs serve as containers for [`Article`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Article) objects and provide content management capabilities for the store's editorial content. Supports [cursor-based pagination](https://shopify.dev/docs/api/usage/pagination-graphql) to control the number of blogs returned and their order. Use the [`query`](https://shopify.dev/docs/api/admin-graphql/latest/queries/blogs#arguments-query) argument to filter results by specific criteria. ## BlogConnection arguments [BlogConnection!](https://shopify.dev/docs/api/admin-graphql/latest/connections/BlogConnection) * after * before * first * last * query * reverse * sortKey *** ## Possible returns * edges * nodes * pageInfo *** ## Examples * ### Retrieve a list of all blogs #### Query ```graphql query BlogList { blogs(first: 50) { nodes { id handle title updatedAt commentPolicy feed { path location } createdAt templateSuffix tags } } } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2026-01/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "query BlogList { blogs(first: 50) { nodes { id handle title updatedAt commentPolicy feed { path location } createdAt templateSuffix tags } } }" }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql query BlogList { blogs(first: 50) { nodes { id handle title updatedAt commentPolicy feed { path location } createdAt templateSuffix tags } } }`, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY query BlogList { blogs(first: 50) { nodes { id handle title updatedAt commentPolicy feed { path location } createdAt templateSuffix tags } } } QUERY response = client.query(query: query) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: `query BlogList { blogs(first: 50) { nodes { id handle title updatedAt commentPolicy feed { path location } createdAt templateSuffix tags } } }`, }); ``` #### Response ```json { "blogs": { "nodes": [ { "id": "gid://shopify/Blog/389767568", "handle": "bluecheese-blog", "title": "The Blog", "updatedAt": "2024-02-02T00:00:00Z", "commentPolicy": "CLOSED", "feed": null, "createdAt": "2023-02-01T00:00:00Z", "templateSuffix": null, "tags": [] }, { "id": "gid://shopify/Blog/397675442", "handle": "smallcheese-blog", "title": "Yo Blog", "updatedAt": "2011-11-02T00:00:00Z", "commentPolicy": "CLOSED", "feed": null, "createdAt": "2024-10-29T22:38:08Z", "templateSuffix": null, "tags": [ "not_alpha" ] }, { "id": "gid://shopify/Blog/854997985", "handle": "bigcheese-blog", "title": "Mah Blog", "updatedAt": "2006-02-02T00:00:00Z", "commentPolicy": "CLOSED", "feed": null, "createdAt": "2006-02-01T00:00:00Z", "templateSuffix": null, "tags": [ "alpha", "important" ] } ] } } ```