Info between waypoints

How to get Distance and duration between waypoints in route API.
For example I have 5 points and I get a optimized routes Is is possible to get distance/duration between point 2 and point 3?

If you are look for the leg distance and time for the Routing API have a look into this blog post: Leg-based information - GraphHopper Directions API

@karussell thank you