PHPackages                             mi6crazyheart/youtube-extract - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mi6crazyheart/youtube-extract

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mi6crazyheart/youtube-extract
=============================

Library for extracting youtube meta data

19PHP

Since Sep 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mi6crazyheart/youtube-extract)[ Packagist](https://packagist.org/packages/mi6crazyheart/youtube-extract)[ RSS](/packages/mi6crazyheart-youtube-extract/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

youtube-extract
===============

[](#youtube-extract)

This is a simple wrapper class which will help you to find out youtube video meta info from youtube video URL. Internally it uses youtube's YouTube Data API. It requires Google API key to connect with youtube server &amp; extract data. For more info Ref-

### Meta info supported

[](#meta-info-supported)

- video thumbnails
- video titles
- video description
- video statistics

### Installation

[](#installation)

Through [Composer](https://getcomposer.org/).

```
composer require mi6crazyheart/youtube-extract dev-master

```

After installing, you need to require Composer's autoloader.

```
require __DIR__ . '/vendor/autoload.php';

```

### Getting Started

[](#getting-started)

This wrapper has 5 methods.

- fetchErrorInfo() : To get all error details.
- fetchThumbnails() : Extract all video thumbnails information.
- fetchTitle() : Fetch video title.
- fetchDescription() : Fetch video description.
- fetchStatistics() : Fetch video statistics like- view count, like count, dis like count, favorite count, comment count.

### Example

[](#example)

```
