instagram-api

Instagram API - How can I retrieve the list of people a user is following on Instagram

故事扮演 提交于 2019-11-27 20:29:36
I would like to know how I can retrieve the list of people a user is following on Instagram. This is given that this particular user is someone that I follow. So I have access to his/her photos and his followers on the Instagram app. How can I use the Instagram API to do this? Is this legal to do? You can use the following Instagram API Endpoint to get a list of people a user is following. https://api.instagram.com/v1/users/{user-id}/follows?access_token=ACCESS-TOKEN Here's the complete documentation for that endpoint. GET /users/user-id/follows And here's a sample response from executing that

Instagram /v1/tags/{tag-name}/media/recent endpoint doesn't return min_tag_id in pagination block

本小妞迷上赌 提交于 2019-11-27 20:19:05
问题 According to https://www.instagram.com/developer/endpoints/tags/, we used to get the min_tag_id in the pagination part of the https://api.instagram.com/v1/tags/tag-name/media/recent?access_token=ACCESS-TOKEN response which we then used in the request to poll for newer posts. As of this morning, we saw that Instagram changed the form of the pagination response. It now looks something like: "pagination": { "next_max_tag_id": "AQBy529IMOAlOvp6EI5zrYZRZbUbNW2oGQjgdvfVi5I

Instagram ?__a=1 not working anymore

我只是一个虾纸丫 提交于 2019-11-27 16:17:43
问题 I've been using Instagram's undocumented API https://www.instagram.com/<user>/?__a=1 to get a public user feed on a website. Since a while now, this is not working anymore, probably because Facebook removed it. Is there an other way to get the data of an instagram account in a easy way? 回答1: I built a small server which does that transformation. You'll receive the instagram data as before with ?__a=1 (as JSON ) - have fun 😊 https://www.instapi.io/u/<username> https://www.instapi.io/u

null.jpg being returned for carousel posts via Instagram API

百般思念 提交于 2019-11-27 13:59:49
问题 It looks like the Instagram API does not support the new Instagram carousel feature. The images results only contain https://instagramstatic-a.akamaihd.net/null.jpg and not the cover image. Any ideas how to retrieve these via the API? 回答1: UPDATE: Since last Monday (April 24) we are receiving posts of type "carousel" containing the property "carousel_media" with all the carousel images. Response example: https://jsonformatter.org/89e2fd We have the same problem from yesterday. We have added a

Instagram ?__a=1 url not working anymore & problems with graphql/query to get data

假如想象 提交于 2019-11-27 10:48:52
Update 19 April After a few days using cookie ig_pr two days ago is block. Looks like the only way to get the data now is use sessionid with a specific value Original I was using instagram ?__a=1 url to read all the post of instagram's users. A few hours ago there was a change in the response and now doesn't allow me to use max_id to paginate. Before I usually sent a request to https://www.instagram.com/{{username}}/?__a=1 and using the graphql.edge_owner_to_timeline_media.page_info.end_cursor in the response I called the same page with a new max_id https://www.instagram.com/{{username}}/?__a

Instagram oauth - error 400 matching code not found [closed]

拜拜、爱过 提交于 2019-11-27 10:38:07
问题 Problem started two days ago and affected about 70% of our users. This error is not depends on IP, libraries or server configuration. Instagram ignores my requests, Facebook do too. I've tried to reset client secret, change IP and region, so nothing helped. Other users reports same problem: https://news.ycombinator.com/item?id=13178789 Maybe someone from Instagram/Facebook read StackOverflow and can give some advise or clarify this situation? 回答1: I'm seeing this consistently. After much

Did Instagram change API rate limits on Mar 30, 2018?

烈酒焚心 提交于 2019-11-27 09:22:15
I use some self developed script to get info about my posts and followers. Recently I discovered that Instagram changed rate limits for my app. I see following info in headers: x-ratelimit-limit: 200 I learned Instagram blog and page with changes but found no mentions about any changes since Oct 1, 2017. Is this new limit related only to my token or to entire platform? Could you check your token? Yes It is, Although no official communication. I also experienced that. I found this in their documentation. The Instagram API uses the same rate limiting as the Graph API (200 calls per user per hour

How to perform unauthenticated Instagram web scraping in response to recent private API changes?

我的梦境 提交于 2019-11-27 06:08:54
Months ago, Instagram began rendering their public API inoperable by removing most features and refusing to accept new applications for most permissions scopes. Further changes were made this week which further constricts developer options. Many of us have turned to Instagram's private web API to implement the functionality we previously had. One standout ping/instagram_private_api manages to rebuild most of the prior functionality, however, with the publicly announced changes this week, Instagram also made underlying changes to their private API, requiring in magic variables, user-agents, and

Instagram API doesn’t find any liked posts for sandbox users

柔情痞子 提交于 2019-11-27 03:31:40
I’m using the Instagram API in sandbox mode. I’m trying to access a User’s liked posts from the Instagram API using their authenticated access token. This user is one of the accepted sandbox users for my app, and has liked some posts. If I call other endpoints with the same token, I get some data, but accessing /users/self/media/liked returns empty data. I’m using this URL: https://api.instagram.com/v1/users/self/media/liked?access_token={verified access token} and this is the result I’m receiving: {"pagination": {}, "meta": {"code": 200}, "data": []} Because it has a 200 return code, the

Instagram API /tags/{tag-name}/media/recent changed behaviour

我与影子孤独终老i 提交于 2019-11-27 01:33:47
问题 I worked several times with this endpoint and it seems that since this week when I pass a max_id value an error is thrown, it says: { "meta": { "error_type": "APIInvalidParametersError", "code": 400, "error_message": "max_id must not be a media id." } } I have no idea where to find if api has changed behaviour or simply it's broken. Guys, do you have any idea? Another error that I've found is the order of returned Medias when I query this endpoint. Here's a sample data: #sample error [ Media: