8

Is there a way to fetch information for multiple ids in a single GA Reporting API query? See here for reference to the tool I am using: http://ga-dev-tools.appspot.com/explorer/

1
  • The R language and the RGoogleAnalytics package might help you with that. Here is an example of querying multiple GA Views at once using a for loop in R. analyticsforfun.com/2015/05/… Commented May 28, 2016 at 14:32

1 Answer 1

12

Tthe Google Analtyics core Reporting API is a little confusing. Core Reporting API - Reference Guide - Ids calls the Query Parameter ids but it is in fact singular. You can only send one id at a time.

Anwser: There is no way to send more then one view (profile_id) to the Core reporting api as a single request. You will need to loop over your request and send it multiple times.

Example:

https://www.googleapis.com/analytics/v3/data/ga?ids=ga:34896749&dimensions=ga:date&metrics=ga:entrances&start-date=2014-05-12&end-date=2014-05-22&oauth_token={OauthToken}
https://www.googleapis.com/analytics/v3/data/ga?ids=ga:34896744&dimensions=ga:date&metrics=ga:entrances&start-date=2014-05-12&end-date=2014-05-22&oauth_token={OauthToken}
Sign up to request clarification or add additional context in comments.

3 Comments

Thank you very much. It's unfortunate. I will need to make multiple requests in a loop then.
Is there a limit for number of api calls per day?
10000 per profile per day. Default is 50000 calls per project client id per day

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.