How to get Youtube video details using video id Json : ASTechnolabs

Here in this tutorial, we will cover below questions How to get Youtube video details using video id Json? or we can say, How to get Youtube channel name through Youtube Video ID? also one question is in your mind is How to use YouTube API to fetch all videos on a channel

  • [STEP 1] Here is Youtube API link : 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
    // Enter youtube video ID
    Done, now click on "Execute" button
  • You will get response like this,
{
 "kind": "youtube#videoListResponse",
 "etag": "\"SJZWTG6xR0eGuCOh2bX6w3s4F94/le2Nul4yyDmv8yKtwGuIlZmOXfs\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 1
 },
 "items": [
  {
   "kind": "youtube#video",
   "etag": "\"SJZWTG6xR0eGuCOh2bX6w3s4F94/tmEsyK5DCPukovQjauy8Ss3KfZI\"",
   "id": "TTc6Rk0pblU",
   "snippet": {
    "publishedAt": "2017-05-25T08:32:00.000Z",
    "channelId": "UCg7Oz3YtMhOuUusT7l42mmA",
    "title": "GHOST ATTACK",
    "description": "",
    "thumbnails": {
     "default": {
      "url": "https://i.ytimg.com/vi/TTc6Rk0pblU/default.jpg",
      "width": 120,
      "height": 90
     },
     "medium": {
      "url": "https://i.ytimg.com/vi/TTc6Rk0pblU/mqdefault.jpg",
      "width": 320,
      "height": 180
     },
     "high": {
      "url": "https://i.ytimg.com/vi/TTc6Rk0pblU/hqdefault.jpg",
      "width": 480,
      "height": 360
     }
    },
    "channelTitle": "Yashpalsinh Limbad",
    "categoryId": "24",
    "liveBroadcastContent": "none",
    "localized": {
     "title": "GHOST ATTACK",
     "description": ""
    }
   }
  }
 ]
}

Some Quick FAQs about this result

How to get Published date of Youtube video using Youtube ID

You can find publish date under Youtube API on below path :

items --> snippet --> publishedAt

How to get Channel Id of Youtube video using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> channelId

How to get Video Title of Youtube video using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> title

How to get Video Description of Youtube video using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> description

How to get Video thumbnails of Youtube video using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> thumbnails

There are 3 types of thumbnails : default (120×90 px) , medium (320×180 px) and High (480×360 px)

for Default Youtube thumbnail

items --> snippet --> thumbnails --> default --> url

for Medium Youtube thumbnail

items --> snippet --> thumbnails --> medium --> url

for High Youtube thumbnail

items --> snippet --> thumbnails --> high --> url

How to get Channel Title of Youtube video using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> channelTitle

How to get check if youtube video is Live or not using Youtube ID

You can find it under Youtube API on below path :

items --> snippet --> liveBroadcastContent


That’s all. Here I am mentioning some search queries which also searched by users related this article.

Get Youtube information via JSON for single video
How do I get metadata from a YouTube video?
How do I get a YouTube video API?
Getting video information from YouTube
Getting Youtube Video Information
Get YouTube Video Info using YouTube API via PHP
Get YouTube Video Info using YouTube API

Add a Comment

Your email address will not be published. Required fields are marked *