Magento is a popular e-commerce platform that lets you set up online stores for your business easily. Often, you may need to analyze the e-commerce data from Magento along with your offline sales data or online marketing data. For such analysis, data from all these sources need to be in a single data warehouse or database.

You may need to transfer your data from Magento to a data warehouse such as BigQuery for easy accessibility and analysis. If you are looking for simple ways to do this, read on to learn two methods to move data from Magento to BigQuery warehouse. This will not only help you analyze your e-commerce strategies but also dynamically optimize them going forward.

2 Methods to Move Data from Magento to BigQuery

Method 1: Migrating data from Magento to BigQuery using Hevo

Hevo is the only real-time ELT No-code Data Pipeline platform that cost-effectively automates data pipelines that are flexible to your needs. With integration with 150+ Data Sources (40+ free sources), we help you not only export data from sources & load data to the destinations but also transform & enrich your data, & make it analysis-ready.

Get Started with Hevo for Free

Hevo Data can help you to connect Magento to BigQuery in two simple steps:

Step 1: Configure your Source

Connect Hevo Data with your chosen data source, Magento. You need to specify a few settings to configure this: the pipeline name, database host, name, port, user, password, and name.

Magento to BigQuery

Learn more about configuring Magento here.

Step 2: Select your Destination

Load data from Magento to BigQuery by providing your details such as your Destination name and authorized BigQuery account, along with a project ID.

Magento to BigQuery

Read more on configuring BigQuery here.

Yes! It is that simple. Now, sit back and watch your data move from Magento to BigQuery.

Check Out What Makes Hevo Amazing:

  • Secure: Hevo has a fault-tolerant architecture that ensures that the data is handled in a secure, consistent manner with zero data loss.
  • Schema Management: Hevo takes away the tedious task of schema management & automatically detects schema of incoming data and maps it to the destination schema.
  • Incremental Data Load: Hevo allows the transfer of data that has been modified in real-time. This ensures efficient utilization of bandwidth on both ends.

Method 2: Manually migrating data from Magento to BigQuery using Magento API and Google Cloud Console

This method entails developing an automated script that interacts with the Magento API to retrieve records within Magento so that you can manually load them to Redshift.

Magento’s Web API uses both REST (REpresentational State Transfer) and SOAP (Simple Object Access Protocol) protocols. In this article, we’ll be using the REST framework.

To get more familiar with Magento’s API endpoints, you can run tests on them using GUI tools such as Postman or command-line tools like CURL. This will allow you to become familiar with the JSON objects that the endpoints return when you interact with them. 


You should have the following in place before starting to load data from Magento to BigQuery:

  1. An active Magento account
  2. A set up BigQuery cloud warehouse
  3. Basic understanding of REST APIs

You can then move data from Magento to BigQuery in the following three steps:

1. Authorizing access to Magento API

Magento’s API uses several authentication methods:

  • OAuth authentication
  • Mobile token authorization
  • User login credentials

You have to make sure that when you are writing your script, you should choose and include one of these authorization processes or the script will not work. If you require guidance on the authorization process, then you can take a look at the section on Authentication in the Magento DevDocs.

2. Extracting data from Magento

The following steps detail how you can extract order data from Magento API using GET command.

The GET command pulls data from particular Magento endpoints. We’ll be looking at calls to the /V1/orders endpoint in this article.

GET <host>/rest/<store_code>/V1/orders/

It is also possible to specify that you would like only top-level objects to be returned. The following call will return the requested objects and their fields:


This call will return the following (example) JSON object:

