I am using GET V1/products endpoint to fetch product list. I want to fetch sku and name only.



"items": [
        "sku": "5245",
        "name": "Test Product"
        "sku": "product 1",
        "name": "product 1"
        "sku": "product 2",
        "name": "product 2"

I am not getting total number of records in this response. I checked it on devdocs as well. It also has same type of response, please find link below.

Magento filtered response

Please help if anyone already faced this and solved it.


2 Answers 2


Ok I found the solution, I checked some core files of catalog module and I can see that search criteria and total records are not in items index so I just need to update my request like below.


I hope it'll help others, Happy Coding :)

  • Welcome @AdityaShah Commented Oct 22, 2018 at 8:45
  • Suthan, thanks for your answer, can you please help, how can we can available filters with the result? Commented Apr 16, 2021 at 10:42

You need to select total count too to fetch it. Add total_count at the end of your request like this:

  • Thanks Kamal, I already found the solution and your solution is same what I did :) Commented Oct 22, 2018 at 6:36
  • Welcome @AdityaShah Commented Oct 30, 2018 at 17:32

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.