Access shopify store data via storefront API

I want to access my client’s shopify store data via storefront API for that which application should I create?

  1. Public app
  2. Private app
  3. Collaborator app
    I have created shopify account on shopify partners website https://partners.shopify.com/ Now I want store details of my client eg: product, order details etc via storefront API.

So my client has already created a private application and he has generated access token for storefront API but instead of him doing all this stuff can I do this myself via partner account? What do I need to do for this? My goal is to get shopify store data via storefront API’s. Please suggest what do I need to do any pointers would be helpful. Thanks in advance.

Hi @aditodkar

Sincerely hope you’re having a great day!

which application should I create?

Public apps
Public apps are meant for developers who want to distribute their apps to many merchants. There are two types of public apps, listed and unlisted.

Custom apps
Custom apps are meant for developers building an app tailored for a single merchant.

Private apps
Private apps are meant for developers building an app for a merchant with specific requirements not met by custom apps.

Draft apps
Draft apps are used by Shopify Partners during development, and can only be installed on development stores for testing purposes.

So my client has already created a private application and he has generated access token for storefront API but instead of him doing all this stuff can I do this myself via partner account?

If you don’t want a merchant to generate an access token for API access, you should think about building a custom app.

As specified by Shopify to shop owner:

If you’re working with an external app developer, then you need to give them API access to your store and access to your Shopify admin. If you don’t feel comfortable giving this access to the developer, then consider asking them to build you a custom app.

and:

An external app developer can make a custom app for you without needing API access to your store and access to your Shopify admin. You can install a custom app by clicking an install link provided to you by the app’s developer.

More details here:

f you have any further questions, please do reach out either here on the forum, or via private message/email.

Hi Michal, thanks for detailed answer but my main goal is to access client’s shopify store details via storefront API’s. I have created account on shopify partners https://partners.shopify.com/ but when I go to apps section there I can see only 2 options custom app and public app but when I create any of these applications I don’t see any storefront API access token which I can use to get client’s shopify store details. How can I create application which will generate storefront API access token through which I can access data of multiple shopify stores. Is this possible from shopify partners account?

Hi @aditodkar

You’re welcome. Hope you’re having a great day!

My main goal is to access client’s Shopify store details via storefront API’s

First of all, create a custom app from your partner dashboard. You’ll see something like this:

For Any app that wants access to a shop’s data: A user (merchants) must grant permission before the client can access any data. Custom apps manage authentication with OAuth 2.0.

A custom Shopify app can interact with the Shopify API on behalf of a single store. To authenticate with Shopify by using a custom app, you need to generate an installation link from your Partner Dashboard. The merchant uses the link to go through the OAuth process and install the app on their store.

More details to authenticate your custom app:

If you have any further questions, please do reach out either here on the forum, or via a private message/email.

Hi @Morek

It is really helpful this detailed answer. But I have one question, if I generate the second link, does this will make the first one expire? Which means the first merchant access will stop?

Looking forward to hearing back from you, will really appreciate your answer!

Many thanks,