Can I get the products json under a collection with a sort order with ajax?

From the doc - sorting products in a collection, I know that I can use liquid and js to append the URL parameter and refresh the page.

What about the non-refresh approach? Can I send an ajax request to get the products json in a particular sort order?

I'm asking because I want to get the products json in ajax. After that, I will reload the data with Vue instead of refreshing the whole page?

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
0 Likes

Anyone?

I can only find the output products in the ordinary webpage from https://[mystore].myshopify.com/collections/[collection-name]?sort_by=price-descending

But the format is not in json and there is no option like view=json 

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
0 Likes