PHPackages                             nassajis/instagram-php-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. nassajis/instagram-php-scraper

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

nassajis/instagram-php-scraper
==============================

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

v1.0.2(7y ago)3951[2 issues](https://github.com/nassajis/instagram-php-scraper/issues)MITPHPPHP &gt;=5.4.0

Since Oct 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nassajis/instagram-php-scraper)[ Packagist](https://packagist.org/packages/nassajis/instagram-php-scraper)[ Docs](https://github.com/nassajis/instagram-php-scraper)[ RSS](/packages/nassajis-instagram-php-scraper/feed)WikiDiscussions master Synced yesterday

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

Instagram PHP Scrapper
======================

[](#instagram-php-scrapper)

This is the fork of [`postaddictme/instagram-php-scraper`](https://github.com/postaddictme/instagram-php-scraper) repo. Description from original:

> This library based on Instagram web version. We develop it because nowadays it is hard to get approved Instagram application. The purpose support every feature that web desktop and mobile version support.

Code Example
------------

[](#code-example)

```
$instagram = Instagram::withCredentials('username', 'password');
$instagram->login();
$account = $instagram->getAccountById(3);
echo $account->getUsername();
```

Some methods do not require authentication:

```
$instagram = new Instagram();
$nonPrivateAccountMedias = $instagram->getMedias('kevin');
echo $nonPrivateAccountMedias[0]->getLink();
```

If you use authentication it is recommended to cache the user session. In this case you don't need to run the `$instagram->login()` method every time your program runs:

```
$instagram = Instagram::withCredentials('username', 'password', '/path/to/cache/folder/');
$instagram->login(); // will use cached session if you can force login $instagram->login(true)
$account = $instagram->getAccountById(3);
echo $account->getUsername();
```

Using proxy for requests:

```
$instagram = new Instagram();
Instagram::setProxy([
    'address' => '0.0.0.0',
    'port'    => '8080',
    'tunnel'  => true,
    'timeout' => 30,
]);
// Request with proxy
$account = $instagram->getAccount('kevin');
Instagram::disableProxy();
// Request without proxy
$account = $instagram->getAccount('kevin');
```

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

[](#installation)

### Using composer

[](#using-composer)

```
composer.phar require nassajis/instagram-php-scraper
```

or

```
composer require nassajis/instagram-php-scraper
```

### If you don't have composer

[](#if-you-dont-have-composer)

You can download it [here](https://getcomposer.org/download/).

Examples
--------

[](#examples)

See examples [here](https://github.com/nassajis/instagram-php-scraper/tree/master/examples).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Every ~4 days

Total

3

Last Release

2762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6299e98c12f72722214146a9d241475b17ae39698c8985562ac46e70fb69a896?d=identicon)[nassajis](/maintainers/nassajis)

---

Top Contributors

[![nassajis](https://avatars.githubusercontent.com/u/10128882?v=4)](https://github.com/nassajis "nassajis (1 commits)")

---

Tags

instagramscrapergrabbergrabinsta

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nassajis-instagram-php-scraper/health.svg)

```
[![Health](https://phpackages.com/badges/nassajis-instagram-php-scraper/health.svg)](https://phpackages.com/packages/nassajis-instagram-php-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)
