Follow the below steps to find the product id of any specific product in Shopify –
Step 1: Log in to your Shopify account.
Step 2: Navigate to the Products.
Step 3: Click on the product whose product ID is required.
Step 4: Copy the Product ID from the address bar. The ID is the last part of the URL. In the images below, the product id is 4434093211785 and after editing a variant, the variant id of this product is 32199733280905.