How Do I Get My Shopify API Key?

In today’s fast-paced digital landscape, it’s becoming increasingly important for online businesses to integrate seamlessly with other apps and services. That’s where the Shopify API comes in. By generating your own unique API key, you can securely connect your Shopify store with third-party apps and services, expanding the capabilities of your online business. 

Don’t worry, we’ve got you covered. We are here to guide you through the steps to generate your Shopify API key. Get ready to unlock new possibilities to take you to the next level!

What Is The Difference Between Public And Private Apps In Shopify?

shopify admin api

In Shopify, two types of apps can be created: public and private. The main difference between the two is their access level to a store’s data and functionality.

Public Apps: Private Apps:
Can be installed and used by anyone with a Shopify store Can only be used by the store owner or someone they authorize
Requires app authorization from the store owner Does not require app authorization from the store owner
Uses OAuth 2.0 for authentication Uses basic authentication or OAuth 2.0 for authentication
Accesses store data via API using the app’s API key and the store’s access token Accesses store data via API using the app’s API key and the store’s password
For discoverability this can be listed in the Shopify App Store  It cannot be listed in the Shopify App Store
A valid SSL certificate requires for app installation For app installation it does not require a valid SSL certificate

However, Public apps are intent for developers who wants to distribute their apps widely. And on the other hand private apps are for those developers who wants to have internal tools for a specific shopify store.

How Do I Get To Shopify Admin Settings?

Accessing your Shopify store’s dashboardHow Do i Get My Shopify Api Key is a simple process that requires only a few steps:

  • Open your web browser and go to
  • Click the “Log in” button in the top right corner of the page.
  • Enter the email address and password associated with your Shopify account, then click the “Log in” button.
  • If you have two-factor authentication enabled for your account, enter the code sent to your device to continue.
  • Once you’ve successfully logged in, you’ll be taken to your Shopify admin dashboard. This is where you can manage your store’s products, orders, customers, and more.

If you have multiple stores associated with your account, you can switch between them by clicking on the store name in the top left corner of the dashboard and selecting the desired store from the drop-down menu.

Generating The Public API Key

product api shopify

Why Should You Keep Your API Key Secure?

It is extremely important to keep your Shopify API key secure and not share it with anyone. The API key provides direct access to your Shopify store’s data, and if Generating a public API key in Shopify involves creating a new app in the Shopify Partner Dashboard and specifying the required API permissions. Here are the general steps to generate a public API key:

  • Log in to your Shopify Partner Dashboard and navigate to the Apps page.
  • Click the “Create app” button to begin creating a new app.
  • Fill out the required information for your app, such as the app name, developer name, and URL.
  • In the “App setup” section, select “Public app” as the app type.
  • Under “Whitelisted redirection URL(s)”, enter the URL(s) where you will be redirecting users after they authenticate with Shopify.
  • In the “Admin API” section, select the permissions that your app requires.
  • Click “Create app” to generate your public API key.

After creating your app, your public API key will be displayed on the app’s overview page in the Shopify Partner Dashboard. You can use this API key to authenticate requests to the Shopify API and access your app’s required data.

 A Private API Key

To generate a private API key in Shopify, you will need to access the App Settings page for your Shopify store and generate a new API key with the appropriate permissions. Here are the general steps to generate a private API key:

  • Log in to your Shopify store’s admin dashboard.
  • Navigate to the Apps section of the dashboard.
  • Click on the “Manage private apps” link at the bottom of the page.
  • Click the “Create a new private app” button to create a new private app.
  • Enter the required information for your private app, including the app name and emergency developer email.
  • In the “Admin API” section, select the permissions that your app requires.
  • Click “Save” to generate your private API key.

It falls into the wrong hands can be used to manipulate, steal, or delete sensitive information from your store.

Pro Tips:

  • Before launching your app, by using the API key, always test your app.  You can ensure a smooth experience for store owners and their customer. This will identify potential issues or conflicts with existing apps or systems.

  • If you want to prevent unauthorized access to sensitive data of your app, then do not share your API key with anyone keep it secret.

Why It Is Important To Keep Your Shopify API Key Secure

generate api key online

Here are some reasons why it is important to keep your Shopify API key secure:

  • Protects your business: Your Shopify store likely contains sensitive information about your customers, orders, and products. If this information falls into the wrong hands, It can be used for fraudulent activities that could harm your business and your customers.
  • Prevents unauthorized access: If someone gains access to your API key, they can use it to make unauthorized requests to the Shopify API, This potentially causes data loss, downtime, or other problems for your store.
  • Compliance with Shopify’s policies: Shopify has strict policies regarding using and protecting API keys. Failure to follow these policies can result in account suspension or termination.
  • Avoid storing your API key in plaintext, in public code repositories, or in unsecured documents. If you suspect your API key has been compromised, immediately generate a new one and revoke the old key’s access.


In conclusion, generating a Shopify API key is a simple yet essential step for developers who want to build applications or integrate services with Shopify stores. Whether you’re creating a public or private app, having an API key is critical to authenticate requests and access store data. Remember, if you ever suspect that your API key has been compromised. It is essential to generate a new key and revoke access to the old one immediately.

Frequently Asked Questions (FAQs)

You May Also Like:

Similar Posts