Content > Content Blocks > storefrontContentBlocks
Storefront APIContentContent BlocksstorefrontContentBlocks
storefrontContentBlocks
GET:storefront/content_blocks.json

Description

Get specific content blocks.

This is a typical bulk get endpoint.

Topic: Content Blocks

Arguments

ids: [String!]!

List of content block ids. See also: Unique Identifiers

Example: ["bl_EQzGqWoY"]


loose: Boolean

When asking for multiple items, allow returning less than was asked (in case some are missing)


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Result

[StorefrontContentBlock!]

Preview (typescript)

function storefrontContentBlocks(
ids: string[]
loose?: boolean
shop_id: string
): StorefrontContentBlock[]