"customer_firstname": "Vernon"
"customer_lastname": "DaCosta"
"billing_address": {
  "address_type": "billing"
  "city": "Los Angeles"
  "country_id": "US"
  "customer_address_id": 1
  "email": ""
  "entity_id": 4
  "firstname": "Vernon"
  "lastname": "DaCosta"
  "parent_id": 2
  "postcode": "49628-7978"
  "region": "California"
  "region_code": "CA"
  "region_id": 33
  "street": "6146 Honey Bluff Parkway"
  "telephone": "(555) 229-3326"

The script should store the returned data on a local machine. Once this is complete, you can begin loading the data to BigQuery.

3. Loading the data to BigQuery using Google Cloud Console

The following steps will take you through the process of loading the extracted data from Magento to BigQuery using Google Cloud Console.

  1. Go to the Google Cloud Console.
  2. Open the BigQuery web UI.
  3. In the Resources section, open your project and select a dataset.
  4. In the Details panel, click Create table.
  5. On the Create table page, under Source:
    • Under Create table from, click Upload.
    • Under Select file, click Browse.
    • Browse to the file, and click Open.
      Note: Wildcards and comma-separated lists are not supported.
    • Under File format, select JSON (newline delimited).
  6. On the Create table page, under Destination:
    • For Dataset name, choose a dataset.
    • In the Table name field, enter a name for your table.
      Note: Make sure that Table type is set to Native table.
  7. Under Schema, enter the schema definition.
    • Since you’re uploading JSON files, you can check the Auto-detect option.

Your data is now successfully migrated from Magento to BigQuery gives you the ability to and you may now run queries on this data.

Why move data from Magento to BigQuery?

There are three main reasons why moving your data from Magento to BigQuery would be a good idea.

  1. Moving data from Magento to BigQuery gives you the ability to run complex queries with improved performance and better response times.
  2. The possibility to combine data from your online store with relevant data from other sources. These extra dimensions of data will help you derive enterprise-wide cross-functional insights when you move your data from Magento to BigQuery. 
  3. Moving data from Magento to BigQuery gives you the ability to integrate more advanced data visualization tools to aid in data analysis.

Read more about Magento integration with these essentials:

Before wrapping up, let’s cover some basics.

What is Magento?

Magento is an open-source e-commerce platform that is the solution of choice for more than 100,000 online stores. Having been downloaded more than 2.5 million times, it is one of the most popular e-commerce solutions currently available, accounting for roughly 30% of the total market share. Being open-source and built on the Zend framework, Magento’s source code is available under OSL (Open Software License) v3.0. The first general availability release of the software was made available on March 31st, 2008, but Magento 2.0 was released on November 17, 2015, with a number of improvements and in two versions – Magento Open Source and Magento Commerce.

What is BigQuery?

BigQuery is Google’s cloud data warehouse. It provides up to a Petabyte-scale of data warehousing and allows users to issue SQL-like queries on the stored data. Powered by Google’s Dremel engine and its vast server farms, BigQuery can perform complex queries on vast amounts of data at impressive speeds. BigQuery’s APIs enable users to build custom integrations with other platforms and services, including powerful data visualization tools that aid in business intelligence.


In this Magento to Bigquery migration guide, you have learned how to connect the Magento to BigQuery manually. You also came across the various limitations of connecting Magento to BigQuery manually. So, if you are looking for a fully-automated data pipeline, then try Hevo.

Visit our Website to Explore Hevo

Hevo is a No-code Data Pipeline and has awesome 150+ pre-built integrations that you can choose from. Hevo can help you integrate your data from numerous sources and load them into a destination to analyze real-time data with a BI tool such as Tableau. It will make your life easier and data migration hassle-free. It is user-friendly, reliable, and secure.

Check out the Hevo Pricing details here. Want to take Hevo for a spin? Sign Up for a 14-day free trial and see the difference! Experience the power of Hevo first hand. 

What is your preferred approach to transfer data from Magento to BigQuery? Let us know in the comments below.

Vernon D'Costa
Freelance Technical Content Writer, Hevo Data

With expertise in freelance writing, Vernon specializes in concepts related to data integration and data analysis, offering comprehensive insights for audiences keen on solving problems related to data industry.

No-code Data Pipeline for BigQuery