PHPackages                             adinan-cenci/scraping-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adinan-cenci/scraping-instagram

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

adinan-cenci/scraping-instagram
===============================

Get instagram pictures, no api token needed.

1.0.4(5y ago)0211MITPHPPHP &gt;=5.3

Since Oct 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adinan-cenci/scraping-instagram)[ Packagist](https://packagist.org/packages/adinan-cenci/scraping-instagram)[ RSS](/packages/adinan-cenci-scraping-instagram/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Notice: Repository archieved
============================

[](#notice-repository-archieved)

Instagram is going to such extent to protect their platform as to make scraping it a great endeavour and defeating the purpose of this library, meant to be of simple use.
I am sorry, but out there are projects better suited for it.

Instagram scraping
==================

[](#instagram-scraping)

This is a PHP library to scrap pictures of profile pages on Instagram. No api token needed.

Why ?
-----

[](#why-)

Some people like to have their Instagram pictures displayed on their website, creating an app and generating a token is too much work for public available information, hence this library.

What ?
------

[](#what-)

This library will not fetch one's entire gallery, only the few most recent pictures displayed on one's profile page. If you want to display more than 12 pictures at a time you may want to consider caching preview requests.

How ?
-----

[](#how-)

Just pass the user's handle to the constructor and call the ::fetch() method.

```
use AdinanCenci\ScrapingInstagram\Instagram;

$scraper  = new Instagram('noobmaster');

try {
    $pictures = $scraper->fetch();
} catch (\Exception $e) {
    echo
    'Error: '.$e->getMessage();
    die();
}
```

It will return an array describing the pictures like so:

```
[
    {
        "caption": "Lorem ipsum dolor sit amet, consectetur ....",
        "src": "https://instagram.ffln3....",
        "thumbnails": {
            "150x150": "https://instagram.ffln....",
            "240x240": "https://instagram.ffln....",
            "320x320": "https://instagram.ffln....",
            "480x480": "https://instagram.ffln....",
            "640x640": "https://instagram.ffln...."
        }
    },
    {
        "caption": "Sed ut perspiciatis unde omnis iste ....",
        "src": "https://instagram.ffln3....",
        "thumbnails": {
            "150x150": "https://instagram.ffln....",
            "240x240": "https://instagram.ffln....",
            "320x320": "https://instagram.ffln....",
            "480x480": "https://instagram.ffln....",
            "640x640": "https://instagram.ffln...."
        }
    },
    {
        "caption": "At vero eos et accusamus et iusto odio ....",
        "src": "https://instagram.ffln3....",
        "thumbnails": {
            "150x150": "https://instagram.ffln....",
            "240x240": "https://instagram.ffln....",
            "320x320": "https://instagram.ffln....",
            "480x480": "https://instagram.ffln....",
            "640x640": "https://instagram.ffln...."
        }
    }
]
```

#### ::unique()

[](#unique)

A little method to remove duplicated pictures, helpful if you will be merging requests.

```
$newPictures = $scrapper->fetch();
$pictures    = array_merge($newPictures, $oldPictures);
$pictures    = Instagram::unique($pictures);
```

Installing
----------

[](#installing)

Use composer

```
composer require adinan-cenci/scraping-instagram
```

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Total

5

Last Release

1961d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c1eb1b039e965bb307f010fb1dd41fbc79c8c9e9a65324b8f18d2bb9168097d?d=identicon)[AdinanCenci](/maintainers/AdinanCenci)

---

Top Contributors

[![adinan-cenci](https://avatars.githubusercontent.com/u/1629643?v=4)](https://github.com/adinan-cenci "adinan-cenci (11 commits)")

---

Tags

libraryscraping

### Embed Badge

![Health badge](/badges/adinan-cenci-scraping-instagram/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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