Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quota limit for google analytics API

I am working on an application that access data from the users Google analytic account using Google Analytics API v3 and generated different reports. The application will generate around 30 API calls per day per user using a cron script and update our database.

The problem is the Quota limit of 10,000 requests per profile per day that we have on Core Reporting API. With this limit we can not go beyond 10000/30 ie. 333 users. This is a key factor in deciding the feasibility of a project. I have seen similar application working on the same concept but have a very large user base.

Please help me find a solution for this.

Thanks

like image 907
Prabhanjan Panigrahi Avatar asked Jan 16 '23 16:01

Prabhanjan Panigrahi


2 Answers

Quota policies for Google Analytics APIs

You will need to create more profiles for each account and hit each of them as well. 2 profiles increase your quota to 20,000 and so on as you add profiles. Write the cron job to switch to a different profiles as it approaches the quota or after a certain number of runs.

Alternatively, you could ask Google to increase the quota:

If you think that your application needs additional daily quota, you can request more quota using the "Request more" link in the APIs Console. Please provide a brief explanation of why you need this additional quota. For more details on quota management and how to fine-tune your application for quota usage, see Monitoring, Filtering, and Capping Usage section.

If you need this much access this frequently to analytics data, you may want to consider using a service other than Google Analytics or use Google Analytics Premium passing the cost of $150,000 USD per year on to your customers.

Basic Google Analytics is free and Google is trying to keep people from abusing it and steer heavy users to its premium service. What you're asking is more than GA is willing to offer at no charge.

UPDATE (06Mar2013):

The requests per day can be increased but the requests per profile cannot according to Google's quota increase request form (Thanks @fuzzybee for the clarification):

This form is to request an increase to the requests per project per day limit (default is 50,000 requests/day).

The following quotas cannot be increased: The daily per profile limit (10,000 requests/day), 10 QPS per IP, and 10 concurrent requests per profile.

like image 84
jk. Avatar answered Jan 21 '23 16:01

jk.


I had a similar problem while using the API for displaying my company's analytics data to multiple users. This is how I solved the problem.

Set up the cron task to add data to your database and all your users can query the database to get the latest data. In this way, the users won't be making direct calls to the API. Thus, the number of API calls will be not be dependent on number of users trying to access the data.

like image 28
akshay Avatar answered Jan 21 '23 15:01

akshay