How to import data from Printify into Google Sheets

Printify simplifies and automates the process of sourcing and creating print on demand products. We can use the Printify API to import data from Printify into Google Sheets. In this tutorial, we’ll show you how to connect the Printify REST API to Google Sheets in 5 steps:

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

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

Apipheny is a free API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to API data sources, easily.

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.) Generate an access token

After logging into your Printify account, click your user icon and then choose Connections:

Printify dashboard
Printify dashboard

Then click the Generate button to obtain an access token:

Connections section
Connections page

In the popup window, type the name of your token, choose the scopes, and then click the Generate token button:

Generate a new token popup
Generate a new token popup

Your token will be generated:

Token window
Token window

Click the Copy to clipboard button and paste your token in a safe location, because you’ll need it later. ⚠️ This is the only time that you will see the token, so don’t forget to copy it and paste it somewhere safe! ⚠️

Copy to clipboard section
Copy to clipboard button

Step 3.) Choose a Printify endpoint

In this section, we’ll show you how to browse the Printify API documentation to find an endpoint that retrieves the data you need from your Printify account. 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 Printify API documentation page: https://developers.printify.com/#overview

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

Printify API documentation page
Printify API documentation page

If we click the Products category, a list of its endpoints will be displayed:

Products category
Products category

An example endpoint is Retrieve a list of products, which gets a list of products from a shop:

https://api.printify.com/v1/shops/shop_id/products.json

If you use this URL, don’t forget to replace shop_id with a real shop ID!

The endpoint’s documentation contains a short description of the endpoint’s purpose, its HTTP method (GET), the URI, the path parameters, the query parameters, the cURL command and example responses:

Retrieve a list of products endpoint
Retrieve a list of products endpoint

All API calls to the Printify API should be made to the base URL: https://api.printify.com/v1/

Step 4.) Enter your Printify 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 Printify API endpoint that you need. Now copy and paste your complete Printify 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 Retrieve list of shops in a Printify account endpoint, which gets a list of shops in a Printify account. This is what the whole URL looks like:

https://api.printify.com/v1/shops.json

Headers: In the Headers section of Apipheny, add one row with the following key and value:

Key:
Authorization

Value:
Bearer your_token

In the header value make sure to replace your_token with the value of the API key you obtained previously, in Step 2. There should be a literal space between the word Bearer and your_token.

Printify API request entered into Apipheny
Printify API request entered into Apipheny

Step 5.) Run the Printify 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 Printify API data to be imported into your Google Sheet.

Here’s what our request looked like when completed:

Printify data imported into Google Sheets
Printify data imported into Google Sheets


Crypto API Tutorials:


Popular 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?