YoutubeInfo: Get information about a video in YouTube

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-07-02 (10 months ago) RSS 2.0 feedNot enough user ratingsTotal: 177 This week: 1All time: 8,603 This week: 219Up
Version License PHP version Categories
youtubeinfo 1.0.1The PHP License5PHP 5, Web services, Video
Description Author

This package can get information about a video in YouTube.

It takes the URL of a given video page in YouTube and gets the contents from the embedding meta data URL for that video so it can return several details about that video.

Currently it return an object with variables that include the following details:

- The video title
- The video author name and page URL on YouTube
- Width and height of the video and the thumbnail image as well the thumbnail URL
- HTML to embed the video in another site pages

Picture of adriano123456
  Performance   Level  
Name: adriano123456 <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 33
All time rank: 4129341 in Brazil Brazil
Week rank: 209 Up7 in Brazil Brazil Up





$obj = new YoutubeInfo("");



alt text alt text

stdClass Object
    [author_name     ] => Peter Gundry | Composer
    [thumbnail_width ] => 480
    [width           ] => 480
    [type            ] => video
    [provider_url    ] =>
    [height          ] => 270
    [author_url      ] =>
    [thumbnail_url   ] =>
    [provider_name   ] => YouTube
    [version         ] => 1.0
    [thumbnail_height] => 360
    [title           ] => Nordic/Viking Music - FoĢ?lkvangr
    [html            ] => <iframe width="480" height="270" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
  • print.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file Doc. Documentation
Plain text file yt.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:8,603
This week:219Up

For more information send a message to info at phpclasses dot org.