Google Spreadsheet Api. Limit per user per 100 sec not reached but getting ratelimited - google-sheets

Im trying to work with the google spreadsheet api (V4) which states to have the following limitation.
This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.
Somehow my code gets ratelimited after 21-34 requestes.
I am able to see the send requests to the api in the google api dashboard which shows the same numbers on a 1 to 1 match. Thus, i am sending less than 100 requests and i am still getting rate limited.
The Endpoint which is failing is the v4/spreadsheets/{id} ep. Maybe this has an influence on it as i read that there f.e. was a not documented rate limitation for the creation of calenders via the calender api.
What could be the reason for that?

Related

Using Google Sheets API v4 above the quota

I'm trying to find the pricing for Google Sheets API. The limit is 300 requests/min per project and there's also a per-user limit.
I read you can request a quota increase but I'm willing to pay with some pricing model so there's no cap on the number of requests. Is there any information on that?
You can take an example of sheetdb.io, an app like that will need to send thousands of requests in a minute as it will be used by many users at the same time.
PS: I'm not looking for BigQuery, optimization, DBMS solution. The app is built around Google Sheets.
As per the documentation:
This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
If you don't already have a billing account for your project, then create one.
Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.

Youtube Data API v3 limit reduced to 0

We are using YouTube Data API v3 in our production environment, all of a sudden today the Quota limit went to 0, we are now not able to make any API calls.
Is there any way to get at least the default limit of 1000. We have submitted the form to increase the quota but not sure how long it may take as our current users are not able to use our service.
You did not mention if your application had gone through the verification process yet or not. Assuming it has not you are given a short window of developer of quota to use during the development process. If you have not verified your application in a timely manner. Then your quota will often be removed and set to 0
I have also seen developers whos quota gets set to 0 if they are doing something that was not verified in their original request.
You will need to request additional quota, it can take months in my experience three months to get a quota extension.

YouTube Data API: The request cannot be completed because you have exceeded your quota. Сan I make an app using the YouTube Data API or not?

I got this error:
The request cannot be completed because you have exceeded your quota.
and I can not understand YouTube limits the number of requests? That is, I cannot create my project by taking API from my channel? If this is so, what is the point of YouTube Data API, if at the development stage I was already limited, what will happen when users come in, then my project will fall within 5 minutes?
and I cannot understand how I was able to make 10,000 requests per day, given that I worked on the localhost for about 3 hours, is this possible?
Indeed the Google's Developers Console shows text like Queries per day, but that's very much misleading (and may well be reported as an Web UI bug to Google).
You have to acknowledge that YouTube Data API's quota system is not accounting for the number of endpoints calls you made during a day long, but it accounts for the cumulated number of quota units corresponding to each of your endpoint calls.
For example, if you have 10000 units of quota allocated for daily usage, you may very easily exceed this upper bound after only 100 calls to the Search.list API endpoint.
Many API users find the default amount of quota allocated -- 10000 units -- to be quite constraining -- that even during the development stage of their apps. For tackling this issue, I recommend two things:
Develop your app such that to cache API responses it received from the endpoints it calls; this way, during the development stage of your app (afterwards, even during production, but albeit functioning with a different logic), repeated calls to endpoints would not result in actual API requests, but would get served from the app's local cache.
Apply for a quota extension, using Google's official form; be aware that, as per the experience of users of this forum, Google's answer, usually, does not arrive shortly.

youtube api V3 quota cost? - making an app that allows user to upload to their account

If you set up a OAuth for Youtube within your app that allows users to upload videos, does each video cost towards your 10,000pt quota?
I run a personal uploading bot and it does 3ish uploads per day within the 10,000 point quota but if I was to scale out as an app this wouldn't work since 5 users would max it out.
So if a user approves your app for upload permissions, would this cost toward your clients 10,000pts or is it 10,000 points per user per day?
Also how easy is YouTube's quota expansion form process if it is the former?
https://support.google.com/youtube/contact/yt_api_form?hl=en
By checking the quota calculator you will be able to see what each call costs. The vido.insert call for example costs 1600 quota.
If you check the google developer console and check your quota it might look something like this.
As you can see one of them states "per user" while the other does not.
Queries per day 10,000 is a project based quota. while Queries per minute per user is a user based quota.
It sounds like you should be applying for a quota extension if the 10,000 limit is not enough for your needs.
Also how easy is YouTube's quota expansion form process if it is the former?
Its a long process google says it takes twenty days my experience is three to six months average. You need to be prepared to get a NO. You also need to be prepared to have your quota shut down suddenly because they detect something they identity as spam or a violation. In the event of a shutdown you will need to apply for a new extension. Which again will take time.

simultanious connection of spreadsheet?

I would like to use a spreadsheet to show data to 50000 to 100000 people at a time so Can Any One tell me how many people can download the json file of a spreadsheet at a time.
The Sheets API has a has a default limit of 40,000 queries per day.
You also have
Write/Read requests per 100 seconds 500
Write/Read requests per 100 seconds per user 100
Write/Read requests per day 40,000
As long as you don't exceed those, you'll be fine. However if you go past the limit, you need to create a billing account so you can ask for additional quota.

Resources