0

I am looking for an automated way to pull down the some of the high level usages statistics via an API or persistent csv location with credentials.

You can see that the linked image that firebase provides a 'data-export.csv' file, under the Analytics menu .

Is there a way to do this, either directly from Firebase via an API, or via an integration with Google Analytics (I assume is the backend to firebase analytics), or via say a clever python script? Reason being is we want to share some key info in organisational business intelligence reports.

I have scanned the forums without a clear solution or no its not possible. Any assistance or examples of success (or failure) experiences and approach would be appreciated? Thx

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • There is no public API to get Analytics data from Firebase. The options are to manually export the CSV from the console, or enable BigQuery integration and then get it from there. See https://stackoverflow.com/questions/50355752/firebase-analytics-from-remote-rest-api – Frank van Puffelen Jul 30 '20 at 00:47
  • Thanks Frank - I did find some of those earlier posts but the post dates were old. I see you are an engineer at firebase google - so thats pretty definitive. Much appreciated the quick response. – kadlugan Jul 30 '20 at 04:39
  • Hi @FrankvanPuffelen, since this post is for 7 months ago, I was wondering whether it is possible as of now to access Firebase 'web+App' analytics dashboard or event's data from python (with a Service account key json file)? I really appreciate your help on this one. – Saeid Hedayati Feb 06 '21 at 19:07
  • My answer here shows the API that now allows this: https://stackoverflow.com/a/35097892/209103, which even seems to have a Python SDK: https://developers.google.com/analytics/devguides/reporting/data/v1#python – Frank van Puffelen Feb 06 '21 at 21:02
  • @FrankvanPuffelen sorry for the late response, Thank you. I follow the other thread and I could finally made it work!! – Saeid Hedayati Feb 16 '21 at 22:29
  • Great to hear @SaeidHedayati – Frank van Puffelen Feb 17 '21 at 00:44

0 Answers0