YepAPI
YouTube API

Video Info

Get full video metadata without streaming URLs.

POST/v1/youtube/video-info
$0.01/call

Usage

const res = await fetch('https://api.yepapi.com/v1/youtube/video-info', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ id: 'dQw4w9WgXcQ' }),
});
const { data } = await res.json();
console.log(data.title, data.channelTitle);
curl -X POST https://api.yepapi.com/v1/youtube/video-info \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "dQw4w9WgXcQ"}'

Request Body

ParameterTypeRequiredDescriptionDefault
idstringYesYouTube video ID
geostringNoCountry code for geo-specific results
langstringNoLanguage code

Response

{
  "ok": true,
  "data": {
    "id": "dQw4w9WgXcQ",
    "title": "Rick Astley - Never Gonna Give You Up",
    "channelTitle": "Rick Astley",
    "viewCount": "1758165530",
    "publishDate": "2009-10-25"
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.idstringYouTube video identifier
data.titlestringFull video title
data.channelTitlestringName of the channel that uploaded the video
data.channelIdstringUnique identifier for the channel
data.descriptionstringFull video description text
data.viewCountstringTotal view count as a numeric string
data.publishDatestringPublish date in YYYY-MM-DD format
data.thumbnailobject[]Thumbnail images at various resolutions
data.keywordsstring[]Tags and keywords associated with the video
data.lengthSecondsstringVideo duration in seconds

On this page