PHPackages                             robert-grubb/insta-scraper - 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. robert-grubb/insta-scraper

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

robert-grubb/insta-scraper
==========================

Instagram PHP Scraper. Get account information, photos and videos without any authorization

v1.60(6y ago)86.1k2MITPHPPHP &gt;=5.4.0

Since Nov 9Pushed 6y ago4 watchersCompare

[ Source](https://github.com/RobertGrubb/insta-scraper)[ Packagist](https://packagist.org/packages/robert-grubb/insta-scraper)[ Docs](https://github.com/RobertGrubb/insta-scraper)[ RSS](/packages/robert-grubb-insta-scraper/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (27)Used By (0)

information
-----------

[](#information)

`Credits to postaddictme/instagram-php-scraper for base`

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

[](#installation)

`composer.phar require robert-grubb/insta-scraper`

or

`composer require robert-grubb/insta-scraper`

Instantiation
-------------

[](#instantiation)

```
use InstaScraper\Insta;

$Instagram = new Insta();

```

Documentation
-------------

[](#documentation)

For main package documentation:

Fork Information
----------------

[](#fork-information)

This fork includes the following:

- getMediaWithTag()

    - This method will find the first media with a specific tag.
- Fixes getMedias issue (Because instagram removed the /media page)

    - Now pulls from their timeline data via a graphql request, then grabs the data for each array item. (Increases load times, but not by much)
- Better exceptions

    - For better understand of what is actually happening when an error occurs, InstagramEncodedException is thrown. You can catch this exception and use `InstagramEncodedException->getDecodedMessage()` that will return the following:

```
[
    [error] => true,
    [error_code] => 404,
    [error_reason] => 'User does not exist'
]

```

Getting a media item with specific hashtag:
-------------------------------------------

[](#getting-a-media-item-with-specific-hashtag)

```
use InstaScraper\Insta;
$Instagram = new Insta();
$post = $Instagram->getMediaWithTag('test', '#awesome');
var_dump($post); // Returns InstaScraper\Model\Media Object

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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

Every ~25 days

Recently: every ~0 days

Total

26

Last Release

2470d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

instagraminstagram-apiinstagram-scraperinstagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robert-grubb-insta-scraper/health.svg)

```
[![Health](https://phpackages.com/badges/robert-grubb-insta-scraper/health.svg)](https://phpackages.com/packages/robert-grubb-insta-scraper)
```

###  Alternatives

[raiym/instagram-php-scraper

Instagram PHP Scraper. Get account information, photos and videos without any authorization

3.3k1.2M6](/packages/raiym-instagram-php-scraper)[vdb/php-spider

A configurable and extensible PHP web spider

1.4k181.0k7](/packages/vdb-php-spider)[nelexa/google-play-scraper

Scrapes app data from Google Play store.

88487.4k](/packages/nelexa-google-play-scraper)[raulr/google-play-scraper

A PHP scraper to get app data from Google Play

12892.7k](/packages/raulr-google-play-scraper)

PHPackages © 2026

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