{"id":2556,"date":"2024-12-31T20:23:00","date_gmt":"2024-12-31T20:23:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/magento-2-api-get-all-products\/"},"modified":"2025-05-16T09:14:01","modified_gmt":"2025-05-16T03:44:01","slug":"magento-2-api-get-all-products","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/magento-2-api-get-all-products\/","title":{"rendered":"Magento 2 API &#8211; Get All Products"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello, Magento peeps!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my last blog post on&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 API<\/a>, I provided a complete guide to get all&nbsp;categories in Magento 2 store&nbsp;through API. In case you missed it, you can check it out at&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-api-get-all-categories\/\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 API \u2013 Get All Categories<\/a>. This blog post will guide you through the Get All Products API in Magento 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Product attributes are vital for eCommerce websites. In case you are developing a mobile app or any other application for your Magento 2 store, you may require to fetch all the products from the store. Magento 2 provides a Get All Products API, making it easy for the third-party application to fetch product information from the store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This blog post is all about&nbsp;Magento 2 API \u2013 Get All Products&nbsp;and how you can use it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Get All Products Using Magento 2 API?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In order to fetch the list of all products in the Magento 2 store using API, we will be using the GET method. The client needs to make a GET all to&nbsp;<em>store_url\/products&nbsp;<\/em>with the PageSize value in the search criteria. The value of PageSize will define the number of products to be displayed per page. Provided below are more details about the same.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Method:&nbsp;<\/strong>GET<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>URL:&nbsp;<\/strong><em>store_url\/products<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Parameters:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Key:&nbsp;<\/strong><code>searchCriteria[PageSize]<\/code><\/li>\n\n\n\n<li><strong>Value:&nbsp;<\/strong>Enter the pagesize value here.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2022\/05\/Magento-2-API-Get-All-Products-700x396-1.png\" alt=\"Magento 2 API Get All Products 700x396\" class=\"wp-image-50459\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Response:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Magento 2 rest API get all products response and will contain all the products in the store along with their attributes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 get all items API is useful to fetch the list of the available products in the store along with their attributes. You can alter the value of <code>searchCriteria[pageSize]<\/code> parameter to get a specific number of products per page as per your requirements. I hope this blog will guide you to get all products using Magento 2 API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In case you still have any doubts or queries, feel free to comment. I would be happy to help you!  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, do not forget to share this guide with your Magento friends via social media.  Thanks for reading.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-nowrap is-layout-flex wp-container-core-buttons-is-layout-21295d6f wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button btn-orange\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/meetanshi.com\/blog\/magento-2-api-get-all-categories\/\">Magento 2 API \u2013 Get All Categories<\/a><\/div>\n\n\n\n<div class=\"wp-block-button btn-orange\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/meetanshi.com\/blog\/magento-2-api-get-product-by-sku\/\">Magento 2 API \u2013 Get Product by SKU<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello, Magento peeps! In my last blog post on&nbsp;Magento 2 API, I provided a complete guide to get all&nbsp;categories in Magento 2 store&nbsp;through API. In&#8230;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2556","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=2556"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2556\/revisions"}],"predecessor-version":[{"id":13564,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/2556\/revisions\/13564"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=2556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=2556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=2556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}