PHPackages                             socialapis/youtube-suggestions - 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. socialapis/youtube-suggestions

ActiveLibrary[API Development](/categories/api)

socialapis/youtube-suggestions
==============================

A small webproxy for google and youtube autocomplete results.

v1.0.0(6y ago)19RPL-1.5PHPPHP &gt;=7.0CI failing

Since Apr 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/socialAPIS/YoutubeSuggestions)[ Packagist](https://packagist.org/packages/socialapis/youtube-suggestions)[ RSS](/packages/socialapis-youtube-suggestions/feed)WikiDiscussions master Synced 1mo ago

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

[![compatible](https://camo.githubusercontent.com/f52f20e005d9ab59bd1c916268d94d01fbbf37e90a2a43f3327e6bd2e60e2c49/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d436f6d70617469626c652d627269676874677265656e2e737667)](https://camo.githubusercontent.com/f52f20e005d9ab59bd1c916268d94d01fbbf37e90a2a43f3327e6bd2e60e2c49/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d436f6d70617469626c652d627269676874677265656e2e737667)

This repo is acting like the original youtube android aplication. It uses Google protobuf to decode the response.

**Do you like this project? Support it by donating**

**socialAPIS**

- [![btc](https://raw.githubusercontent.com/reek/anti-adblock-killer/gh-pages/images/bitcoin.png)](https://raw.githubusercontent.com/reek/anti-adblock-killer/gh-pages/images/bitcoin.png) Bitcoin: bc1qkauwj52rr6pelckjfq4htgjl7jvamkq5lklqca

Installation
============

[](#installation)

You Need!

- Use PHP &gt;= 7
- Install composer.

Once you have composer installed, you can do the following:

```
composer require socialapis/youtube-suggestions

```

Usage
=====

[](#usage)

You can then do the following:

```
require_once '../vendor/autoload.php';

$youtube = new YoutubeSuggestions\Suggestions();

$response = $youtube->getSuggestions("Search query");

echo "Suggestion count: ", $response->getSearchModel()->count(), "\n";
echo "Requested query: ", $response->getRequestedQuery(), "\n";
echo "Request id: ", $response->getId()->getId(), "\n";

foreach ($response->getSearchModel() as $search_model) {
    $sugg = strip_tags($search_model->getSuggestion());
    echo $sugg, "\n";
}

```

See the following example, click [here](./Examples/fetchSuggestions.php).

License
=======

[](#license)

The Unlicense

For more information, please refer to

Legal
=====

[](#legal)

This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Google or Youtube or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2213d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50284610?v=4)[socialAPIS](/maintainers/socialAPIS)[@socialAPIS](https://github.com/socialAPIS)

---

Top Contributors

[![socialAPIS](https://avatars.githubusercontent.com/u/50284610?v=4)](https://github.com/socialAPIS "socialAPIS (5 commits)")

---

Tags

apiphpphpapiyoutubeprivate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/socialapis-youtube-suggestions/health.svg)

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[socialapis/youtubedownloader

A small project for fetching youtube vidoes with their private api.

241.4k](/packages/socialapis-youtubedownloader)

PHPackages © 2026

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