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

Any suggestions on how to do it?


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?

| improve this answer | |

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

Thank you everyone for replying!

| improve this answer | |

Create an API with Mage2Gen :-

Here Is Link For Directly Create Api

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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