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

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

inbo/instagram-php-scraper
==========================

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

1.0.0(5y ago)418MITPHPPHP &gt;=5.4.0

Since Oct 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/inbobot/Ig_api_web)[ Packagist](https://packagist.org/packages/inbo/instagram-php-scraper)[ Docs](https://github.com/raiym/instagram-php-scraper)[ RSS](/packages/inbo-instagram-php-scraper/feed)WikiDiscussions master Synced 1mo ago

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

Instagram PHP Scraper
=====================

[](#instagram-php-scraper)

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

Dependencies
------------

[](#dependencies)

- [PSR-16](http://www.php-fig.org/psr/psr-16/)

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

[](#code-example)

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

Some methods do not require authentication:

```
$instagram = new \InstagramScraper\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:

```
use Phpfastcache\Helper\Psr16Adapter;

$instagram = \InstagramScraper\Instagram::withCredentials('username', 'password', new Psr16Adapter('Files'));
$instagram->login(); // will use cached session if you want to force login $instagram->login(true)
$instagram->saveSession();  //DO NOT forget this in order to save the session, otherwise have no sense
$account = $instagram->getAccountById(3);
echo $account->getUsername();
```

Using proxy for requests:

```
$instagram = new \InstagramScraper\Instagram();
Instagram::setProxy([
    'address' => '111.112.113.114',
    '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 raiym/instagram-php-scraper
```

or

```
composer require raiym/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/postaddictme/instagram-php-scraper/tree/master/examples).

Other
-----

[](#other)

Java library:

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

2025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/507b2c0010d5f388785fe5d7294c837ca56eec84f3e7b2a670608272fec45b77?d=identicon)[AtaTurk1925](/maintainers/AtaTurk1925)

---

Top Contributors

[![Nader-abdi](https://avatars.githubusercontent.com/u/11696156?v=4)](https://github.com/Nader-abdi "Nader-abdi (2 commits)")

---

Tags

instagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

Scrapes app data from Google Play store.

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

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)

PHPackages © 2026

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