category_list Function

Provides an array of categories from a site’s catalog. For available filters, sort, and pagination options, see CategoryList resource.

{% for category in category_list({
	"filters": {
		"search": "Sweaters"
	}
}) %}
	{{ category.name }}
	{% for item in category.items %}
		{{ item.name }}
	{% endfor %}
{% endfor %}