Export Firebase data into BigQueryStay organized with collectionsSave and categorize content based on your preferences.
Firebase provides tools in theFirebaseconsole to explore and analyze
historical data about your apps that use Firebase products. These tools can help
you answer many questions about how your apps are being used. Sometimes, though,
you also want to set up your own queries to answer your own questions.
You can do this by exporting data from various Firebase products intoBigQuery. WithBigQuery, you can analyze your data withBigQuerySQL or
export the data to use with your own tools.
The following products support data export toBigQuery:
To view or manage settings for data export toBigQuery, you must have
the required level of access.
If you don't have the necessary Firebase access, you can ask a Firebase
project Owner to assign you the applicable role via theFirebaseconsole IAM settings.
If you have questions about accessing your Firebase project,
including finding or assigning an Owner, review thePermissions and access to Firebase projects FAQs.
Project-level
The following table applies to the top-level linking of a Firebase project toBigQuery.
Action inFirebaseconsole
Required IAM permission
IAM role(s) that include required permissions by default
Follow the on-screen instructions to set up export toBigQuery.
Unlink fromBigQuery
Unlinking fromBigQuerystops the corresponding dataset(s) inBigQueryfrom being populated.
Be aware of the following:
Any data already exported intoBigQuerywill persist for the allowed
retention time, and storage and query charges may still apply. You can
manually delete your dataset(s) to prevent any further billing.
If you haveBigQuerydata stored in other services, that data might
be governed by different terms for data persistence.
You can unlink fromBigQueryat the Firebase project level, at the
product-level, or at the app-level for a specific product.
Here's how to unlink fromBigQuery:
In theFirebaseconsole, go to thesettingsSettings>Integrationstab.
In theBigQuerycard, clickManage.
Choose to unlink a specific product or to unlink specific apps for
a specific product.
To unlink your Firebase project entirely, find the button at the bottom of
the page.
When prompted, confirm that you want to stop exports.
What happens when you enable export?
You select the dataset location. After the dataset is created, the location
can't be changed, but you can copy the dataset to a different location
or manually move (recreate) the dataset in a different location. To learn
more, seeChange the location for existing exports.
This location is only applicable for the data exported intoBigQuery,
and it does not impact the location of data stored for use in theFirebaseconsole.
By default, all apps in your project are linked toBigQueryand
any apps that you later add to the project are automatically linked toBigQuery. You canmanage which apps send data.
Firebase exports a copy of your existing data toBigQuery. The
initial propagation of data for export may take up to 48 hours.
Firebase sets up daily syncs of your data toBigQuery.
After you link your project, you usually need to wait until the next day's
sync for your first set of data to be exported toBigQuery.
The daily sync happens once per day, regardless of any scheduled export
that you might have set up inBigQuery. Note that the timing and
duration of the sync job can change, so we don't recommend scheduling
downstream operations or jobs based on a specific timing of the export.
Change the location for existing exports
After you set up a product for export toBigQueryand create a dataset,
you can't change the location of that dataset. However, you can copy your
existing dataset to a new dataset that has a different location and reset your
data export to that new location. Learn aboutBigQuerydataset locations.
Select the product for which you want to change the location for data
export
If your Firebase project is on the no-cost Spark pricing plan, you can use theBigQuerysandbox,
which provides no-cost access toBigQuery. For information about theBigQuerysandbox and its capabilities, seeUsing theBigQuerysandbox.
If your Firebase project is on the pay-as-you-go Blaze pricing plan, you can use all the
features ofBigQuery. Your use ofBigQueryis subject toBigQuerypricing,
which includes limited no-cost use.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-19 UTC."],[],[]]