curl --location --request GET 'https://demo.myshopify.com//admin/api//collections/.json'
null
for a hidden collection.web
: The collection is published to the Online Store channel but not published toglobal
: The collection is published to both the Online Store channel and the Pointcustom
, then the collection is using the collection.custom.liquid
template. If the value is null
, then the collection is using the default collection.liquid
.{
"collection": {
"id": 841564295,
"handle": "ipods",
"title": "IPods",
"updated_at": "2008-02-01T19:00:00-05:00",
"body_html": "<p>The best selling ipod ever</p>",
"published_at": "2008-02-01T19:00:00-05:00",
"sort_order": "manual",
"template_suffix": null,
"products_count": 1,
"collection_type": "custom",
"published_scope": "web",
"admin_graphql_api_id": "gid://shopify/Collection/841564295",
"image": {
"created_at": "2023-01-03T12:21:36-05:00",
"alt": "MP3 Player 8gb",
"width": 123,
"height": 456,
"src": "https://cdn.shopify.com/s/files/1/0005/4838/0009/collections/ipod_nano_8gb.jpg?v=1672766496"
}
}
}