How to get Upsell Products collection in Magento 2?

Upsell products collection in Magento 2 by Product id to display upsell products in Detail Page of the store view.

If you have set right Upsell products based on the main product of the page, That boost your revenue also by customer add the upsell products with the Original products.

Upsell Product list will be displayed on the product detail page by native Magento with simple text, “We found other products you might like!”.

Get all the Upsell products assigned from the admin panel inside the product page, Using the simple code snippet by load product repository way.