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

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

shilza/instagram-php-scraper
============================

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

v0.8.22(8y ago)441MITPHPPHP &gt;=5.4.0

Since Apr 22Pushed 8y agoCompare

[ Source](https://github.com/Shilza/instagram-php-scraper)[ Packagist](https://packagist.org/packages/shilza/instagram-php-scraper)[ Docs](https://github.com/raiym/instagram-php-scraper)[ RSS](/packages/shilza-instagram-php-scraper/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (71)Used By (0)

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

[](#instagram-php-scrapper)

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 does not require auth:

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

If you use auth it is recommended to cash user session, in this case you don't need run `$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' => '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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 70.9% 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 ~11 days

Total

71

Last Release

2954d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23022236?v=4)[Shilza](/maintainers/Shilza)[@Shilza](https://github.com/Shilza)

---

Top Contributors

[![raiym](https://avatars.githubusercontent.com/u/5698585?v=4)](https://github.com/raiym "raiym (231 commits)")[![Shilza](https://avatars.githubusercontent.com/u/23022236?v=4)](https://github.com/Shilza "Shilza (12 commits)")[![adam-szabo](https://avatars.githubusercontent.com/u/6370455?v=4)](https://github.com/adam-szabo "adam-szabo (8 commits)")[![aik27](https://avatars.githubusercontent.com/u/6603084?v=4)](https://github.com/aik27 "aik27 (7 commits)")[![Geolim4](https://avatars.githubusercontent.com/u/1332071?v=4)](https://github.com/Geolim4 "Geolim4 (7 commits)")[![Mulkave](https://avatars.githubusercontent.com/u/2647333?v=4)](https://github.com/Mulkave "Mulkave (5 commits)")[![alexpablo](https://avatars.githubusercontent.com/u/1921893?v=4)](https://github.com/alexpablo "alexpablo (5 commits)")[![drthief](https://avatars.githubusercontent.com/u/243979?v=4)](https://github.com/drthief "drthief (5 commits)")[![vitaly-alexandrovich](https://avatars.githubusercontent.com/u/11419996?v=4)](https://github.com/vitaly-alexandrovich "vitaly-alexandrovich (5 commits)")[![wrinkleydog](https://avatars.githubusercontent.com/u/9877090?v=4)](https://github.com/wrinkleydog "wrinkleydog (4 commits)")[![elliott-beach](https://avatars.githubusercontent.com/u/13651458?v=4)](https://github.com/elliott-beach "elliott-beach (4 commits)")[![eversionsystems](https://avatars.githubusercontent.com/u/20215473?v=4)](https://github.com/eversionsystems "eversionsystems (3 commits)")[![rhcarlosweb](https://avatars.githubusercontent.com/u/4534115?v=4)](https://github.com/rhcarlosweb "rhcarlosweb (3 commits)")[![gthedev](https://avatars.githubusercontent.com/u/19326428?v=4)](https://github.com/gthedev "gthedev (2 commits)")[![karatemaccie](https://avatars.githubusercontent.com/u/1433953?v=4)](https://github.com/karatemaccie "karatemaccie (2 commits)")[![s3ri0usman](https://avatars.githubusercontent.com/u/6446575?v=4)](https://github.com/s3ri0usman "s3ri0usman (2 commits)")[![shibby](https://avatars.githubusercontent.com/u/291643?v=4)](https://github.com/shibby "shibby (2 commits)")[![chistaesse](https://avatars.githubusercontent.com/u/22150961?v=4)](https://github.com/chistaesse "chistaesse (2 commits)")[![StereoFlo](https://avatars.githubusercontent.com/u/3583643?v=4)](https://github.com/StereoFlo "StereoFlo (2 commits)")[![Toleckk](https://avatars.githubusercontent.com/u/31159587?v=4)](https://github.com/Toleckk "Toleckk (2 commits)")

---

Tags

instagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

Oembed consumer library. Converts urls into their html embed code. Supports 150+ sites, such as Youtube, Twitter, vimeo, Instagram etc.

3535.8M25](/packages/mpratt-embera)

PHPackages © 2026

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