I need to create an API for fetching all the recently viewed products.

Any suggestions on how to do it?


2 Answers 2


Here is description how to get recently viewed products by customer id:

How to get recently viewed products by Customer Id in Model file Magento 2?


Ended up using: WebbyTroops- Add-On Product APIs Module Provides everything I needed.

Thank you everyone for replying!

  • I ordered, I got a email. But the download link was not available. There is no download link in the account section also. Fake?
    – Harish ST
    Sep 18, 2021 at 15:05

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.