How to search/filter products from a specific collection with Shopify API or GraphQL

Highlighted
New Member
3 0 1

Hi,

 

I am still using the products API endpoint without versioning to be able to filter products from a specific collection by partially matching the title:

/admin/products.json?limit=20&collection_id=<collection_Id>&title=<sometitle>

This is working well for now, but might not work forever as in newer API versions the partial search by title is already disabled.

 

I tried filtering products by tags, using the same API and with and without versioning, but the tags were not considered and just all products were being returned.

 

As far as I see filtering products in a collection using GraphQL is still not possible. Or was there an update lately?

 

So can anybody help and tell me, how I can filter/search for products in a specific collection?

Your help is highly appreciated!!!

1 Like
Highlighted
Shopify Partner
2 0 1

Same issue here.

How can you search substrings of product titles/description within a specific collection?

I can't find any API (REST of GraphQL) that supports it.

1 Like