How to programmatically get the most selling products for a particular category?

How to load products Bestseller of particular category ?

Use the \Magento\Sales\Model\ResourceModel\Report\Bestsellers\Collection class as an example.
You should add a category filter to it.

A post was split to a new topic: How to programmatically get the most viewed products for a particular category?

A post was merged into an existing topic: How to programmatically get the most viewed products for a particular category?