From the API docs, to list all custom collections for a certain product_id:

GET /admin/custom_collections.json?product_id=632910392

Response:

HTTP/1.1 200 OK

{
  "custom_collections": [
    {
      "body_html": "<p>The best selling ipod ever</p>",
      "handle": "ipods",
      "id": 841564295,
      "published_at": "2008-02-01T19:00:00-05:00",
      "sort_order": "manual",
      "template_suffix": null,
      "title": "IPods",
      "updated_at": "2008-02-01T19:00:00-05:00",
      "image": {
        "created_at": "2012-12-11T12:01:29-05:00",
        "src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
      }
    }
  ]
}
Answer from Lydia Krupp-Hunter on Stack Overflow
๐ŸŒ
Shopify
help.shopify.com โ€บ en โ€บ api โ€บ reference โ€บ products โ€บ customcollection
Shopify Dev Docs
Whether you're just getting started, deep in the development process, or ready to distribute and monetize your work, Shopify's docs, dev tools and frameworks make building easy and efficient. Extend Shopify's core functionality with apps that integrate into Shopify's admin, online store, checkout and more. ... Help merchants express their unique brand in their storefront by building a custom theme.
๐ŸŒ
Shopify
shopify.github.io โ€บ liquid-code-examples โ€บ example โ€บ collection-list
Collection list | Shopify Liquid code examples
February 21, 2019 - --> {%- if collection.image -%} {%- assign collection_image = collection.image -%} {%- elsif collection.products.first and collection.products.first.images != empty -%} {%- assign collection_image = collection.products.first.featured_image -%} {%- else -%} {%- assign collection_image = blank -%} {%- endif -%} <a href="{{ collection.url }}"> <img src="{{ collection_image | img_url: '480x' }}" alt=""> {{ collection.title }} </a> </li> {%- endfor -%} </ul>
Discussions

Shopify get current collection - Stack Overflow
I am new to Shopify and learning it right now. I am on collection page, is there a way I can get current collection? For example, I have following collections category 1 Sub cat 1.1 Sub ca... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How can I add a second description to each collection bottom?
Hi! I would like to add a second description at the bottom of each collection. The description will be different for each collection. How can I do this? Iโ€™m using Impulse Impulse v.1.0 For example this is a collection page that I would like to add a second description below the products ... More on community.shopify.com
๐ŸŒ community.shopify.com
1
0
February 22, 2023
If product is in a specific collection, show specific code on page
So I am working on a product specifications table for our website and I would like for the code to show certain aspects of that table based off an if else or case statement. For example, we have various appliances and instead of having to make a product template for refrigerators, microwaves, ... More on community.shopify.com
๐ŸŒ community.shopify.com
0
April 14, 2022
Loop through a collection using a collection ID
Hi there, Trying to figure out how to loop through a collection using the collection ID. Is this possible? Right now Iโ€™m using the collection name, ie: collections['collection-name'].products but needing to transition away from that since the collection name can change over time. More on community.shopify.com
๐ŸŒ community.shopify.com
0
May 15, 2023
๐ŸŒ
Shopify
shopify.com โ€บ ca โ€บ partners โ€บ shopify-cheat-sheet
Shopify Cheat Sheet โ€” A resource for building Shopify Themes with Liquid - Shopify Canada
September 29, 2022 - Returns an array of filter objects that have been set up on the collection. Learn more ... Returns the handle of a collection.
๐ŸŒ
Sunbowl
sunbowlsystems.com โ€บ blogs โ€บ how-to โ€บ how-to-setup-a-collection-in-shopify
How to Set Up a Collection in Shopify - Sunbowl
March 22, 2019 - If this is the case we can do a little trick via the URL: to get there. Go to the URL where we can see that the collection handle for this staff picks collection is '/staff-picks.'
๐ŸŒ
Shopify Community
community.shopify.com โ€บ technical q&a
How can I add a second description to each collection ...
Hi! I would like to add a second description at the bottom of each collection. The description will be different for each collection. How can I do this? Iโ€™m using Impulse Impulse v.1.0 For example this is a collection page that I would like to add a second description below the products ...
Published ย  February 22, 2023
Find elsewhere
๐ŸŒ
Shopify
shopify.dev โ€บ docs โ€บ api โ€บ liquid โ€บ objects โ€บ collection
Liquid objects: collection
The handle of the collection. ... The ID of the collection. ... The image for the collection. This image is added on the collection's page in the Shopify admin.
๐ŸŒ
HulkApps
hulkapps.com โ€บ home โ€บ shopify hub โ€บ a complete guide on how to get collection handle in shopify
A Complete Guide on How to Get Collection Handle in Shopify
April 11, 2024 - This identifier is crucial when customizing collection pages, implementing dynamic content, or creating conditional logic based on the collection being viewed. Accessing a collection handle can be achieved by tapping into Shopify's Liquid objects.
๐ŸŒ
Shopify Community
community.shopify.com โ€บ technical q&a
If product is in a specific collection, show specific code on ...
April 14, 2022 - So I am working on a product specifications table for our website and I would like for the code to show certain aspects of that table based off an if else or case statement. For example, we have various appliances and iโ€ฆ
๐ŸŒ
Shopify Community
community.shopify.com โ€บ shopify discussion
Loop through a collection using a collection ID
May 15, 2023 - Hi there, Trying to figure out how to loop through a collection using the collection ID. Is this possible? Right now Iโ€™m using the collection name, ie: collections['collection-name'].products but needing to transition aโ€ฆ
๐ŸŒ
Shopify Community
community.shopify.com โ€บ store design
Displaying Collection Name Under Product Title INSTEAD ...
March 22, 2022 - Hi there, I know that there is a way to hide the vendor name on product pages in Shopify. But here is what I am wondering: Is there a way to show the name of a collection that a product is in, in place of where the vendโ€ฆ