PHPackages                             mirazmac/youscrape - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mirazmac/youscrape

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

mirazmac/youscrape
==================

Unofficial Public YouTube Scrapper

v0.1(8y ago)6511MITPHPPHP &gt;=5.4.0

Since Jan 12Pushed 8y ago3 watchersCompare

[ Source](https://github.com/MirazMac/YouScrape)[ Packagist](https://packagist.org/packages/mirazmac/youscrape)[ RSS](/packages/mirazmac-youscrape/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

YouScrape
=========

[](#youscrape)

YouTube Public Data Scrapper

**YouScrape** is an unofficial replacement of YouTube Data API v3 for retrieving YouTube public data. Currently it can scrape channels, videos, playlists and single video information.

### Install via Composer

[](#install-via-composer)

```
composer require mirazmac/youscrape
```

### Limitations

[](#limitations)

- You can't limit or change the amount of results per page
- It depends on YouTube's internal ajax endpoints, as a result it can only show the information the endpoint provides.
- Its illegal and YouTube may block your IP if you send too many requests

Usage
-----

[](#usage)

Check **examples** folder for complete usage examples.

### Searching Videos

[](#searching-videos)

```
use MirazMac\YouScrape\YouScrape;

$youtube = new YouScrape;

try {
    $videos = $youtube->videos('Honest Trailer');
} catch (\Exception $e) {
    echo $e->getMessage();
    exit;
}

print_r($videos->getAll());
```

### Fetching Information of a Single Video

[](#fetching-information-of-a-single-video)

```
use MirazMac\YouScrape\YouScrape;

$youtube = new YouScrape;

try {
    $single = $youtube->single('V7h01x1oiQs');
} catch (\Exception $e) {
    echo $e->getMessage();
    exit;
}

var_dump($single);
```

### Searching Channels

[](#searching-channels)

```
use MirazMac\YouScrape\YouScrape;

$youtube = new YouScrape;

try {
    $channels = $youtube->channels('Entertainment');
} catch (\Exception $e) {
    echo $e->getMessage();
    exit;
}

print_r($channels->getAll());
```

### Searching Playlists

[](#searching-playlists)

```
use MirazMac\YouScrape\YouScrape;

$youtube = new YouScrape;

try {
    $playlists = $youtube->playlists('Entertainment');
} catch (\Exception $e) {
    echo $e->getMessage();
    exit;
}

print_r($playlists->getAll());
```

Todos
-----

[](#todos)

- Implement tests
- Run a benchmark to see if it gets blocked on too heavy requests
- Better and complete documentation

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

3040d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7e0cdba7ce3998a3f575d9010e3f10fd9943a8c6212dd7b63e89fb6c58f81e9?d=identicon)[mirazmac](/maintainers/mirazmac)

---

Top Contributors

[![MirazMac](https://avatars.githubusercontent.com/u/13865787?v=4)](https://github.com/MirazMac "MirazMac (10 commits)")

---

Tags

grabberscraperunofficialyoutubeyoutube-apiyoutube-api-v3youtube-channelyoutube-playlistyoutube-searchyoutube-video

### Embed Badge

![Health badge](/badges/mirazmac-youscrape/health.svg)

```
[![Health](https://phpackages.com/badges/mirazmac-youscrape/health.svg)](https://phpackages.com/packages/mirazmac-youscrape)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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