Skip to content
  • Why WPGetAPI?
  • Examples
  • Pricing
    • PRO Plugin
    • API to Posts Plugin
    • OAuth 2.0 Plugin
  • Plugins
    • PRO Plugin
    • API to Posts Plugin
    • OAuth 2.0 Plugin
  • Docs
  • Support
    • Frequently Asked Questions
    • Feature Request
    • Support Ticket
  • account_circle
PRO Plugin
Howdy! How can we help you?
  • Introduction

    • Quick Start
    • Frequently Asked Questions
    • Will this work with my API?
    • Understanding API docs
    • Step by Step Example
  • Setup

    • Setup Page
    • Endpoint Page
    • Parameters - Query String
    • Parameters - Headers
    • Parameters - Body POST
    • Shortcode
    • Template Tag
    • Gutenberg Block
  • Connecting your API

    • API Key in Headers
    • API Key in Query String
    • Authentication & Authorization
  • Output API Data

    • Format API to HTML
    • Format API to HTML Table
    • Format API to Image Gallery
    • Format JSON Data
  • Integrations

    • Send form data to API
    • WPForms to API
    • Gravity Forms to API
    • Contact Form 7 to API
    • WooCommerce to API
    • WooCommerce API Product Sync
    • wpDataTables to API
    • Connect WordPress to OpenAI
    • Connect RapidAPI to WordPress
    • Connect Zoho CRM to WordPress
    • Page Builders (Elementor, DIVI)
    • Formidable Forms to API
    • Elementor Form to API
    • JetFormBuilder to API
    • Fluent Forms to API
    • WS Form to API
    • Ninja Tables to API
    • Easy Digital Downloads(EDD) API Product Sync
    • Ultimate Member Forms to API
    • Ninja Forms to API
    • WordPress API Posts Sync
    • Shopify to WooCommerce product import
  • Tips & Tricks

    • Filters & Action Hooks
    • Code Snippets Plugin
    • Troubleshooting
    • Code Snippets
  • PRO Plugin

    • Installation
    • Actions
    • Tokens
    • Caching
    • Nested data
    • Chaining API calls
    • Dynamic Variables
    • Format API to HTML
    • Call API on user registration
    • Using AJAX to trigger API call
    • Base64 Encoding
    • Licensing
    • Filters & Action Hooks
  • OAuth 2.0 Plugin

    • Installation
    • How it works
    • Grant Type - Client Credentials
    • Grant Type - Authorization Code
    • Licensing
  • API to Posts Plugin

    • Installation
    • Getting Started
    • Multiple Endpoints
    • Mapping Fields
    • Filters & Action Hooks
    • Pagination
This uses the OAuth 2.0 Authorization plugin to connect to Shopify and the API to Posts plugin to sync products from an API to WooCommerce products.

In this article, we will look at how easy it is to sync Shopify products to WooCommerce products.

Before you begin

This method supports syncing WooCommerce Simple products only.

Requirements

  • A Shopify Partners account
  • Shopify Store account
  • Free WPGetAPI plugin
  • WooCommerce plugin
  • Premium plugins – API to Posts plugin & OAuth 2.0 plugin

Getting Started

We will connect to the Shopify API to retrieve product data.

  • The docs for setting up the Shopify OAuth 2.0 authorization is here.
  • The docs for the Shopify product endpoint can be found here.

Step 1 – Register an application

The first step in any OAuth 2.0 authorization process is to register an app, which may also be referred to as registering a client.

Here is a link to the Shopify Partners account, where you will be asked to log in or register. Once logged in, click on Apps, then click on the Create app button.

shopify create new app

Next, click on the Create app manually button, enter the App name, and click the Create button.

shopify app name

After clicking Create, you will receive the Client ID and Client Secret, which will be used in the next step.

shopify app overview

Navigate to the Configuration section and enter the Redirect URL, which should be: https://YOURWEBSITE/wp-admin/admin.php?page=wpgetapi_oauth – Replace YOURWEBSITE with your actual website URL.

shopify app redirect urls


Step 2 – Configure settings in WPGetAPI

We now need to add our app details and some Shopify API details to the OAuth 2.0 settings page within the WordPress admin. The page looks similar to the image below.

WPGetAPI auth setup for shopify

The fields are:

  • Client ID – Client ID from our app.
  • Client Secret – Client Secret from our app.
  • Auth URL – For Shopify, Auth URL is https://{shop}.myshopify.com/admin/oauth/authorize. {shop} is a name of the user’s shop.
  • Access Token URL – Access Token URL is https://{shop}.myshopify.com/admin/oauth/access_token.
  • Client Authentication – Shopify will send data in body.
  • Scope – We just want to be get products data, So it will be ‘read_products‘. You can get more scope details here.

Once our details are saved, the Authorize button will become active. Click on the button to be redirected to Shopify, where you will need to log in and complete the authorization steps.

shopify auth login

Our app is now authorized, and we can make an API call to the endpoint to retrieve data.

shopify auth token success


Step 3 – Setup API & endpoint

We now need to add the endpoint from which we want to retrieve product data.

This is the Shopify API settings required:
wpgetapi shopify api setup


Step 4 – Setup API to Posts

Navigate to the API to Posts menu in your WordPress sidebar, where you will see the endpoints you have created.

Click on an endpoint to begin the setup.

To create WooCommerce products, follow these simple steps:

  • configure how the API data will be importedwpgetapi-shopify-api-settings
  • select ‘Product’ as the post typewpgetapi shopify post settings
  • run the ‘API Importer’wpgetapi shopify API importer
  • map the API data to the product fieldswpgetapi shopify data mappingwpgetapi shopify data mapping 2
  • run the ‘Post Creator’wpgetapi shopify post creator

That’s it, you will now have WooCommerce products created from API data. You can map API data to custom fields and all standard WooCommerce fields, meaning it is a breeze to set the price, SKU, categories, tags, featured image, gallery images, dimensions, weight and more.


Sync API to WooCommerce products

We’ve manually ran the ‘Post Creator’ which creates the products initially. Within the settings there is an option to run the syncing process in the background at your chosen interval, which keeps your WooCommerce products in sync with the API.

Simply set the interval such as 5 Minutes up to Once Weekly and the whole import and product creation process will run at that interval in the background, keeping your products perfectly synced. This is perfect for keeping stock levels and pricing up to date.

wpgetapi product sync interval


Going further

Check out the full tutorial with a step-by-step guide here. This article runs through the exact process of creating WooCommerce products from an Shopify API.

On this page
contact_support

Still not sure?

APIs can be daunting and sometimes downright confusing.

But we are here to help! Our support is amazing and we can assist you with any setup required and ensure your API integrations are a success!

Ask Us Anything

Connect your WordPress website to external APIs without writing a single line of code. Send data from WordPress to your API or display data from your API within WordPress.

Support

  • Documentation
  • Support Ticket
  • Refund Policy
  • Contact Us
  • About Us
  • Affiliates

Articles

  • Quick Start Guide
  • WooCommerce Orders to API
  • WooCommerce API Products Sync
  • Contact Form 7 to API
  • WPForms to API
  • Gravity Forms to API
  • WordPress to RapidAPI

WordPress API Plugins

  • Free WPGetAPI Plugin
  • PRO Plugin
  • API to Posts Plugin Plugin
  • OAuth 2.0 Authorization Plugin

© 2026 WPGetAPI. All Rights Reserved.

"*" indicates required fields

Name*
This field is for validation purposes and should be left unchanged.