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

ActiveLibrary

rapid-api/instagram-scrapper
============================

Get instagram posts and reels from rapid API

01PHP

Since Feb 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/okhundev/instagram-api-package)[ Packagist](https://packagist.org/packages/rapid-api/instagram-scrapper)[ RSS](/packages/rapid-api-instagram-scrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Instagram API PHP Package
=========================

[](#instagram-api-php-package)

This PHP library is designed to fetch posts from Instagram via RapidAPI.

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

[](#installation)

Install the package using Composer:

```
composer require rapid-api/instagram-scrapper
```

Then, run the following command:

```
composer require rapid-api/instagram-scrapper:dev-main
```

Usage
-----

[](#usage)

Using the package is very simple:

```
require 'vendor/autoload.php';

use YourVendor\InstagramAPI\InstagramClient;

$apiKey = 'YOUR_RAPIDAPI_KEY';
$instagram = new InstagramClient($apiKey);

$posts = $instagram->getUserPosts('cristiano');

print_r($posts);
```

Functions
---------

[](#functions)

### `getUserPosts($username)`

[](#getuserpostsusername)

Fetches posts of a specific user.

```
$posts = $instagram->getUserPosts('cristiano');
```

**Response Example:**

```
{
    "data": [
        {
            "id": "123456789",
            "caption": "New post!",
            "image": "https://instagram.com/image.jpg",
            "likes": 1500,
            "comments": 300
        }
    ]
}
```

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

[](#requirements)

- PHP 7.3 or higher
- Composer
- A registered RapidAPI account with an Instagram API key

License
-------

[](#license)

Distributed under the MIT License.

Author
------

[](#author)

**Mr Oxunjon Abdurashidov**

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

[](#contributing)

If you want to contribute, feel free to submit a pull request or open an issue on the GitHub repository.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% 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/3142a1e38a1a747fa8e6b6261bc36e1b331075bf938d029262837431ecde1115?d=identicon)[okhun9494](/maintainers/okhun9494)

---

Top Contributors

[![abdurashidovoxunjon-sudo](https://avatars.githubusercontent.com/u/247695864?v=4)](https://github.com/abdurashidovoxunjon-sudo "abdurashidovoxunjon-sudo (8 commits)")[![okhundev](https://avatars.githubusercontent.com/u/36882108?v=4)](https://github.com/okhundev "okhundev (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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