In this tutorial, I will show you how to Retrieve all products list with Postman using Shopify API. Therefore, follow my examples of simple products, and making a first request will give you an overview of how it can be done.
Step 1 : Generate API credentials from the Shopify admin
1. From your Shopify admin, go to Apps
2. Click Manage private apps
3. Click Create a new private app
4. In the App details section, enter a name for your app, and an emergency developer email
5. In the Admin API section, select the areas of your store that you want the app to access
6. Click Save
As you can see, the API Key and Password are generated automatically in the Admin API section
Step 2: Making your first Shopify API request
You can use the API key and password that you generated for basic HTTP authorization of your first request. The URL format for basic authorization is as follows:
https://{username}{password}@{shop}.myshopify.com/admin/api/{api-version}/{resource}.json
- {username} — The API key that you generated
- {password} — The API password
- {shop}Â – The name that you entered for your development store
- {api-version} — The supported API version you want to use
- {resource} — A resource endpoint from the REST admin API
For example: You want to retrieve all products, showing only some attributes in your Shopify store. By using GET /admin/api/2020-10/products.json?fields=id,images,title. We will use this URL in the next step.
Step 3: Sending requests to Shopify with Postman
Postman is a collaboration platform for API development. Postman’s features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.
In Postman, you need to create a tab to make a request to the Shopify API. You can use multiple tabs to create multiple API requests.
To create an authorized request:
- ClickÂ
+
 to create a new tab - Click Authorization
