To determine the length of videos from a URL provided by an API, I am looking for a solution using JavaScript.
For instance, if the URL is
I aim to extract and display the duration alongside the video title without altering any HTML elements. The goal is to retrieve the durations immediately after storing the URL variable received from the API.