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 client_id
or acces
@olaf answer worked great for me!
@Tomas The limit is the number of posts that will be returned by the function so that it doesn't return all of them.
Also: this function puts the Instagram posts in order from oldest to newest. If you want the latest to be first and go backwards to the limit number:
Change
for ($i=$limit; $i >= 0; $i--)
to
for ($i=0; $i < $limit; $i++)