instagram api rate limit clarification - instagram-api

We make GET requests to the /users/self/media/recent and /media/media-id/comments
endpoints.
For this we use user authentication with access_token.
According to the rate limit documentation of instagram we should have 5000 requests / access_token / hour available.
logging the number of our requests on average we do about 600 - 800 requests for a user of us but still receive an api limit reached error in the instagram response.
not only that but according to the error we do ~70K request/hour
You have exceeded the maximum number of requests per hour. You have performed a total of 68100 requests in the last hour. Our general maximum limit is set at 5000 requests per hour.
Am I missing something? Only a few customers of us are affected by this problem.
Are the limits per user global and all apps the user uses have to share the 5000 requests / hour? That is the only explanation I can come up with but found no documentation of this behavior.

Post the code, may be you are doing something wrong and its making multiple calls.
The API response header shows how many remaining calls after each API call:
x-ratelimit-limit:5000
x-ratelimit-remaining:4998
check this value after each call from your code and analyze.

Related

Docusign API Get Limits in sandbox

Does DocuSign enforce its limits on Get requests per EnvelopeID in the sandbox?
I have reviewed their publications regarding the 1 Get request per EnvelopeID every 15 minutes and 1000 API requests per hour, however in the sandbox, it appears that I am able to get a valid response when intentionally violating these limits for testing when using the same EnvelopeID and endpoint. Are these restrictions enforced only in the production environment? I posed the question to Docusign, but they didn't answer and referred me here. Any insight would be appreciated.
In Demo environment limit is more than 1000, for my Sandbox account I can see the limit is 100000. You can always check the Header in the any API call response, it will have below values:
X-RateLimit-Limit →100000
X-RateLimit-Remaining →99998
X-RateLimit-Reset →1512680400
X-RateLimit-Limit tells your API call limit
X-RateLimit-Remaining tells how many are remaining in this hour
X-RateLimit-Reset tells the time when rate limit counter will be
rest

Any ideas about rate limit request/minute on Spotify Api?

Is there anyone using Spotify Web API on development website can provide any approximate number about request/minute limits of Web API?
I'm using Client Authorization Flow
I've asked same question here: https://community.spotify.com/t5/Ongoing-Issues/Web-Api-Rate-Limit/idc-p/2121577#M54331, but no response given, i'm looking for someone that made some tests.
Thanks all
In a harness I just threw together, I called the individual track api endpoint with different values until it started to complain (the Spotipy Python library backs off and retries after a 429 automatically). Within a minute I was able to call it 600 times. It had to back off after about 270 tries,and 560 tries, but only for a second each time.
I repeated this test, for 1150 calls to the same endpoint, over the course of two minutes, again only having to back off for a second a few times.
At the very least this indicates that Spotify likely doesn't allocate meaningful rate limits on a per minute basis, but it's still possible that there is some kind of daily or hourly limit.

Instagram Rate Limit

Are the endpoint-specific rate limits per access token, or for app period. Lets say I have 100 users of the app, (100 different access tokens) that make a relationship post request, is that not going to work? Or is it 60 requests max per user of the app, and no more than 5000 total requests from the app every hour..
Each user can make total of 5000/hr API calls, POST API calls have different limits like relationship POST call has 60/hr. There is no limit for the app, each access_token (user) has a limit.
Update: As jhm pointed out, this limit has been reduced from 5000/hr to 200/hr as of April 1, 2018.
As per the April 1st 2018, the rate limit has been significantly reduced - from 5000 to 200 pr hour pr user:
https://developers.facebook.com/docs/instagram-api/overview/#rate-limiting

instagram api: getting user information and rate limits

I'm a little confused if what I am trying to do is even possible given the expressed limits to the API.
My app should do this:
user logs in, app gets auth token
user gets list of their followers
https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN
this point is easy to get to, but the next step (3) seems potentially problematic
user gets the number of followers each of those followers has
https://api.instagram.com/v1/users/{user-id}/?access_token=ACCESS-TOKEN
If the user has 5000+ (limit is 5000 requests per hour) followers, do I really need to request each users information one by one? If so, it looks like I will definitely hit the rate limit.
user is able to delete followers having under a certain amount of followers (limit 60 / hour)
https://api.instagram.com/v1/users/{user-id}/relationship?access_token=ACCESS-TOKEN
So, it seems, given the limits, that such an app would be impossible to create. Is there some channel where I can request a limit increase? This tool would be used sparingly and infrequently.
There is a section "Relationship Endpoints" where you can use request
GET/users/self/followed-by
https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN
to Get the list of users this user is followed by, so this is only one request.

Instagram API Access Limit

We require to get the followers data (profile metrics specially follower's friends count) for my client's accounts having more than 500k followers. Because of Instagram api limitation we can only do 5k calls /hour. Thats why, it is impossible to load all followers data for every day. But there are few products like web.stagram.com etc, which are also using the instagram api and making unlimited (or some greater num than allowed limit) calls.
Are these partners exempted by instagram?
Please update if there is a way to get higher api limit.
We are ready to pay amount for the higher limit.
Regards,
Parvendra Adhran
You have to try to get whitelisted to get a new Rate Limit, there's a long waiting list and Instagram has mentioned they won't be getting to the requests anytime soon.
I've heard of people still waiting over 2 months so far.

Resources