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

ActiveLibrary

comenix/instagram-php-scraper
=============================

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

v0.8.18(8y ago)011MITPHPPHP &gt;=5.4.0

Since Apr 22Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (65)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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75.1% 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

65

Last Release

2971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5cb8d6adad23ce1144ea9df5aaf2a2a5ac9f0773b25604b4b716b386aa1fccb?d=identicon)[comenix](/maintainers/comenix)

---

Top Contributors

[![raiym](https://avatars.githubusercontent.com/u/5698585?v=4)](https://github.com/raiym "raiym (220 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)")[![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)")[![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)")[![linkris](https://avatars.githubusercontent.com/u/536043?v=4)](https://github.com/linkris "linkris (3 commits)")[![StereoFlo](https://avatars.githubusercontent.com/u/3583643?v=4)](https://github.com/StereoFlo "StereoFlo (2 commits)")[![shibby](https://avatars.githubusercontent.com/u/291643?v=4)](https://github.com/shibby "shibby (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)")[![s3ri0usman](https://avatars.githubusercontent.com/u/6446575?v=4)](https://github.com/s3ri0usman "s3ri0usman (2 commits)")[![tomassrnka](https://avatars.githubusercontent.com/u/1406694?v=4)](https://github.com/tomassrnka "tomassrnka (2 commits)")[![ZipDriver](https://avatars.githubusercontent.com/u/16034750?v=4)](https://github.com/ZipDriver "ZipDriver (1 commits)")[![denpli](https://avatars.githubusercontent.com/u/26594872?v=4)](https://github.com/denpli "denpli (1 commits)")[![diacomltd](https://avatars.githubusercontent.com/u/6900793?v=4)](https://github.com/diacomltd "diacomltd (1 commits)")

---

Tags

instagramscraper

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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