PHPackages                             instagramscraperapi/php-sdk - 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. instagramscraperapi/php-sdk

ActiveLibrary

instagramscraperapi/php-sdk
===========================

Instagram scraper, with support for users, medias, tags and locations. Proxified by Residential and Mobile IPs.

1.0.0(5y ago)226MITPHPPHP &gt;=5.6.0

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/InstagramScraperAPI/php-sdk)[ Packagist](https://packagist.org/packages/instagramscraperapi/php-sdk)[ Docs](https://github.com/InstagramScraperAPI/php-sdk)[ RSS](/packages/instagramscraperapi-php-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

📷 Instagram Scraper
===================

[](#-instagram-scraper)

[![Latest Stable Version](https://camo.githubusercontent.com/905b267495155254482cf140b515d5c01df894a1380302f5b97eaa2fb7712998/68747470733a2f2f706f7365722e707567782e6f72672f696e7374616772616d736372617065726170692f7068702d73646b2f76)](https://packagist.org/packages/instagramscraperapi/php-sdk) [![Total Downloads](https://camo.githubusercontent.com/a1db582f5bf759b66a3bd577d7c2c4ce54ddbfd3d2e310455156c54c413f98bc/68747470733a2f2f706f7365722e707567782e6f72672f696e7374616772616d736372617065726170692f7068702d73646b2f646f776e6c6f616473)](https://packagist.org/packages/instagramscraperapi/php-sdk) [![License](https://camo.githubusercontent.com/d94419bdb89d098e131694b6ecf68ac0d5aa2b2c40bc4bb0012292b51d815bf3/68747470733a2f2f706f7365722e707567782e6f72672f696e7374616772616d736372617065726170692f7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/instagramscraperapi/php-sdk)

Instagram scraper, with support for users, medias, tags, comments and locations. Proxified by Residential and 4G Proxies.

Get a public users data, media, or search for a specific tag or location, without having to register an app.

Since this library uses the web version of Instagram to scrape content, it can break at any time should the returned source code for these pages change.

Proxified for [Instagram Scraper API](https://instagramscraperapi.com) use a intelligent proxy balancing to better data get and no blocking, success rate is very high.

Requirements
------------

[](#requirements)

- Instagram Scraper API
- PHP 5.6.0 or higher

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

[](#installation)

```
composer require instagramscraperapi/php-sdk

```

Usage
-----

[](#usage)

### Starting API

[](#starting-api)

Informe your Rapid API Key

```
$is = new InstagramScraperAPI\InstagramScraper('API-KEY');
```

### Getting a public users data

[](#getting-a-public-users-data)

Returns all public data from an Instagram profile.

```
// by Username
$result = $is->getProfileByUsername('nike');

// by URL
$result = $is->getProfileByURL('https://www.instagram.com/nike/');
```

### Getting medias

[](#getting-medias)

Returns all public medias.

```
// by User Id
$result = $is->getMedias(13460080);

// by public Hashtag
$result = $is->getMediaByHashtag('travel');

// by public Place
$result = $is->getMediaByLocation(108424279189115);
```

### Getting a media data

[](#getting-a-media-data)

Returns a specific public media data.

```
// by Media Shortcode
$result = $is->getMediaByCode('CMe3AQxnhmd');

// by Media URL
$result = $is->getMediaByUrl('https://www.instagram.com/p/CMnW2SBMKiu/');
```

### Getting search results

[](#getting-search-results)

Returns a list of users, tags or locations

```
// by Hashtags
$result = $is->searchHashtags('travel');

// by Location
$result = $is->searchLocations('New york');

// by Userame
$result = $is->searchUsers('nik');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1868d ago

### Community

Maintainers

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

---

Top Contributors

[![angeljunior](https://avatars.githubusercontent.com/u/10691284?v=4)](https://github.com/angeljunior "angeljunior (7 commits)")

---

Tags

instagramscraperinstagram-scraper

### Embed Badge

![Health badge](/badges/instagramscraperapi-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/instagramscraperapi-php-sdk/health.svg)](https://phpackages.com/packages/instagramscraperapi-php-sdk)
```

###  Alternatives

[raiym/instagram-php-scraper

Instagram PHP Scraper. Get account information, photos and videos without any authorization

3.3k1.2M6](/packages/raiym-instagram-php-scraper)

PHPackages © 2026

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