Skip to content

martinnaj/GetLikesInstagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

# This can be used by anyone, so long as you credit somewhere in your applied code, for example: 

##Start of example
<?php
$p1 = "https://www.instagram.com/p/";
$postID = "B-Imyv3hhDA";
$p2 = "/?h1=en";
$likes = explode(" Likes", explode("<meta content=\"", file_get_contents("$p1$postID$p2"), 2)[1], 2)[0];
?>
<html>
  <!-- API CREATED BY MARTINNAJ -->
  <!-- www.github.com/martinnaj -->
  <head>
    <title>Example</title>
  </head>
  <body>
    <h1>Post <?php echo $postID;?></h1>
    <h2>This post has <?php echo $likes; ?> likes</h2>
  </body>
<html>

About

Get the amount of likes a post has on instagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages