How to import data from BigCommerce into Google Sheets

BigCommerce is a popular commerce solution provider. We can use the BigCommerce API to import data from BigCommerce into Google Sheets. In this tutorial, we’ll show you how to connect the BigCommerce REST API to Google Sheets in 5 steps:

  1. Install the Apipheny add-on
  2. Obtain an access token
  3. Choose a BigCommerce API endpoint
  4. Enter your BigCommerce API request into Apipheny
  5. Run the BigCommerce API request in your Google Sheet

Step 1.) Install and open the Apipheny add-on for Google Sheets

Apipheny is an API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to unlimited API data sources, make unlimited API requests, and more. There is a 30 day free trial included.

1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace: https://apipheny.io/install

2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.

In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.

open apipheny

Tip: you can open a new Google Sheet by entering this URL in your browser: sheet.new

Step 2.) Obtain an access token

After logging into your BigCommerce account, go to your store and in the menu on the left, click Settings, then choose API accounts:

API section
API section

In the API accounts section, click the +Create API account button:

API accounts section
API accounts section

Choose the token type as V2/V3 API token and type in a name for your token:

Create account page
Create account page

Choose the OAuth scopes that you need and then click the Save button:

Create account page
Create account page

Your credentials, including the access token, are displayed on the screen:

BigCommerce API credentials window
BigCommerce API credentials window

⚠️ This is the only time you’ll have access to these credentials, so don’t forget to save them to a safe location, because you’ll need them later!

Step 3.) Choose a BigCommerce API endpoint

In this section, we’ll show you how to browse the BigCommerce API documentation to find the endpoint that retrieves the data that you need from BigCommerce. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 4.

First, open the BigCommerceAPI documentation page: https://developer.bigcommerce.com/docs/97b76565d4269-big-commerce-ap-is-quick-start

The menu on the left contains general information about the BigCommerce API and a list of categorized endpoints:

BigCommerce APIs documentation page
BigCommerce APIs documentation page

If we click the Orders category, its endpoints will be displayed in the main section of the page:

The Orders category
The Orders category

An example endpoint is Changing order status, which updates an order and changes its status:

https://api.bigcommerce.com/stores/STORE_HASH/v2/orders/order_id

If you use this endpoint, make sure to replace {{STORE_HASH}} with your store hash value and {{order_id}} with a real id of an order.

The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (PUT), the cURL command and example requests:

Changing order status endpoint documentation
Changing order status endpoint documentation

All API calls to the BigCommerce API should be made with this base URL: https://api.bigcommerce.com/stores/store_hash/v3/

Step 4.) Enter your BigCommerce API request into Apipheny

Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the Import tab. With the Import tab open, enter these details into the add-on:

Method: At the top of the Apipheny sidebar, select the HTTP method (GET, POST, PUT, etc) required by your API endpoint. For this example, we are using the GET method.

API URL: In Step 3, we explained how you can find the BigCommerce REST API endpoint that you need. Now copy and paste your complete BigCommerce API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).

For this example, we are using the Customers endpoint, which retrieves a list of all customers for a store. This is what the whole URL looks like:

https://api.bigcommerce.com/stores/store_hash/v3/customers

If you use this URL, make sure to replace store_hash with the store hash value of your store. It can be found in the URLs assigned to your store by BigCommerce.

Headers: In the Headers section of Apipheny, add two rows with the following keys and values:

Header 1
Key:
Accept
Value:
application/json

Header 2
Key:
X-Auth-Token
Value:
token

When entering the second header value, make sure to replace token with the value you previously obtained in Step 2.

Here’s what our BigCommerce API request looks like in Apipheny:

BigCommerce API request entered into Apipheny
BigCommerce API request entered into Apipheny

Step 5.) Run the BigCommerce API request in your Google Sheet

Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the BigCommerce API data to be imported into your Google Sheet.

Here’s what our request looked like when completed:

BigCommerce data imported into Google Sheets
BigCommerce data imported into Google Sheets

After successfully calling the BigCommerce API, try calling a different endpoint, or try one of Apipheny’s other features to enhance your API calls.



Crypto API Tutorials:


API Tutorials


API Knowledge

What is an API?

What is an API URL?

What are parameters?

What is an endpoint?

What is an API key/token?

What is basic authentication?

What are headers?

What is a GET request?

What is a POST request?