Here Maps - What HTTP status code does it return when API Quota was exceeded? - api

I am developing an app which uses the distance calculation of HERE maps API...
I am preparing for the case when the API doesn't return what my app expects (correct response including distance infos). So I want to be prepared for the case the API Request Quota was exceeded...
What HTTP status code does it return when API Quota was exceeded?
Does it return a 200 with some JSON which explains that and error occurred because of quota?

You should also get a 429 error from the API, with a message "Limit Exceeded".

If you exceed the Location Services 250,000 Transactions or Data Hub 2.5GB Data transfer or 5GB Database storage included for free in the Freemium plan, you'll receive an email telling you to add payment details to your account.
You'll have some "wiggle room" above your limits to help ensure your access is not unintentionally shut down. However, it's possible to exceed the threshold, including "wiggle room", which would result in account deactivation, even before we can notify you.
for detail please check the FAQ section with question
"12. What happens if I exceed limits on my Freemium plan?"
https://developer.here.com/faqs#payment-and-subscription

Related

Github API rate limit specifics

I am trying to find some specific details on the Github API rate limit.
I have seen many different places suggesting 5000 requests per hour, but I have been limited to 30 according to my response headers.
I have looked at a couple other questions related to github rate limits but haven't found any specifics on them.
I authenticate my requests with OAUTH in the headers.
I recieve Error: Request failed with status code 403 which according to the docs means I'm authenticated.
What I would like to know is:
What are the different rate limits?
Why would I receive 30/hour while someone else may have 5000/hour?
How do I increase it?
You are likely seeing a reduced rate limit because you are not successfully authenticating. You may be providing credentials, but those credentials are not correct, don't have the right scopes, or are otherwise not valid for the resources you're requesting. If you're accessing public information, then you'd get access to that data anyway even without authenticating, so your invalid credentials wouldn't matter but would result in a reduced rate limit.
The reason GitHub provides different rate limits for authenticated and unauthenticated users is to prevent abuse and make it possible to contact users who are engaging in excessive or unacceptable behaviors. For example, if a bot account or OAuth app is causing problems, the maintainer of that service can be contacted, and in an emergency, that account can be prevented from accessing the API until it can be fixed so as not to impact other users.
You can, as the documentation mentions, get an increased rate limit for the API by successfully authenticating. You haven't provided any details about what you're requesting or what scopes you've asked for, so we can't help there; you'll probably want to ask another question with more details. Beyond the limit of 5000 requests, you'd have to ask GitHub Support, although that is a relatively generous limit.

Gmail API quota usage check

We are developing a project working with Gmail API, it might exceed the API limit on this page https://developers.google.com/gmail/api/v1/reference/quota
API Limit
Daily Usage 1,000,000,000 quota units per day
Per User Rate Limit 250 quota units per user per second
"Exceeding a rate limit will cause an HTTP 403 or HTTP 429 Too Many Requests response and your app should respond by retrying with exponential backoff."
So we can we make a call from script, to check the number of API call left before we run the project? Or it can only be seen in google API console in a web page?
Does the HTTP 403 error bonded to Daily Usage limit and HTTP 429 bonded to User Rate Limit?
Does the API limit Daily Usage means calendar day?
The link that you've provided gives a lot of information about Gmail Quota Usage and limits.
1.So we can we make a call from script, to check the number of API call left before we run the project? Or it can only be seen in google API console in a web page?
To view the quota usage, access your developer console. And you are correct, it is viewable using the console. You can also see traffic ( number of request per seconds), and error ratio of the enabled API of your project.
2.Does the HTTP 403 error bonded to Daily Usage limit and HTTP 429 bonded to User Rate Limit?
According to the documentation Usage Limits:
Exceeding a rate limit will cause an HTTP 403 or HTTP 429 Too Many Requests response and your app should respond by retrying with exponential backoff.
An error 4xx is more likely be related to user rate limit. And the documentation discussed what to do when experiencing an error 4xx (exponential backoff).
3.Does the API limit Daily Usage means calendar day?
Daily usage means the maximum API requests per day
Hope this info helps.

What are the limitations of OneDrive for Business APIs

As per the documention of the OneDrive API https://dev.onedrive.com/README.htm, under the Throttling option, "OneDrive has limits in place to make sure that individuals and apps do not adversely affect the experience of other users. When an activity exceeds OneDrive's limits, API requests will be rejected for a period of time. OneDrive may also return a Retry-After header with the number of seconds your app should wait before sending more requests."
So i would like to know what are the limitations that causes the OneDriveApi to reject request
Based on how use the API many requests to it or if you are trying to do something that the user is not info need abt

YouTube API Quota - Multiple accounts

Version 3 of the YouTube Data API has concrete quota numbers listed in the Google API Console where you register for your API Key. You can use 30,000 units/second/user and 1,000,000 per day. Projects that had enabled the YouTube Data API before April 20, 2016, have a default quota of 50M/day.
This means that once we breach this numbers, we'll receive in the header that the rate limits have been exceeded.
My question is, can you create multiple accounts, which will in theory DOUBLE the quota?
Or is it also IP restricted too meaning /user1/ & /user2/ requests won't actually change the quota?
It is my understanding that the quota is PER PROJECT, not per account. You could create 3 projects and each project would have the default quota. Then in your application you could attempt to use all 3 combined in order to post to the API with a higher throughput.

Instagram API Error: Client request limit reached

I am getting this error whenever I try to follow someone on Instagram via API no matter how many follows have been done before:
{"meta":{"error_type":"APIError","code":400,"error_message":"Client request limit reached"}}
My app allows authenticated users to follow interesting people. I know that there is a 5000 call/hour limit per authenticated user, but it fails even with new users.
Do my app is reaching some kind of client level limit?
APIs like follow, unfollow, comment are limited to 350 requests per hour. However sending requests from client side will fix this problem to some extent but it allows the users to see your API token.
In this case it looks like it would be beneficial to get some more data from your users. You could use Google analytics to track the "follow" action
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
This would give you a timestamp and information about user behavior.
Even with an advertised rate of X requests per hour, one user hammering the service with your API key can cause everyone to get throttled. (Not guaranteed, but pretty common practice for companies to keep their services alive)
It might be a good idea to reset your API, its possible (though unlikely) that someone has acquired your key and is using it.