---
title: "get_collection_pagination"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/filter/get-collection-pagination'
  md: 'https://developer.shopline.com/docs/sline/filter/get-collection-pagination.md'
---

# get_collection_pagination


    Gets a paginated list of collections to which a product belongs.

    To be used in conjunction with the [product](https://developer.shopline.com/docs/sline/object/product.md) object.



    
`product | get_collection_pagination(pageSize, page=page)` returns a [`paginate`](https://developer.shopline.com/docs/sline/object/paginate.md) object.
    



    
        ## Required Params

        
            - `product` [`product`](https://developer.shopline.com/docs/sline/object/product.md): The product object.
        
            - `pageSize` `integer`: The number of resources per page, with a valid range from 1 to 100.
        
    



    
        ## Optional Params

        
             `page` `integer`: The specified page number. If not provided, the `page_num` parameter in the request URL is used. If neither value is specified, page 1 is used.
        
    



    
## Example

        
            

            The following example is used to get the list of collections that a product belongs to.

            

            
<SlineExample path={'/products/-a001-striped-off-shoulder---crop-top-collection-2023'} objects={ 
    [""] 
}>
```sline
{{#var paginate = product | get_collection_pagination(10, page=1) /}}
{{#for item in paginate.list}}
  {{forloop.index}}: {{ item.title }}
{{/for}}
```
</SlineExample>
            
        
    
