Aditiap / instaDataScrap

Insta Data Scrap is an API to scrap some details of any Instagram users using thier username. This API has written in PHP. Check youtube video for demo.

Home Page:https://youtu.be/iazgn1qfbaI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insta Data Scrap

Insta Data Scrap is an API to scrap some details of any Instagram users using thier username. Using this API you can scrap some details even if account is in private mode. It dosen't need Instagram API to fetch data by using Access Token.

How to use it?

Example:

  require_once('insta_data_scrap.class.php');
  $username = "username";
  $insta = new InstaData();
  $userDetails = $insta->getUserDetails($username);
  $accountDetails = $insta->getAccountDetails($username);
  $userData = json_decode($userDetails,true);
  $accountData = json_decode($accountDetails,true);
  $timeLine = $insta->getTimeLine($username);

Use this to print details


$count = $timeLine['count'];
$timeLineData = $timeLine['data'];

for($i=0;$i<$count;$i++){
    echo $timeLineData[$i]['post_img'] . "<br>";
    echo $timeLineData[$i]['post_txt'] . "<br>";
    echo $timeLineData[$i]['post_time'] . "<br>";
    echo $timeLineData[$i]['post_likes'] . "<br>";
    echo $timeLineData[$i]['post_comments'] . "<br>";
}

print_r($userData);
print_r($accountData);

You can print UserData and AccountData in human redable format below code

echo $userData['img'];
echo $userData['full_name'];
echo $userData['username'];
echo $userData['is_verified'];
echo $userData['id'];
echo $userData['instaUrl'];
echo $accountData['followers'];
echo $accountData['follow'];
echo $accountData['posts'];

About

Insta Data Scrap is an API to scrap some details of any Instagram users using thier username. This API has written in PHP. Check youtube video for demo.

https://youtu.be/iazgn1qfbaI

License:MIT License


Languages

Language:PHP 100.0%