Follow the below steps to find the product id of any specific product in Shopify –
Log in to your Shopify account.
Navigate to the Products.
Click on the product whose product ID is required.
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.