PHP Classes

PHP Instagram API Query: Get details about Instagram users from their pages

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 75 All time: 10,189 This week: 524Up
Version License PHP version Categories
php-instagram-query 1.0.0GNU General Publi...5PHP 5, Web services, Social Networking
Description 

Author

This package can get details about Instagram users from their pages.

It can send HTTP requests to the Instagram Web servers to retrieve pages from specific Instagram users and parses those pages to return several types of user details.

Currently it can extract:

- The user name

- The user profile identifier

- The user picture

- The user page identifier

Innovation Award
PHP Programming Innovation award nominee
September 2022
Number 9
Instagram is a prevalent social network on which people can post their content, mainly using pictures and videos.

Applications can retrieve information about Instagram users using its API and the OAuth protocol.

This package provides a simpler alternative to retrieve several types of Instagram user details that do not require using the Instagram API and the OAuth protocol.

The package accesses the Instagram pages and extracts several types of user details from the Instagram user pages HTML.

Manuel Lemos
Picture of Ujah Chigozie peter
  Performance   Level  
Name: Ujah Chigozie peter <contact>
Classes: 28 packages by
Country: Nigeria Nigeria
Age: 33
All time rank: 198910 in Nigeria Nigeria
Week rank: 10 Up1 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 11x

Documentation

php-instagram-query

A simple php class to extract user profile picture, page_ids, profile_id & name from instagram

Installation is super-easy via Composer:

composer require peterujah/php-instagram-query

USAGES

Initialize InstagramQuery with the necessary parameters and register your custom classes.

use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery();
$username = "peterchig";

OR with options

use \Peterujah\NanoBlock\InstagramQuery;
$lookup = new InstagramQuery($browserLanguage, $userAgent);
$username = "peterchig";

Fine user profile picture

$ig = $lookup->findProfilePic($username);
echo $ig->picture;
var_dump($ig);

Fine user page ids

$ig = $lookup->findPageId($username);
echo $ig->page;
var_dump($ig);

Fine user profile id

$ig = $lookup->findProfileId($username);
echo $ig->profile;
var_dump($ig);

Fine user instagram name

$ig = $lookup->findProfileName($username);
echo $ig->name;
var_dump($ig);

  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file InstagramQuery.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:75
This week:0
All time:10,189
This week:524Up