Time: 2026-07-05 17:22:16
<?php
$data = null;
if(isset($_POST['username'])){
$username = trim($_POST['username']);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://instagram120.p.rapidapi.com/api/instagram/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode(array(
"username" => $username
)),
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"X-RapidAPI-Key: YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host: instagram120.p.rapidapi.com"
),
));
$response = curl_exec($curl);
curl_close($curl);
$json = json_decode($response, true);
if(isset($json['result'])){
$data = $json['result'];
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Instagram Profile Checker</title>
<style>
body{
background:#111;
font-family:Arial;
color:#fff;
text-align:center;
}
.box{
width:380px;
margin:auto;
margin-top:30px;
background:#222;
padding:20px;
border-radius:10px;
}
input{
width:90%;
padding:10px;
font-size:18px;
}
button{
padding:10px 20px;
margin-top:10px;
background:#E1306C;
color:#fff;
border:none;
cursor:pointer;
}
img{
width:150px;
height:150px;
border-radius:50%;
margin-top:20px;
}
.info{
font-size:20px;
margin-top:10px;
}
</style>
</head>
<body>
<div class="box">
<h2>Instagram Profile Checker</h2>
<form method="POST">
<input type="text" name="username" placeholder="Enter Username" required>
<br>
<button>Search</button>
</form>
<?php
if($data){
echo "<img src='".$data['profile_pic_url_hd']."'>";
echo "<div class='info'><b>".$data['full_name']."</b></div>";
echo "<div>@".$data['username']."</div>";
echo "<div class='info'>Followers : ".number_format($data['edge_followed_by']['count'])."</div>";
echo "<div class='info'>Following : ".number_format($data['edge_follow']['count'])."</div>";
echo "<div class='info'>Posts : ".number_format($data['edge_owner_to_timeline_media']['count'])."</div>";
echo "<br>";
echo $data['biography'];
}
?>
</div>
</body>
</html>
Delete