How to get all images of hashtag in Instagram without API?
<p>This is the code that I used to get images of hashtag without API. I do not want to use any credentials. It does not require me to add either <code>client_id</code> or access token. But I only get 15 images. How can I get all the images?</p>

<pre><code> &lt;div&gt;

    &lt;form action='#' method='post'&gt;
    &lt;input type='input' name='txttag' /&gt;
    &lt;input type='submit' value='Get Image' /&gt;
    &lt;/form&gt;

    &lt;/div&gt;


    &lt;?php 
    function scrape_insta_hash($tag) {
        $insta_source = file_get_contents('https://www.instagram.com/explore/tags/'.$tag.'/'); // instagrame tag url
        $shards = explode('window._sharedData = ', $insta_source);
        $insta_json = explode(';&lt;/script&gt;', $shards[1]); 
        $insta_array = json_decode($insta_json[0], TRUE);
        return $insta_array; // this return a lot things print it and see what else you need
    }

    if(isset($_POST['txttag']))
    {
        $tag =$_POST['txttag']; // tag for which ou want images 
        $results_array = scrape_insta_hash($tag);
        $limit = 15; // provide the limit thats important because one page only give some images then load more have to be clicked
        $image_array= array(); // array to store images.
            for ($i=0; $i &lt; $limit; $i++) { 
                $latest_array = $results_array['entry_data']['TagPage'][0]['tag']['media']['nodes'][$i];
                $image_data  = '&lt;img src="'.$latest_array['thumbnail_src'].'"&gt;'; // thumbnail and same sizes 
                //$image_data  = '&lt;img src="'.$latest_array['display_src'].'"&gt;'; actual image and different sizes 
                array_push($image_array, $image_data);
            }
            foreach ($image_array as $image) {
                echo $image;// this will echo the images wrap it in div or ul li what ever html structure 
            }
            //https://www.instagram.com/explore/tags/your-tag-name/
    }
    ?&gt;



    &lt;style&gt;
    img {
      height: 200px;
      margin: 10px;
    }
    &lt;/style&gt;
</code></pre>