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

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

artmedia-llc/instagram-php-scraper
==================================

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

v0.0.2(3y ago)017MITPHPPHP &gt;=7.2

Since Aug 13Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Artmedia-LLC/instagram-php-scraper)[ Packagist](https://packagist.org/packages/artmedia-llc/instagram-php-scraper)[ Docs](https://github.com/Artmedia-LLC/instagram-php-scraper)[ RSS](/packages/artmedia-llc-instagram-php-scraper/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (3)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)

- PHP &gt;= 7.2
- [PSR-16](http://www.php-fig.org/psr/psr-16/)
- [PSR-18](http://www.php-fig.org/psr/psr-18/)

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

[](#code-example)

```
use Phpfastcache\Helper\Psr16Adapter;

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

Some methods do not require authentication:

```
$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client());
$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(new \GuzzleHttp\Client(), '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:

```
// https://docs.guzzlephp.org/en/stable/request-options.html#proxy
$instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client(['proxy' => 'tcp://localhost:8125']));
// Request with proxy
$account = $instagram->getAccount('kevin');
\InstagramScraper\Instagram::setHttpClient(new \GuzzleHttp\Client());
// Request without proxy
$account = $instagram->getAccount('kevin');
```

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

[](#installation)

### Using composer

[](#using-composer)

```
composer.phar require artmedia-llc/instagram-php-scraper phpfastcache/phpfastcache
```

or

```
composer require artmedia-llc/instagram-php-scraper phpfastcache/phpfastcache
```

### 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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

1421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/777b664b5520d29854ee63d677c268c9ffc3a827a265452bf0c87bb7dcb1eec9?d=identicon)[gogashonia](/maintainers/gogashonia)

---

Top Contributors

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

---

Tags

instagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/artmedia-llc-instagram-php-scraper/health.svg)](https://phpackages.com/packages/artmedia-llc-instagram-php-scraper)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[raiym/instagram-php-scraper

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

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

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[crwlr/crawler

Web crawling and scraping library.

36917.4k2](/packages/crwlr-crawler)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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