APINotFoundError: invalid media id - instagram-api

I want to get information using the media endpoint from Instagram. I don't know what is going on when I request this particularly endpoint https://api.instagram.com/v1/media/shortcode/BIU_L3sg_9P?access_token=ACCESS_TOKEN. This shortcode Im sure that exists.
Anyone could help me?

where did u get that shortcode from?
I looked up the user and that photo from instagram, here is the same photo with different shortcode BH2XfKpB4br from instagram, this works:
https://api.instagram.com/v1/media/shortcode/BH2XfKpB4br?access_token=XXX

Related

Instagram graph API IG hashtag

I need to get media from connected instagram profile by hashtag. For most part, I was successful, however I stumbled upon a few limitation I cannot find workaround for.
When I fetch media on IG user, I can send username as a field and get it back. However, I cannot get username on IG hashtag, it is not listed as field in documentation, and throws error if I send one.
I don't want to get back albums on IG hashtag, just image and video, but I can't seem to find a way to filter by type
What is interesting, I found an example of site that displays username when filtering by hashtag, but the only way I could think of achiving this is to send request for media details for each media I receive. Needless to say, I want to avoid it.
Has anyone had a similar problem and solved it?

Instagram API Possible Solution

I have one question, with an Instagram Username. Can I get back data from that user? for example, get photos and number of followers? (only if profile is public)
I'm creating a website were users can upload their Instagram username #example and based on that scrap and create a profile on the website with their latest photos and the number of followers (all of this without logging).
I think This image will help to understand what I'm trying to achieve, Can someone guide me? this is possible with Instagram API?
Yes this was possible recently with https://www.instagram.com/<username>/?__a=1 but instagram recently blocked this possibility.
I'll update my post if I find a new method.

How to get "public_content" permission in Instagram API?

I have App what use in my website a widget by inwidget.ru : this widget show recent photos by special user or hashtag (people who have red heads and use #redpeopleorg in Instagram will show in my website http://redpeople.org).
After 17'November 2015 Instagram had change rules.
I made a screencast, send submission with description why I need live-mode and tried to get "public_content" permission in Instagram API, but they changed review status to "Declined".
Anybody have positive experience with reviewing applications in Instagram Api?
I don't know devs who had. Bat there's still a hope, e.g. you can parse public search results:
https://www.instagram.com/explore/tags/hashtag/
I use a bunch of javascript code, that contains json string with all posts - just json_decode'd it.

Is it possible to get the Instagram news feed through the API?

When you open the Instagram APP you can look at your news feed where you can see that someone is now following you, likes or has commented on a certain photo.
When I look at the Instagram API (http://instagram.com/developer/) I can retrieve likes and comments when I request a certain media ID. However in order to know if someone has commented on a photo of mine I would need to scan all the photo's and request it's comments to check if any new comments have been made.
Does anyone know of a better way? Help is appreciated.
If it helps, content for "Following" tab is available at http://instagram.com/api/v1/news/, and "News" tab at http://instagram.com/api/v1/news/inbox/ (you need to be logged in to your account).
All URLs point to internal instagram:// protocol so you would need to replace them when parsing and there seem to be no pagination options.

How to find out on flickr the farm-id and other info of a photo

Im trying to display in my website photos froma photoset I have in Flickr. In the documentation says:
You can construct the source URL to a photo once you know its ID, server ID, farm ID and secret, as returned by many API methods.
But I only know how to get the Photo ID. How can I get the rest of the information?
The simplest API is flickr.photos.search, and you can find the documents from
http://www.flickr.com/services/api/flickr.photos.search.html
And an example output could be found there.
when you get the ouput, a photo could be accessed by
http://farm{farm-id}.staticflickr.com/{server-id}/{id}_{secret}.jpg

Resources