承接 rapid-api/instagram-scrapper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rapid-api/instagram-scrapper

Composer 安装命令:

composer require rapid-api/instagram-scrapper

包简介

Get instagram posts and reels from rapid API

README 文档

README

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

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

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

getUserPosts($username)

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

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

License

Distributed under the MIT License.

Author

Mr Oxunjon Abdurashidov
abdurashidovoxunjon@gmail.com

Contributing

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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-08