PHPackages                             lunoxis/instagram - 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. [API Development](/categories/api)
4. /
5. lunoxis/instagram

ActiveLibrary[API Development](/categories/api)

lunoxis/instagram
=================

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

v1.0.1(3y ago)91152[2 issues](https://github.com/lunoxis/Instagram/issues)MITPHP

Since Jun 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lunoxis/Instagram)[ Packagist](https://packagist.org/packages/lunoxis/instagram)[ RSS](/packages/lunoxis-instagram/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Instagram Media Scraper
=======================

[](#instagram-media-scraper)

This is a simple library for extracting media from Instagram.

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

[](#dependencies)

- PHP &gt;= 8.0.6

Login Example
-------------

[](#login-example)

```
require __DIR__.'/vendor/autoload.php';
$ig = new Instagram\Login\Instagram('Username', 'Pass');
$cooki = $ig->login();
$session = new \Instagram\Login\Session();
print_r($session->SetSession($cooki->getCookieByName('rur')->getValue(),$cooki->getCookieByName('csrftoken')->getValue(),$cooki->getCookieByName('sessionid')->getValue(),$cooki->getCookieByName('ds_user_id')->getValue()));
```

Get Post Media By Link:

```
require __DIR__.'/vendor/autoload.php';
$media = new \Instagram\Media\Post('https://www.instagram.com/p/CfJec1mMLie/?igshid=YmMyMTA2M2Y=');
print_r( $media->GetPost());
```

Get Account Info By Username

```
require __DIR__.'/vendor/autoload.php';

$info = new \Instagram\Media\Info('click.ir');
Get All Info
print_r($info->GetInfo());
Get Info
echo $info->GetInfo()[0]['username'];
```

Get Story By Story Link

```
require __DIR__.'/vendor/autoload.php';

$story = new \Instagram\Media\Story('https://instagram.com/stories/pcgadjettv/2868234876450457114?igshid=MDJmNzVkMjY=');
echo $story->GetLink();
```

Get All Story By Username

```
require __DIR__.'/vendor/autoload.php';

$story = new \Instagram\Media\AllStory('click.ir');
print_r( $story->GetLink());
echo $story->MediaCount();
```

Get HighLight BY HighLight Link

```
require __DIR__.'/vendor/autoload.php';

$high = new \Instagram\Media\HighLight('https://www.instagram.com/s/aGlnaGxpZ2h0OjE3OTI5NjQ4NzIzOTAyNjMy?story_media_id=2768449635828641458_7247131961&igshid=YmMyMTA2M2Y=');
echo $high->GetLink();
```

Get All HighLight BY Username

```
require __DIR__.'/vendor/autoload.php';

$all = new \Instagram\Media\AllHighLight();
$all->GetAllHighLight('click.ir');
print_r($all->GetHighLight());

Download HighLight BY HighLight ID

$all->GetHighLightmedia('highlight:17917690438338215');
print_r($all->HighLightLink());
```

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

[](#installation)

### Using composer

[](#using-composer)

```
composer.phar require lunoxis/instagram
```

or

```
composer require lunoxis/instagram
```

### If you don't have composer

[](#if-you-dont-have-composer)

You can download it [here](https://getcomposer.org/download/).

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Every ~362 days

Total

2

Last Release

1098d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/105b8dbd09347c02bfd0647a24d75c9fc2f5d463b28403449d6ae871ba2ca7bd?d=identicon)[lunoxis](/maintainers/lunoxis)

---

Top Contributors

[![lunoxis](https://avatars.githubusercontent.com/u/43320129?v=4)](https://github.com/lunoxis "lunoxis (18 commits)")

---

Tags

instagraminstagram-apiinstagram-botinstagram-downloaderinstagram-post-downloaderinstagram-saverinstagram-scraperinstagram-storiesinstagram-web-apiinstagram-web-scraper

### Embed Badge

![Health badge](/badges/lunoxis-instagram/health.svg)

```
[![Health](https://phpackages.com/badges/lunoxis-instagram/health.svg)](https://phpackages.com/packages/lunoxis-instagram)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1772.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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