until one month ago, the following url can be used to download public images of an instagram account.
https://www.instagram.com/{user_id}/media
e.g.
https://www.instagram.com/vodaboutique/media
It seems that that url is no longer supported. what should I use to obtain an instagram user's public images?
Related
There are many answers here based on this method to convert big id to the short code. However, the big id (like 2017748900654405613_12103976679) is not included in a photo link.
How can I get the media link
https://www.instagram.com/p/BwBRj3jgsi8/
FROM the photo link
https://scontent-lhr3-1.cdninstagram.com/vp/f97884ced334a94f17080e60a5f99f16/5D2D32E1/t51.2885-15/e35/s1080x1080/56563284_333674164009004_273410740597618711_n.jpg?_nc_ht=scontent-lhr3-1.cdninstagram.com
Unfortunately you can't go from the CDN photo link back to the media link.
When an image is uploaded to the instagram CDN, it's assigned a unique ID. The media link is a "post", hence the /p/. The post is assigned its own unique ID upon creation, and the linking of the CDN URL as well as other stuff like the user id is stored on Instagram's backend.
These unique IDs aren't related, so you can't use a CDN to get the ID of the post. Sorry!
I have a website that the gallery part uses photos that are stored on Google Photos.
I'm trying to migrate a connection to the Picasa API (now completely depreciated) to Google Photos API. However all suggestions point to the visitor to authenticate themselves and exchange code for a token, however I'm looking for a simpler method that skips this for public shared photos and users without a Google account. Any suggestions?
PS: I'm using C# WebForms, but an API that returns a JSON would be great.
Instagram API removed the following endpoint:
GET /users/search
which I was using to get images from my profile on my website.
Is there any way to do this now? I can't find any info since this is very new.
You can get at least the newest 12 pictures from a public account by using this URL scheme:
https://www.instagram.com/[name_of_account]/?__a=1
You can parse the Json output and find the image-URL in display_url
This also works with hashtags and locations:
https://www.instagram.com/explore/tags/hawaii/?__a=1
you can show your own media,
https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN
just enter access token an you will be able to get your media data
I do not see any way via either the old Instagram API or via the new Facebook graph API for Instagram Business Accounts to get profile images for accounts that are not yours. If it is an Instagram Business Account, you could get the Facebook profile image from the Facebook page associated with that Instagram account; but if it is a non-business Instagram account, that won't work. More documentation here: https://developers.facebook.com/docs/instagram-api/overview
We have an approved app for public_content on Instagram's API. But would like to confirm expected behavior after the latest API changes.
Previously (prior 2016 API update), using a user authenticated token and this endpoint /tags/[tag-name]/media/recent, we could fetch all the posts with a given hashtags from public users as well as private users, given they were followers of the authenticated account. Meaning, if you could log into your IG account and see that user's media, than our app would be able to grab that media as well through the API using your authenticated user token.
Recently ( start of 2017? ), we started noticing that the returned media doesn't always include the private users that are your followers. We can still get all the public user hashtagged content, but the private user's content was hit or miss. And we can't seem to figure out any pattern or rule to it.
Has anyone else faced this issue? Does anyone know what the official stance is from Instagram as it relates to a private user's photos who follow a certain account, and your app has that account's authenticated token.
You can't get anything from private followers even if the user you're logged in as can see them from the client.
This was done because, in the past, some applications were getting the media from private followers via the API and saving them locally. Then, these applications were not properly protecting these private images from search engines and web crawlers. User's complained about their private images showing up on Google images and so, here we are.
You also can't see bio or the follower count of private users even if the user you've authenticated with can see them in the application. Basically, only the public-facing information about private users can be accessed with the API regardless of who you've authenticated with via the API. That means only the profile picture and username can be accessed.
I'm writing an application and trying to access Instagram API through Client ID. If I set up a tag for my application(#testTag) and users use that on their posts, will i get the videos and images from just public users or public and private both?
Using a client_id you will never get access to private medias by any of the API endpoints, just the public ones. (Tested)
You may test by tagging one of your photos and trying the Tags endpoint, then making your profile private temporarily and test again.
Using an access_token you can get tagged media from private users followed by the profile owning that access_token too.