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:
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.
Tip: you can open a new Google Sheet by entering this URL in your browser:
After logging into your Printify account, click your user icon and then choose Connections:
Then click the Generate button to obtain an access token:
In the popup window, type the name of your token, choose the scopes, and then click the Generate token button:
Your token will be generated:
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! ⚠️
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:
If we click the Products category, a list of its endpoints will be displayed:
An example endpoint is Retrieve a list of products, which gets a list of products from a shop:
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:
All API calls to the Printify API should be made to the base URL:
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:
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.
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:
Schedule requests for automatic updates
Reference cell values in requests
Stack multiple URLs in a single request
Run all saved requests at once
Crypto API tutorials and more:
Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool
Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website