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

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

mewlabs/instagram-php-scraper
=============================

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

v0.8.21(8y ago)1464MITPHPPHP &gt;=5.4.0

Since Apr 22Pushed 5y ago2 watchersCompare

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

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

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

[](#instagram-php-scrapper)

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.

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' => '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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.3% 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 ~10 days

Total

70

Last Release

2937d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13c4eb1b67ef90055de42c995ba6ac7f2b858ac86d7da4e64c0ee3a175a87085?d=identicon)[mewlabs](/maintainers/mewlabs)

---

Top Contributors

[![raiym](https://avatars.githubusercontent.com/u/5698585?v=4)](https://github.com/raiym "raiym (248 commits)")[![mewlabs](https://avatars.githubusercontent.com/u/1019853?v=4)](https://github.com/mewlabs "mewlabs (37 commits)")[![adam-szabo](https://avatars.githubusercontent.com/u/6370455?v=4)](https://github.com/adam-szabo "adam-szabo (8 commits)")[![Geolim4](https://avatars.githubusercontent.com/u/1332071?v=4)](https://github.com/Geolim4 "Geolim4 (7 commits)")[![aik27](https://avatars.githubusercontent.com/u/6603084?v=4)](https://github.com/aik27 "aik27 (7 commits)")[![Mulkave](https://avatars.githubusercontent.com/u/2647333?v=4)](https://github.com/Mulkave "Mulkave (5 commits)")[![vitaly-alexandrovich](https://avatars.githubusercontent.com/u/11419996?v=4)](https://github.com/vitaly-alexandrovich "vitaly-alexandrovich (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)")[![elliott-beach](https://avatars.githubusercontent.com/u/13651458?v=4)](https://github.com/elliott-beach "elliott-beach (4 commits)")[![wrinkleydog](https://avatars.githubusercontent.com/u/9877090?v=4)](https://github.com/wrinkleydog "wrinkleydog (4 commits)")[![Sorgor](https://avatars.githubusercontent.com/u/2776791?v=4)](https://github.com/Sorgor "Sorgor (3 commits)")[![eversionsystems](https://avatars.githubusercontent.com/u/20215473?v=4)](https://github.com/eversionsystems "eversionsystems (3 commits)")[![sakalauskas](https://avatars.githubusercontent.com/u/1455148?v=4)](https://github.com/sakalauskas "sakalauskas (3 commits)")[![rhcarlosweb](https://avatars.githubusercontent.com/u/4534115?v=4)](https://github.com/rhcarlosweb "rhcarlosweb (3 commits)")[![noy87ru](https://avatars.githubusercontent.com/u/3643620?v=4)](https://github.com/noy87ru "noy87ru (2 commits)")[![chistaesse](https://avatars.githubusercontent.com/u/22150961?v=4)](https://github.com/chistaesse "chistaesse (2 commits)")[![gthedev](https://avatars.githubusercontent.com/u/19326428?v=4)](https://github.com/gthedev "gthedev (2 commits)")[![jasonadkison](https://avatars.githubusercontent.com/u/744333?v=4)](https://github.com/jasonadkison "jasonadkison (2 commits)")[![karatemaccie](https://avatars.githubusercontent.com/u/1433953?v=4)](https://github.com/karatemaccie "karatemaccie (2 commits)")

---

Tags

instagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[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)
