youtube api get video info code example
Example 1: api to get youtube info
GET
https://www.googleapis.com/youtube/v3/videos?part=id%2C+snippet&id=4Y4YSpF6d6w&key={YOUR_API_KEY}
Example 2: 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