New Instagram API - Minimum timestamp disappears - instagram

I am planning to use the /media/search endpoint in the Instagram API. For our purposes we would need to use MIN_TIMESTAMP to get publications written after a certain timestamp. However, I have noticed that this parameter is available in the deprecated API, and it is not available in the new API:
This is the endpoint in the deprecated API:
https://www.instagram.com/developer/deprecated/endpoints/media/#get_media_search
This is the endpoint in the new API:
https://www.instagram.com/developer/endpoints/media/#get_media_search
As you can see, MIN_TIMESTAMP and MAX_TIMESTAMP disappear from the new documentation. However, I have performed a query with these parameters and they seem to work.
I have searched in Instagram's developers blog and I did not find any comment on this.
Are these timestamp parameters disappearing in the future?

The changes were rolled out today (1st June 2016) and you will see that now the min_timestamp is no longer taken in to account.

Related

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

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) with one exception: the /media/comments edge limits writes to 60 writes per user per hour. Please refer to the Graph API's rate limiting documentation for more information.
https://developers.facebook.com/docs/instagram-api/overview/#rate-limiting
https://techcrunch.com/2018/04/02/instagram-api-limit/
Hope this will be helpful.
Update:-
Further on 4th April few more APIs deprecated by Instagram.
https://www.instagram.com/developer/changelog/
Some perspective:
This 200 per hour call has been in the Graph API documentation for at least a month (according to wayback machine).
Facebook must have panicked over the weekend and pressed the "require Graph API permissions" button, thus our current situation. :\
Yes,
The limit has been reduced.
Here are some reference links for detailed documentation:
Instagram API limit reduced to 200 from 5000
https://techcrunch.com/2018/04/02/instagram-api-limit/
https://developers.facebook.com/docs/instagram-api/overview/#rate-limiting
Hope it helps
Thanks
Here's our answer: https://www.instagram.com/developer/changelog/
The API deprecated immediately. So really the limits probably don't matter that much anymore. I really don't see myself building another app based on their API...
Here is The New Instagram's Public Api Update , unfortunately Limit rates are worthless for some Features in Instagram .
April 4, 2018
The following endpoints are deprecated immediately:
Follows and Relationships
GET /users/self/follows
GET /users/self/followed-by
GET /users/self/requested-by
GET /users/{user-id}/relationship
POST /users/{user-id}/relationship
Commenting on Public Content
GET /media/{media-id}/comments (Deprecation not relevant when fetching comments for self media)
POST /media/{media-id}/comments
DEL /media/{media-id}/comments/comment-id
Media
GET /media/{media-id}
GET /media/shortcode/{shortcode}
Likes
GET /media/{media-id}/likes
POST /media/{media-id}/likes
DEL /media/{media-id}/likes
User Search
GET /users/{user-id}
GET /users/{user-id}/media/recent
GET /users/self/media/liked
GET /users/search
Subscriptions - to receive notifications when media is posted
Some information on Public Content returned through hashtag and location search will be removed - Name, Bio, Comments, Commenters, Follower Count, Following Count, Post Count, and Profile Picture

Get delta users (Users creatad between date) - office 365 graph API

I am making a timer job in c# which will make a call to office 365 and fetch newly created users. For example, if I run it now it should fetch users since last run till current time (Delta). However I dont see any FILTER or API parameter where I can pass date and get ONLY those users who are updated or created after specific date.
Is there any API available something like this;
https://graph.windows.net/{MYORG}/users?api-version=1.6&[Filter=createdDate
gt 12/12/2016 or modifiedDate gt 12/12/2016]
Azure AD Graph API can't do this as far as I am aware of, the User entity does not contain creation or modification dates to query on.
However, the beta endpoint of the Microsoft Graph API should be able to do this. You can follow the instructions here: https://graph.microsoft.io/en-us/docs/concepts/delta_query_users. Simply put you must:
Call the users endpoint with the delta function
If you got a skip token, it means there are more pages
Fetch the next page until you no longer get a skip token but get a delta token instead
This delta token allows you to call the endpoint anytime later to get only the modified users (created/updated/deleted)
General guidance for delta queries
I found that blog already however its under delta and throwing errors to me. Here is what I got in response of first call;
https://graph.microsoft.com/beta/users/delta?$skiptoken=
when I did a GET to that link, I am getting error saying the resource you are trying to request is either does not exist or has been removed or...
I feel there is a bug as its beta API.
However, good news is I just found another blog which seems to have be fixed my problem using following query;
https://graph.windows.net/XYZ.onmicrosoft.com/directoryObjects?api-version=1.6&deltaLink=
I will anyway mark your answer as accepted assuming Microsoft will fix the issue I am getting from backend.

Instagram API Comments Endpoint Returning Non-unique IDs

About an hour ago (2016-04-07 21:00:00 UTC) the /media/media-id/comments endpoint started to return non-unique identifiers for comments. Existing comments were assigned a new ID and the old comment IDs no longer work.
Has anyone seen official documentation about an expected ID migration as part of the new API changes? I see no announcements or developer documentation about new IDs.
Same here, but when doing the same API call now, the API is returning the old IDs again. So maybe a temporary hick-up?!

How to avoid instagram error 429 The maximum number of requests per hour has been exceeded

I do an application which deletes comments on Instagram since Saturday 31st of October, I get this response when I use API to delete comments:
{"error_type":"OAuthRateLimitException","code":429,"error_message":"The maximum number of requests per hour has been exceeded...."}}.
I see that they did a modification one year ago for the limits of the number of requests, but I don't have this error during this execution since before the update.
How to avoid it?
Is it necessary to retrieve a new token or is there an another way to avoid it?
Use a secure API request to get a higher limit. I think you missed this email from Instagram:
When we announced our publishing guidelines for likes/relationship
actions, we also introduced a new technique to sign API requests. As
part of this announcement we set a deprecation date for the previous
signed-headers functionality to Sept 1, 2015.
This email is to let you know that support for signed-headers has now
been deprecated. We know that a number of developers (including your
company) are still relying on this option, and have whitelisted your
client_id for an extended period. Please plan the migration to
securing your application with signed-requests as soon as possible.
You can learn more about this feature here:
https://instagram.com/developer/secure-api-requests/.
The extended support will end on Nov 1 2015. You will see your
rate-limits for publishing likes/follows/comments reduced if you
haven’t migrated after this date.

Access Instagram friends media feed (home timeline)?

Is there a way to retrieve the "Home Timeline" (i.e.: a feed with all latest photos by people the authenticated user is following) using the Instagram API?
I couldn't find this method in the docs.
Turns out this is called the "Self feed" (users/self/feed)
According to Instagram API Changelog, the Self-feed Endpoint was deprecated in November 2015.
The only way that worked until recently was to fetch the followed users list and read their feeds one by one. Unfortunately, new applications can only request Basic permission now since October 2017, which basically means that there is no way to read user's own feed.

Resources