Google Custom Search API 403 Daily Limit Exceeded - google-api

I am getting the daily limit exceeded error message 403 when trying to access google custom search engine API. Based on the official documentation: https://developers.google.com/custom-search/json-api/v1/overview I get 10k queries per day. And I am pretty certain that I have queried below 2k today. I have enabled billing and have entered credit card information (My account also has a ).
I have two questions:
Where can I see the number of queries for a particular API that I have performed for a selected day on Google Developer Console?
What can be the reason behind daily limit error?
I have seen other similar questions and I am posting this because none of them seem to resolve my issue.

I found the solution:
On Google Developer Console, Navigate to:
APIs & Auth --> APIs --> YourAPI --> Quotas. Google by default enters a limit which might not be the maximum allowable limit. However, you can change that in this menu and your App will get the new limits.
Also, you can see the daily usage for a API here: APIs & Auth --> APIs --> YourAPI --> Usage

Related

Quotas View: Queries Per Day Graph Not Showing Any Data

For over one week now the graph over the amount of quota points used per day by my application has only shown "No data is available for the selected time frame" (30 days) on this page: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas. I also found the same view in the cloud console, it does not load there either: https://console.cloud.google.com/apis/api/youtube.googleapis.com/quotas. The "Queries per minute (3 hr average)" graph on the same page is working and shows data, as well as multiple other view in both the developer and cloud console. (two of them is /iam-admin/quotas and /apis/api/youtube.googleapis.com/metrics)
More proofs that there is data to show for this last week is that I received feedback from users about the quota limit has been reached and I tried generating some traffic my self and even caught the quota limit exceeded exception while debugging two days ago.
I tried using different browsers and from different devices but I get the same result on all of them. How can I access the quota usage per day over the last month?
This is not exactly an answer, since I agree that this is a bug which Google needs to address. It's just something of a workaround to get some data about what's being used.
You can see quota use data for the current day and 7-day peak data by using the Quotas page of the IAM & Admin section on the Google Cloud Platform console. It does not appear to offer any kind of historical data view, however.
Get to the Cloud Platform Console and select the Project you want to get data for.
Open the Navigation menu (≡ symbol on the top left).
Select IAM & Admin > Quotas
If necessary for your Project, use the Filter table field at the top to restrict to entries related to the YouTube Data API V3.
Note: You can also reach this from the APIs & Services > Quotas page, using the link in the information notice at the top.

Change the "queries per second per user" allowed for Google Analytics API

I'm getting an error 403 userRateLimitExceeded when trying to use my Google Analytics API to fetch data for more than one site at a time.
The documentation tells me to set QPS (queries per second) to 10 in the developer console. I can't find this setting anywhere.
How can I set the QPS for my Google Analytics API to 10?
In the Google developer console go to the API manager over view. click the quota tab and then the little pencil thing.
default is one request a second. you can set it up to 10
Tip: if you are still having issues look into sending quotauser you can trick it a little by sending a random number with each request.

How can I read current Google Analytics API limits or used quota

We have a widget which filters analytics referrer spam in Google Analytics by adding 30+ filters to each property-view.
Google Analytics API has a limit of 500 write operation per day, which sucks, because our widget is used a lot and we need around 35 writes per property-view.
I'm looking for a way to read the current API limit so I can notify users when the limit is reached, because right now I'm showing a message when I get an error message from Google - after the request. Which is annoying.
Google Dev. Console contains the usage per API call and what would be enough for me to know when we reached the limit.
My question: Is there an API which can read out this data for the past 24 hours?

Unable to increase API quotas after upgrading account to paid

We updated our API account from free to paid, but it is not letting us increase the quota. My understanding is there should be an option if I go to
APIs & auth --> APIs --> select API --> Quota, but there is not.
Can anyone assist?
It is not possible to extend the quota on all of the Google APIs unfortunately Geocoding API is one of the APIs that you can't extend the quota on.
From the documentation Geocoding API
Usage Limits
The Google Geocoding API has the following limits in place:
Users of the free API:
* 2500 requests per 24 hour period.
* 5 requests per second.
Google Maps API for Work customers:
*100 000 requests per 24 hour period.
* 10 requests per second.
update:
New pricing changes went into effect on July 16, 2018. For more information, check out the Guide for Existing Users
please note that while billing can now be enabled so of the quote limits ate still not going to be extendable. these being mainly the flood protection quota's
so in OVERVIEW there is option Explore this API. click on that it will redirect you to the API console page. there you can change the limit for your api.

Get Google Calendar API Limit

Is there any way to get the requests quota of Google Calendar API by calling some API method in code?
I know that I can see the total and remaining requests count on the project dashboard. But, I want to fetch it in my application and display it to admin user on a web page for convenience so that he doesn't need to sign in to Google to view the quota.
Thanks
No there is no way to see how much of the Quota you have used on any of the Google APIs. I normally keep a running count of requests for display to the user. But there is no way to check what the over all quota usage is for the application.
I have done send feed back from the Developer console several times asking them to add an API. There are cloud monitoring APIs but nothing for monitoring quota usage.

Resources