1

I've built a website that show photos with certain hashtag while using client_id and access_token to call instagram API, and it work successfully.

Since my client is in Sandbox mode, I have to use someone else's client_id to call instagram API. I'm curious if there's any solution that can retrieve the search result of certain hashtag in JSON format without using client_id and access_token.

I've found an example that can retrieve user photo feed in JSON format, but I can't find any solution that can retrieve the search result of certain hashtag in JSON format like this. Is this not possible?

Community
  • 1
  • 1
Leon Shih
  • 11
  • 2

2 Answers2

0

These guys provide such service for everyone

instagram.pixelunion.net

Basically, the site is not necessary, you can authorize yourself through API by calling:

api

If you learn someone's client_id, you can make token for yourself without their knowledge or permission.

Oleg Gritsak
  • 548
  • 7
  • 26
0

you can get the photos from instagram by using this.

$hashtag = "fun";
$url = "https://www.instagram.com/explore/tags/".$hashtag."/?__a=1";
$res = @file_get_contents($url);
$media = json_decode($res, true);
$image = $media["tag"]["media"]["nodes"];

NOTE: I am not sure for if the API rules policy changes from Instagram in future.

manish1706
  • 1,571
  • 24
  • 22