Is it possible to get
product available quantity and
ordered product quantity to get product API
http://localhost/test/rest/V1/products with all other details?
extension_attributes are also not showing.
Please check with below URL.
its related to your requirement which providing to available quantity for all products via REST API.
I hope its very helpful to you.