PHPackages                             shoxrux/instagram-private-api - 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. shoxrux/instagram-private-api

ActiveLibrary[API Development](/categories/api)

shoxrux/instagram-private-api
=============================

Instagram's private API for PHP

0.0.6(5y ago)121[1 issues](https://github.com/shoxruxrashidov/instagram-private-api/issues)RPL-1.5PHPPHP &gt;5.6CI failing

Since Aug 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shoxruxrashidov/instagram-private-api)[ Packagist](https://packagist.org/packages/shoxrux/instagram-private-api)[ RSS](/packages/shoxrux-instagram-private-api/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (16)Versions (7)Used By (0)

---

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

[](#installation)

### Dependencies

[](#dependencies)

Install/enable the required php extensions and dependencies. You can learn how to do so [here](https://github.com/shoxruxrashidov/instagram-private-api/wiki/Dependencies).

### Install this library

[](#install-this-library)

We use composer to distribute our code effectively and easily. If you do not already have composer installed, you can download and install it here [here](https://getcomposer.org/download/).

Once you have composer installed, you can do the following:

```
composer require shoxrux/instagram-private-php
```

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

$ig = new \InstagramAPI\Instagram();
```

If you want to test new and possibly unstable code that is in the master branch, and which hasn't yet been released, then you can do the following (at your own risk):

```
composer require shoxrux/instagram-private-php dev-master
```

#### *Warning about moving data to a different server*

[](#warning-about-moving-data-to-a-different-server)

*Composer checks your system's capabilities and selects libraries based on your **current** machine (where you are running the `composer` command). So if you run Composer on machine `A` to install this library, it will check machine `A`'s capabilities and will install libraries appropriate for that machine (such as installing the PHP 7+ versions of various libraries). If you then move your whole installation to machine `B` instead, it **will not work** unless machine `B` has the **exact** same capabilities (same or higher PHP version and PHP extensions)! Therefore, you should **always** run the Composer-command on your intended target machine instead of your local machine.*

Examples
--------

[](#examples)

All examples can be found [here](https://github.com/shoxruxrashidov/instagram-private-api/tree/master/examples).

###  Health Score

16

↓

LowBetter than 5% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

6

Last Release

2097d ago

### Community

Maintainers

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

---

Tags

phpapiinstagramprivate

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/shoxrux-instagram-private-api/health.svg)

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[liamcottle/instagram-sdk-php

This is an unofficial SDK for the Instagram Private API in PHP

1308.4k](/packages/liamcottle-instagram-sdk-php)

PHPackages © 2026

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