- From the Type drop-down menu, select Basic auth
- In the Username and Password fields, enter your store’s private API key and password respectively
After you’ve authenticated your request, you need to specify the applicable HTTP method and API endpoint URL before you can send it. For example, you can use Postman to retrieve your store information:
1. From the request method drop-down menu, select GET
2. Enter the store API endpoint, where <@store_url> is the domain of your store. We will use the URL created in the example above
https://552ab3566e68293808f1a4f1b54940f3:[email protected]/admin/api/2020-10/products.json?fields=id,images,title
3. Click Send
As you can see, all product information such as images and other attributes are displayed in the Body section.
Response:
"products": [{
"id": 4356022435903,
"title": "Acer Laptop Computer 2019",
"images": [{
"id": 13464248582207,
"product_id": 4356022435903,
"position": 1,
"created_at": "2019-11-10T01:01:44+09:00",
"updated_at": "2019-11-10T01:01:44+09:00",
"alt": null,
"width": 500,
"height": 500,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/acer-laptop-computer-500x500.jpg?v=1573315304",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464248582207"
}]
}, {
"id": 4356050649151,
"title": "Alum Telescoping Flag Pole",
"images": [{
"id": 13464422416447,
"product_id": 4356050649151,
"position": 1,
"created_at": "2019-11-10T01:25:34+09:00",
"updated_at": "2019-11-10T01:25:34+09:00",
"alt": null,
"width": 300,
"height": 300,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/s-l300.jpg?v=1573316734",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464422416447"
}]
}, {
"id": 4356058677311,
"title": "Arai Black Helmet",
"images": [{
"id": 13464470028351,
"product_id": 4356058677311,
"position": 1,
"created_at": "2019-11-10T01:32:09+09:00",
"updated_at": "2019-11-10T01:32:09+09:00",
"alt": null,
"width": 224,
"height": 224,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng_5.jpg?v=1573317129",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464470028351"
}]
}, {
"id": 4825048547391,
"title": "Burton Custom Freestyle 151",
"images": []
}, {
"id": 4356042326079,
"title": "Caravan Canopy Recliner",
"images": [{
"id": 13464379293759,
"product_id": 4356042326079,
"position": 1,
"created_at": "2019-11-10T01:20:19+09:00",
"updated_at": "2019-11-10T01:20:19+09:00",
"alt": null,
"width": 225,
"height": 225,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng_2.jpg?v=1573316419",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464379293759"
}]
}, {
"id": 4356051664959,
"title": "Char-Broil Classic 480",
"images": [{
"id": 13464429756479,
"product_id": 4356051664959,
"position": 1,
"created_at": "2019-11-10T01:28:15+09:00",
"updated_at": "2019-11-10T01:28:15+09:00",
"alt": null,
"width": 225,
"height": 225,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng_3.jpg?v=1573316895",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464429756479"
}]
}, {
"id": 4356047175743,
"title": "Davinci Jayden Convertible Crib",
"images": [{
"id": 13464400724031,
"product_id": 4356047175743,
"position": 1,
"created_at": "2019-11-10T01:21:27+09:00",
"updated_at": "2019-11-10T01:21:27+09:00",
"alt": null,
"width": 355,
"height": 237,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/81lTcS2gHNL._SX355.jpg?v=1573316487",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464400724031"
}]
}, {
"id": 4356041867327,
"title": "Eddy Insulated Bottle .5L",
"images": [{
"id": 13464375296063,
"product_id": 4356041867327,
"position": 1,
"created_at": "2019-11-10T01:19:25+09:00",
"updated_at": "2019-11-10T01:19:25+09:00",
"alt": null,
"width": 400,
"height": 400,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/626121837.g_400-w_g.jpg?v=1573316365",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464375296063"
}]
}, {
"id": 4356041048127,
"title": "Gaiam Body Balance Ball Kit",
"images": [{
"id": 13464370348095,
"product_id": 4356041048127,
"position": 1,
"created_at": "2019-11-10T01:18:03+09:00",
"updated_at": "2019-11-10T01:18:03+09:00",
"alt": null,
"width": 225,
"height": 225,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng_1.jpg?v=1573316283",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464370348095"
}]
}, {
"id": 4356040327231,
"title": "Grac Pack N Play with Newborn Napperstation",
"images": [{
"id": 13464364154943,
"product_id": 4356040327231,
"position": 1,
"created_at": "2019-11-10T01:16:36+09:00",
"updated_at": "2019-11-10T01:16:36+09:00",
"alt": null,
"width": 500,
"height": 409,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/41PYWWe2r8L.jpg?v=1573316196",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464364154943"
}]
}, {
"id": 4356049567807,
"title": "Graco Stylus Classic Travel System",
"images": [{
"id": 13464415993919,
"product_id": 4356049567807,
"position": 1,
"created_at": "2019-11-10T01:23:12+09:00",
"updated_at": "2019-11-10T01:23:12+09:00",
"alt": null,
"width": 355,
"height": 320,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/51lFps_TE5L._SX355.jpg?v=1573316592",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464415993919"
}]
}, {
"id": 4356039245887,
"title": "Harvil 4 Foot Air Hockey Table",
"images": [{
"id": 13464356651071,
"product_id": 4356039245887,
"position": 1,
"created_at": "2019-11-10T01:14:04+09:00",
"updated_at": "2019-11-10T01:14:04+09:00",
"alt": null,
"width": 1024,
"height": 1024,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/Harvil-4-Foot-Air-Hockey-Game-Table-for-Kids-1024x1024.jpg?v=1573316044",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464356651071"
}]
}, {
"id": 4356027088959,
"title": "Injection molding machine - serial numbered",
"images": [{
"id": 13464290656319,
"product_id": 4356027088959,
"position": 1,
"created_at": "2019-11-10T01:09:02+09:00",
"updated_at": "2019-11-10T01:09:02+09:00",
"alt": null,
"width": 500,
"height": 265,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/hydraulic-injection-molding-machine-500x500.jpg?v=1573315742",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464290656319"
}]
}, {
"id": 4356025385023,
"title": "Lego 500 piece set",
"images": [{
"id": 13464277090367,
"product_id": 4356025385023,
"position": 1,
"created_at": "2019-11-10T01:06:17+09:00",
"updated_at": "2019-11-10T01:06:17+09:00",
"alt": null,
"width": 680,
"height": 680,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/imageService.jpg?v=1573315577",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464277090367"
}]
}, {
"id": 4356039901247,
"title": "Little Tikes Bold n Bright Table \u0026 Chairs",
"images": [{
"id": 13464360452159,
"product_id": 4356039901247,
"position": 1,
"created_at": "2019-11-10T01:15:15+09:00",
"updated_at": "2019-11-10T01:15:15+09:00",
"alt": null,
"width": 466,
"height": 466,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/71MuI7UJfWL._SX466.jpg?v=1573316115",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464360452159"
}]
}, {
"id": 4356052156479,
"title": "Mr BBQ 18 PC Stainless Set \u0026 Case - New Generation 2019",
"images": [{
"id": 13464433983551,
"product_id": 4356052156479,
"position": 1,
"created_at": "2019-11-10T01:29:55+09:00",
"updated_at": "2019-11-10T01:29:55+09:00",
"alt": null,
"width": 425,
"height": 425,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/71ajKLhphcL._SX425.jpg?v=1573316995",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464433983551"
}]
}, {
"id": 4356054810687,
"title": "Polar Heart Rate Monitor",
"images": [{
"id": 13464445452351,
"product_id": 4356054810687,
"position": 1,
"created_at": "2019-11-10T01:30:57+09:00",
"updated_at": "2019-11-10T01:30:57+09:00",
"alt": null,
"width": 225,
"height": 225,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng_4.jpg?v=1573317057",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464445452351"
}]
}, {
"id": 4356030136383,
"title": "Poweraid 32 Oz - lot numbered",
"images": [{
"id": 13464307990591,
"product_id": 4356030136383,
"position": 1,
"created_at": "2019-11-10T01:11:00+09:00",
"updated_at": "2019-11-10T01:11:00+09:00",
"alt": null,
"width": 225,
"height": 225,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/t_i_xu_ng.jpg?v=1573315860",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464307990591"
}]
}, {
"id": 4356036329535,
"title": "South Shore Savannah Changing Table",
"images": [{
"id": 13464342396991,
"product_id": 4356036329535,
"position": 1,
"created_at": "2019-11-10T01:12:31+09:00",
"updated_at": "2019-11-10T01:12:31+09:00",
"alt": null,
"width": 466,
"height": 466,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/71b6_0PHoiL._SX466.jpg?v=1573315951",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464342396991"
}]
}, {
"id": 4356051140671,
"title": "Taylor Made Golf Set Right Handed",
"images": [{
"id": 13464425201727,
"product_id": 4356051140671,
"position": 1,
"created_at": "2019-11-10T01:26:50+09:00",
"updated_at": "2019-11-10T01:26:50+09:00",
"alt": null,
"width": 415,
"height": 550,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/814o1evmbHL._SY550.jpg?v=1573316810",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464425201727"
}]
}, {
"id": 4356061560895,
"title": "Telebrand Pocket Hose 50 Feet - New Generation",
"images": [{
"id": 13464489230399,
"product_id": 4356061560895,
"position": 1,
"created_at": "2019-11-10T01:33:08+09:00",
"updated_at": "2019-11-10T01:33:08+09:00",
"alt": null,
"width": 420,
"height": 450,
"src": "https:\/\/cdn.shopify.com\/s\/files\/1\/0253\/2261\/8943\/products\/71XjxPX2IwL._SY450.jpg?v=1573317188",
"variant_ids": [],
"admin_graphql_api_id": "gid:\/\/shopify\/ProductImage\/13464489230399"
}]
}]
}
I have just provided you with three steps on how to Retrieve all products list with Postman in this video below. I hope it would be helpful for you when using the Shopify API. For more information, you can refer to Shopify DevDocs. If you have any questions or new ideas, feel free to leave a comment below.
Related Posts to Shopify APIs
Shopify API 2024 – How to add a note to a draft order using Postman
When a customer wants to buy some goods but hasn’t paid, the owner can create a draft order instead of letting the customer create the
Shopify API 2024 – How to retrieve a list of draft orders using Postman
Today, Beehexa will show you how to retrieve a list of draft orders using Postman with Shopify API. The draft order is a draft version
Shopify API 2024 – How to retrieve a list of all customers using Postman
There are many ways to retrieve a list of all customers. You can export all customers in the Shopify admin. However, this shows you basic
Shopify API 2024 – How to create a new address for a customer using Postman
Today, we will talk about customer addresses and how to create a new address for a customer using Postman in Shopify API. Why should you
Shopify API 2024 – How to create a new draft product using Postman
In this article, we will talk about how to create a new draft product using Postman. Don’t confuse the unpublished product with the draft product.
Shopify API 2024 – How to retrieve a list of events using Postman
Do you know what an event in Shopify API is? It’s so difficult to understand, right? Let’s start from the very beginning. Events are generated