PHPackages                             yebto/youtube-api - 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. [API Development](/categories/api)
4. /
5. yebto/youtube-api

ActiveLibrary[API Development](/categories/api)

yebto/youtube-api
=================

Laravel SDK for the Youtube API (yeb.to)

v1.0.0(9mo ago)12MITPHPPHP ^8.1

Since Jul 21Pushed 9mo agoCompare

[ Source](https://github.com/yebto/youtube-api)[ Packagist](https://packagist.org/packages/yebto/youtube-api)[ Docs](https://yeb.to)[ RSS](/packages/yebto-youtube-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

---

Youtube API Laravel SDK
=======================

[](#youtube-api-laravel-sdk)

Official Laravel SDK for the **[Youtube API](https://yeb.to)** by [NETOX Ltd.](https://yeb.to/about) – designed to make YouTube data retrieval and content generation seamless from within Laravel applications.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Available Methods](#available-methods)
- [Parameters Reference](#parameters-reference)
- [Configuration](#configuration)
- [Features](#features)
- [Free Tier Access](#free-tier-access)
- [Troubleshooting](#troubleshooting)
- [Support](#support)
- [License](#license)

---

Installation
------------

[](#installation)

Install the package using Composer:

```
composer require yebto/youtube-api
```

Publish the configuration file:

```
php artisan vendor:publish --tag=youtubeapi-config
```

Add your API key to your `.env` file:

```
YEB_KEY_ID=your_api_key_here
```

---

Usage
-----

[](#usage)

Import the facade and start making API calls:

```
use YoutubeAPI;
```

### Examples

[](#examples)

**1. Channel Statistics**

```
$stats = YoutubeAPI::channel('statistics', [
    'channel' => 'UC_x5XG1OV2P6uZZ5FSM9Ttw'
]);
```

**2. Generate Video Title**

```
$title = YoutubeAPI::generate('title-generator', [
    'topic'          => 'Laravel queue best practices',
    'keywords'       => ['laravel queue', 'horizon', 'redis'],
    'language'       => 'EN',
    'mood'           => 'energetic',
    'tone'           => 'educational',
    'emojis_mode'    => 'random_inject',
    'hashtags_mode'  => 'end',
    'channel'        => 'UC_x5XG1OV2P6uZZ5FSM9Ttw'
]);
```

**3. Video Engagement Rate**

```
$eng = YoutubeAPI::video('engagement-rate', [
    'video' => 'dQw4w9WgXcQ'
]);
```

**4. Full-Text Video Search**

```
$search = YoutubeAPI::search('videos', [
    'q'                => 'ai music generation',
    'limit'            => 30,
    'sort'             => 'date',
    'duration'         => 'medium',
    'published_after'  => '2024-01-01'
]);
```

**5. Trending Gaming Videos in Germany**

```
$trending = YoutubeAPI::trending([
    'country'  => 'DE',
    'category' => 20,
    'limit'    => 50
]);
```

---

Available Methods
-----------------

[](#available-methods)

- `YoutubeAPI::channel($action, $params = [])` – [API Docs](https://yeb.to/api/youtube-channel)
- `YoutubeAPI::video($action, $params = [])` – [API Docs](https://yeb.to/api/youtube-video)
- `YoutubeAPI::generate($action, $params = [])` – [API Docs](https://yeb.to/api/youtube-generate)
- `YoutubeAPI::search($action, $params = [])` – [API Docs](https://yeb.to/api/youtube-search)
- `YoutubeAPI::trending($params = [])` – [API Docs](https://yeb.to/api/youtube-trending)

---

Parameters Reference
--------------------

[](#parameters-reference)

HelperRequiredOptional`channel``channel`, `action``order`, `limit`, `after`, `before``video``video`, `action``limit`, `order`, `repliesOn`, `country`, `categoryId``generate``topic/channel/video`, `action``keywords`, `language`, `mood`, `tone`, `emojis_mode`, `hashtags_mode`, `person``search``q`, `action``limit`, `sort`, `duration`, `published_after`, `published_before``trending`–`country`, `category`, `limit`> 💡 All methods accept any additional parameters supported by the API.

---

Configuration
-------------

[](#configuration)

The SDK uses a single environment variable:

```
YEB_KEY_ID=your_api_key_here
```

You may customize other configuration settings via the `config/youtubeapi.php` file after publishing.

---

Features
--------

[](#features)

- Simple, expressive API
- Fully integrated with Laravel
- Supports powerful YouTube features like:

    - Channel &amp; video analytics
    - Full-text search with filters
    - Title and metadata generation
    - Engagement rate calculations
    - Trending content discovery

---

Free Tier Access
----------------

[](#free-tier-access)

🎁 You can get **1,000+ free API requests** by registering on [yeb.to](https://yeb.to) using your **Google account**.

Steps:

1. Visit
2. Click **Login with Google**
3. Retrieve your API key and add it to your `.env` as `YEB_KEY_ID`

No credit card required!

---

Troubleshooting
---------------

[](#troubleshooting)

If you encounter issues:

- Ensure your API key is correct and active
- Double-check that the config file is published
- Validate parameters against the [API reference](https://docs.yeb.to/)
- Check for typos in method names or required fields

---

Support
-------

[](#support)

- 📘 API Documentation:
- 📧 Email:
- 🐛 Issues: [GitHub Issues](https://github.com/yebto/youtube-api/issues)

---

License
-------

[](#license)

© NETOX Ltd. Licensed under a proprietary or custom license unless stated otherwise in the repository.

> 💬 Have an idea, feature request, or want to suggest a new YouTube-related API? Reach out to us at  — we’d love to hear from you!

---

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

291d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57d7e2ce619fb0a25c0b8ebf53ab60f9aba259cbb926f697dc0cb6b5349dea85?d=identicon)[yebto](/maintainers/yebto)

---

Top Contributors

[![yebto](https://avatars.githubusercontent.com/u/217711937?v=4)](https://github.com/yebto "yebto (2 commits)")

---

Tags

laravelphpyoutubeyoutube-apiyoutube-api-v3apilaravelsdkyoutubeyeb

### Embed Badge

![Health badge](/badges/yebto-youtube-api/health.svg)

```
[![Health](https://phpackages.com/badges/yebto-youtube-api/health.svg)](https://phpackages.com/packages/yebto-youtube-api)
```

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[orzcc/taobao-top-client

Taobao top client(SDK) for laravel

11125.9k](/packages/orzcc-taobao-top-client)[missael-anda/laravel-whatsapp

A Whatsapp Business Cloud API wrapper for Laravel.

677.5k](/packages/missael-anda-laravel-whatsapp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
