list_collections
Retrieve a paginated list of collections sorted by last update. Filter by title, type, or update time to locate a collection's GID for subsequent API calls.
Instructions
List collections in the store, most recently updated first. Returns each collection's title, handle, ID, and product count. Supports Shopify's collection query syntax for filtering by title, type, or update time. Cursor-paginated; pass after from the previous response to advance. Use this to find a collection's GID before calling get_collection, update_collection, or add_products_to_collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Page size (1-100). Lower this if responses get truncated. | |
| query | No | Shopify collection query syntax. Examples: 'title:summer*' (prefix match), 'collection_type:smart' (filter to smart collections), 'updated_at:>2026-01-01'. | |
| after | No | Cursor from a prior page's pageInfo. Pass to fetch the next page; omit on the first call. |