how to get video duration of youtube video from youtube ap i code example
Example: How to get Youtube video details using video id Json
[STEP 1] Go to Youtube API : which is shows direct result just doing one time Authentication with google.
In “Try this API” section make sure this fields are there,
part : snippet
id : TTc6Rk0pblU
Done, now click on "Execute" button
items --> snippet --> publishedAt
items --> snippet --> channelId
items --> snippet --> title
items --> snippet --> description
items --> snippet --> thumbnails