How to get shipping amount value from the order id Magento 2?

The shipping amount is the value of the total charge taken to deliver your item to your shipping address location in Magento 2.

Magento 2 total shipping amount value for the order is the total charge taken by the shipping service provider and the value of shipping amount will be saved into the sales_order table with shipping_amount and base_shipping_amount field.

You can get the shipping value from the order id using the simple code snippet,

Pass your Order id value as dynamic in the getShipingChargeOrder() method in the code. You will get Shipping Value as a response for the specific Order id.

You need to just fetch the Order object by order entity id and get the value of the shipping amount from the fetched order object.

Output:
float 10.99