PHP Classes

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

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


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: 25 packages by
Country: Nigeria Nigeria
Age: 33
All time rank: 202310 in Nigeria Nigeria
Week rank: 4 Up3 in Nigeria Nigeria Up
Innovation award
Innovation award
Nominee: 11x



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


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;

Fine user page ids

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

Fine user profile id

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

Fine user instagram name

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

  Files folder image Files  
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 Doc. Documentation

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,176
This week:524Up