PHPackages                             smochin/instagram-php-crawler - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. smochin/instagram-php-crawler

ActiveLibrary[HTTP &amp; Networking](/categories/http)

smochin/instagram-php-crawler
=============================

A simple PHP Crawler for Instagram

1.0.1(8y ago)4410.2k↓58%16[2 issues](https://github.com/smochin/instagram-php-crawler/issues)GPL-3.0PHPPHP &gt;=7.0

Since Nov 15Pushed 8y ago8 watchersCompare

[ Source](https://github.com/smochin/instagram-php-crawler)[ Packagist](https://packagist.org/packages/smochin/instagram-php-crawler)[ Docs](https://github.com/smochin/instagram-php-crawler)[ RSS](/packages/smochin-instagram-php-crawler/feed)WikiDiscussions master Synced 3w ago

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

PHP Instagram Crawler
=====================

[](#php-instagram-crawler)

[![Join the chat at https://gitter.im/smochin/instagram-php-crawler](https://camo.githubusercontent.com/bdb39e73f8afbb4449aa172a5bc9a220ffbd4a3a90986b0a0b91eeb89d48cfe2/68747470733a2f2f6261646765732e6769747465722e696d2f736d6f6368696e2f696e7374616772616d2d7068702d637261776c65722e737667)](https://gitter.im/smochin/instagram-php-crawler?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Total Downloads](https://camo.githubusercontent.com/851a8b1bff3fca6b74fcb9244c1cb3642f4640272560bf11f92a7338417f8157/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6f6368696e2f696e7374616772616d2d7068702d637261776c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smochin/instagram-php-crawler)[![Latest Stable Version](https://camo.githubusercontent.com/0b7927815ed4c1604433d340f732aa62f476952b536b007d1c2abc954eabe13e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6f6368696e2f696e7374616772616d2d7068702d637261776c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smochin/instagram-php-crawler)[![Branch master](https://camo.githubusercontent.com/d13ff590538bd288fc9f75cbfe383af4eaaaa0c356f9e90aed2263bb322bd87f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/d13ff590538bd288fc9f75cbfe383af4eaaaa0c356f9e90aed2263bb322bd87f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6272616e63682d6d61737465722d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Build Status](https://camo.githubusercontent.com/e0ad23a3f196ad8b212a755eb2ac4d8289d5155945853144d577b1111c2ef082/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736d6f6368696e2f696e7374616772616d2d7068702d637261776c65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/#!/smochin/instagram-php-crawler)

A simple PHP Crawler for [Instagram](https://instagram.com).

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

[](#installation)

Package is available on [Packagist](https://packagist.org/packages/smochin/instagram-php-crawler), you can install it using [Composer](http://getcomposer.org).

```
composer require smochin/instagram-php-crawler
```

### Dependencies

[](#dependencies)

- PHP 7
- json extension
- cURL extension

Get started
-----------

[](#get-started)

### Initialize the Crawler

[](#initialize-the-crawler)

```
$crawler = new Smochin\Instagram\Crawler();
```

### Get a list of recently tagged media

[](#get-a-list-of-recently-tagged-media)

```
$media = $crawler->getMediaByTag('php');
```

### Get a list of recent media from a given location

[](#get-a-list-of-recent-media-from-a-given-location)

```
$media = $crawler->getMediaByLocation(225963881);
```

### Get the most recent media published by a user

[](#get-the-most-recent-media-published-by-a-user)

```
$media = $crawler->getMediaByUser('instagram');
```

### Get information about a media

[](#get-information-about-a-media)

```
$media = $crawler->getMedia('0sR6OhmwCQ');
```

### Get information about a user

[](#get-information-about-a-user)

```
$user = $crawler->getUser('jamersonweb');
```

### Get information about a location

[](#get-information-about-a-location)

```
$location = $crawler->getLocation(225963881);
```

### Get information about a tag

[](#get-information-about-a-tag)

```
$tag = $crawler->getTag('php');
```

### Search for hashtags, locations and users

[](#search-for-hashtags-locations-and-users)

```
$result = $crawler->search('recife');
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

3023d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a216843991e35becb243bdc8a9c1df35f50636a2982c69565544b5ad910bac79?d=identicon)[jamesgsilva](/maintainers/jamesgsilva)

---

Top Contributors

[![andrehenriques](https://avatars.githubusercontent.com/u/80700231?v=4)](https://github.com/andrehenriques "andrehenriques (7 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (7 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![hteiktinoo](https://avatars.githubusercontent.com/u/20962901?v=4)](https://github.com/hteiktinoo "hteiktinoo (1 commits)")

---

Tags

httpphpinstagramcrawler

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smochin-instagram-php-crawler/health.svg)

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

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k17.7M58](/packages/spatie-crawler)[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.6M18](/packages/xeroapi-xero-php-oauth2)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1194.4k](/packages/zenditplatform-zendit-php-sdk)

PHPackages © 2026

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