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

ActiveLibrary

jworksuk/instagram-api
======================

v1.0.4(6mo ago)123MITPHPPHP ^8.4

Since Apr 6Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/jworksuk/instagram-api)[ Packagist](https://packagist.org/packages/jworksuk/instagram-api)[ Docs](https://github.com/jworksuk/instagram-api)[ RSS](/packages/jworksuk-instagram-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

instagram-api
=============

[](#instagram-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/24601ae8479493ea3ac7f8bdb768d8b425a73dfb359e4e56c37d1fc9a9a61264/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a776f726b73756b2f696e7374616772616d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jworksuk/instagram-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f733a7caacada0cdfb343e8ac7f01416fc5195774d5f48a222900d628b98dd2c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a776f726b73756b2f696e7374616772616d2d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jworksuk/instagram-api)[![Coverage Status](https://camo.githubusercontent.com/6ad3d28b011a5965b6ea91c55434047fcf6e720979ddfa1785e444f84b03f963/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a776f726b73756b2f696e7374616772616d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jworksuk/instagram-api/code-structure)[![Quality Score](https://camo.githubusercontent.com/e8a3eeb8bf079f52ef94b1c6dabef5f236c4ba8bfaa8c6a56726dbe6f3c37cfc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a776f726b73756b2f696e7374616772616d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jworksuk/instagram-api)[![Total Downloads](https://camo.githubusercontent.com/136b3a251569069a14512a6e12b6e47b0e49764077ec311f084ede3bf355d22b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a776f726b73756b2f696e7374616772616d2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jworksuk/instagram-api)

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
bin/
build/
docs/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require jworksuk/instagram-api
```

Usage
-----

[](#usage)

See `/examples` directory

```
$sessionId = new GuzzleHttp\Cookie\SetCookie([
    "Name"     => 'sessionid',
    "Value"    => 'ak91F09c_6sADwlo', // example
    "Domain"   => ".instagram.com",
    "Path"     => "/",
    "Expires"  => '2026-01-01 00:00:00', // example
    "Max-Age"  => "31536000",
    "Secure"   => true,
    "Discard"  => false,
    "HttpOnly" => false,
]);
$cookieJar = new GuzzleHttp\Cookie\CookieJar(false, [$sessionId]);

$instagramApiClient = new JWorksUK\InstagramApi\Client(
    new GuzzleHttp\Client(),
    $cookieJar
);

$stories = $instagramApiClient->getStoriesByProfileIds([25025320]);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jesse James](https://github.com/jworksuk)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance69

Regular maintenance activity

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~56 days

Total

5

Last Release

181d ago

PHP version history (2 changes)v1.0.0PHP ^8.3

v1.0.4PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/246fcbcc3a426583936e4ad7a17dbeb90e98b473a21367012e70a4bf170e38f0?d=identicon)[jworksuk](/maintainers/jworksuk)

---

Top Contributors

[![jworksuk](https://avatars.githubusercontent.com/u/1276187?v=4)](https://github.com/jworksuk "jworksuk (10 commits)")

---

Tags

instagram apijworksuk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[illuminate/support

The Illuminate Support package.

582107.1M34.5k](/packages/illuminate-support)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[icawebdesign/hibp-php

PHP library for accessing the Have I Been Pwned API.

2545.6k2](/packages/icawebdesign-hibp-php)[ymirapp/cli

Ymir command-line tool

2619.6k](/packages/ymirapp-cli)

PHPackages © 2026

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