PHPackages                             mineur/instagram-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mineur/instagram-parser

ActivePhp-library[Parsing &amp; Serialization](/categories/parsing)

mineur/instagram-parser
=======================

PHP parser to consume the instagram feed.

12787522[4 issues](https://github.com/mineur/instagram-parser/issues)PHP

Since Mar 23Pushed 8y ago6 watchersCompare

[ Source](https://github.com/mineur/instagram-parser)[ Packagist](https://packagist.org/packages/mineur/instagram-parser)[ RSS](/packages/mineur-instagram-parser/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Instagram Parser
================

[](#instagram-parser)

[![License](https://camo.githubusercontent.com/3f8a927841e6a8dea13194227f2152223158ef98bb539d39be6f8540a32991ef/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6575722f696e7374616772616d2d7061727365722f6c6963656e7365)](https://packagist.org/packages/mineur/instagram-parser)[![Build Status](https://camo.githubusercontent.com/dda51af0083086656a9c06e5f33eff09c8a21cf5e20c1f6b936caebc3845b9ca/68747470733a2f2f7472617669732d63692e6f72672f6d696e6575722f747769747465722d73747265616d2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mineur/twitter-stream-api)[![Code Climate](https://camo.githubusercontent.com/81b3af7d2de222e8fd463a699f684ad7238f8e1c1f8a5eecd958c8d686735a21/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d696e6575722f696e7374616772616d2d7061727365722f6261646765732f6770612e737667)](https://codeclimate.com/github/mineur/instagram-parser)[![Latest Unstable Version](https://camo.githubusercontent.com/064b86857e93cca871d7211c04b48b833dc4f8134baf2599c2457f03d6106675/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6575722f696e7374616772616d2d7061727365722f762f756e737461626c65)](https://packagist.org/packages/mineur/instagram-parser)[![Total Downloads](https://camo.githubusercontent.com/95378060e40056cbfc3aae06c6aab0d081a19902cd3cd2dee741e957d4467de9/68747470733a2f2f706f7365722e707567782e6f72672f6d696e6575722f696e7374616772616d2d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/mineur/instagram-parser)

The Instagram parser gives you an easy interface to parse all the Instagram's data. Like an API, but without being it! You can get posts by a tag, all user posts

Setup
-----

[](#setup)

```
composer require mineur/instagram-parser:dev-master
```

Before run your parsers, you first need a **query hash**. Follow this 5 steps to get yours: [How to get a query hash](/docs/setup.md#how-to-get-your-query-hash-old-query-id).

Start parsing!
--------------

[](#start-parsing)

Let's parse all data tagged with the string "github" for instance. You will get a scaled infinite loop of posts related to it until they are finished.

```
use Mineur\InstagramParser\Instagram;
use Mineur\InstagramParser\Model\InstagramPost;

$queryHash = '298b92c8d7cad703f7565aa892ede943';

Instagram::createTagParser($queryHash)
    ->parse('github', function(InstagramPost $post) {
        dump($post);
    });
```

### The console dump will be like this:

[](#the-console-dump-will-be-like-this)

[![](docs/img/example.gif)](docs/img/example.gif)

Motivation
----------

[](#motivation)

Since Instagram has restricted its API only to registered and verified applications, you can't get all of its public data being an experimental user or a data science analyst who just wants to play with that, you only have access to the API sandbox mode.

So I decided to create an alternative parser on top of GuzzleHttp library to access to the entire data with a nice interface.

Documentation
-------------

[](#documentation)

For more information about this library [see the docs](/docs/index.md).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c39d2aac6ac296199cfc57ef4712cf718af2d5906d05ec4b86acbba182edd45?d=identicon)[alexhoma](/maintainers/alexhoma)

---

Top Contributors

[![alexhoma](https://avatars.githubusercontent.com/u/7917771?v=4)](https://github.com/alexhoma "alexhoma (68 commits)")

---

Tags

guzzlehttpinstagraminstagram-apiinstagram-botinstagram-clientinstagram-parserinstagram-scraper

### Embed Badge

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

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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