Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YT API - Pulling different "video lengths" for YouTube videos

$
0
0

Lately our clients noticed a discrepancy in the video length metric, as it seems like we're getting 2 different lengths in YT and in the API call.

For example, We got the duration from YouTube's API. (For the following video)CTM 1556 Google UAC CO 6s

API response shows 7 seconds.

https://www.youtube.com/watch?v=eJoQaNXpcpI

On YouTube we see that the length is 6 seconds:

API docs

https://developers.google.com/youtube/v3/docs/videos#contentDetails.duration

API call list (https://developers.google.com/youtube/v3/docs/videos/list) with contentDetails as "part" parameter.

Please help us understand why we are getting 2 different parameters, and what needs to be changed.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>