I want to apply filters for layered navigation using REST API. If I send color=5 then in category page it is displaying 2 products so how to get that data in API response?

  • You are magento frontend or Rest Api?
    – Amit Bera
    Feb 17, 2020 at 12:37
  • @AmitBera Thanks for your reply I need in Rest API. Feb 17, 2020 at 17:21

1 Answer 1


you can get the product lists Using SearchCriteria in REST API.


where "category-id" is Store category Id. Example : 4 "color-id" is color id of products: Ex: 5

or you have to customize that functionality using own custom API.

Implement the Magento Default Rest API according to our own requirements

  • Thanks for your reply but hot apply filters as I explained above with an attribute, for example, color = red. when I click a red color in the frontend I got 2 configurable products but in REST API how to get that functionality. Feb 18, 2020 at 6:50
  • answer updated. please check it
    – Vishnunath
    Feb 18, 2020 at 10:11
  • Yes, There is no default Magento functionality on this and I need to work on custom API functionality. Do u have any idea on this of applying filters using REST API?? Feb 18, 2020 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.