Public Instagram endpoint without credentials - instagram

I am looking for another way to get Instagram media from public accounts. I don't want to provide any credentials. I know that it is possible with the access token from Instagram Basic API, but it is short-lived. Is there any official public endpoint available? I found a ?__a=1, but it is deprecated. Also, there is a https://www.instagram.com/graphql/query/?query_hash=HASH&variables={"id":"ID","first":COUNT}, but it isn't mentioned in any official documentation.
Do you guys have any ideas?

What do you mean deprecated? Use such a link https://www.instagram.com/username/?__a=1 and get all the data in json format, then process it how you need.

Related

How to get instagram id from update 29/6/2020

I am building instagram in wordpress using the "elementor" plugin.
In the old version I used the => https://api.instagram.com/v1/users/[my-id]/media/recent/?access_token=[my-token]
Path to retrieve my instagram info data
Through the "29/6/2020" version the old link was no longer available. The algorithm changed that I was unable to retrieve my instagram data that way.
You can show me a new link or a new way for me to get my instagram data (photos, links, likes, comments) on my instagram.
Thank you very much
Best regards
Now you need to connect your instagram account with your facebook account. After of that you can access such things in new way as described at https://developers.facebook.com/docs/instagram-api/reference/user/media#get-media here. Also you need instagram account as Business account.
If you wish to fetch media from your personal account for your website you don't need to work with the graph API and Facebook login part, simply use the INSTAGRAM BASIC DISPLAY API and get your details and media.
Refer this link:
https://developers.facebook.com/docs/instagram-basic-display-api

Get Instagram data from a backend

It is possible to get data from Instagram users, like number of posts, profile photo etc from a backend service? I don't want to force my user to login into his Instagram account to get those informations.
I'm reading about Instagram new api but always it talks about oauth which implied force login vis frontend.
Thanks.
Why would Instagram give some users data, without login? Only possible option is through Instagram public APIs, using OAuth/OIDC.
You should be able to use someone else's token (... yours?) to fetch informations about users and posts.
But that will always be limited.... for example users with non public profile, you won't be able to see those, or maybe you'll loose some posts, ....

How to get profile information of user who comment on my Instagram post, using new Instagram graph APIs?

I am using new Instagram Graph APIs for my application, I am interested in knowing if there is any way I can get profile information about the user who comments on my Instagram posts and what are possible ways to get the direct message exchanging with those users, as far I found that Instagram Graph APIs do not provide any direct messaging support for now, though I found some private APIs but these are not reliable as they can be restricted any time in future.
So all I need is to get those user`s information who commented on my Posts ie- I get only comment_id from the web-hook request from Instagram Graph APIs but when using that comment I try to get its owner/user it does not return any user information except username.
Any help is highly appreciated.
Thank you!
try this endpoint:
v3.0/{comment_id}?fields=id,timestamp,username,text

Is it possible to determine if an Instagram account is private?

With the updates to the Instagram API in November we can longer check if a user is private by calling the API with a Client Id. All calls require an access token so this solution is no longer viable Find out whether a user has a public or private profile on instagram using API?
I would like to be able to search for users but filter out private users or at the very least be able to tell if their account is private when using this call api.instagram.com/v1/users/search?q=jack&access_token=ACCESS-TOKEN.
I would also like to be able to search for tags and filter out the private media when using this call api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN
I have looked at all the endpoints and data that is returned and I can't see anything that would help me. I even tried using the oembed endpoint thinking that it wouldn't return an embed if the post was private but it still does.

Accessing non-public photos in Flickr API

I'm developing an app that gets photos from Flickr with Javascript. Photoset ID that shown in image is not public hence when i select the "don't sign call" option, API responses "error". I don't want make my Flickr photos public but i want call them from another page via API. I know that it's possible with "token". But token is required going "Login Page".
Can it is possible accessing non-public photos with my API Key?
Yes, your app can access your private photos. You will need to learn about Flickr's user authentication API, which uses the OAuth protocol. It's a little tricky to get started with, but there are third-party libraries to help with some of the work.

Resources