Setup guide
How to find a product, variant or collection ID in Shopify
Open the item in your Shopify admin and look at the web address: the long number at the end is its ID. A product is …/products/8148364787773, a variant is …/products/8148364787773/variants/44662410674237, and a collection is …/collections/303590146109. Our tools accept the number or the whole link.
Steps and menu names checked against Shopify’s Help Center and the Shopify admin on 28 November 2026.
Product ID
Open the product. Go to Products and click the product.
Copy the number. The address ends in /products/ and a long number, for example /products/8148364787773. That number is the product ID.
Variant ID
Open the product. Go to Products and click the product.
Open the variant. In the Variants section, click the variant (for example a size or colour).
Copy the number. The address now ends in /variants/ and a number, for example /variants/44662410674237. That last number is the variant ID.
Collection ID
Open Collections. Go to Products › Collections and click the collection.
Copy the number. The address ends in /collections/ and a number, for example /collections/303590146109.
Customer and order IDs
- Customer: open the customer from Customers; the address ends in /customers/ and the ID.
- Order: open the order from Orders; the address ends in /orders/ and the ID. The order number you see, like #1001, is not the ID.
IDs that start with gid://
Shopify’s code uses a longer form, gid://shopify/Product/8148364787773. It is the same number with the type in front. Our tools add or remove that part for you, so paste whichever you have.
Tools that need this
- Free Gift Kit
A Buy X Get Y discount that makes a gift free, plus a removable theme snippet that adds the gift to the cart.
More setup guides
- How to install Shopify’s GraphiQL app and run a query
Install Shopify’s free GraphiQL app once, then open it from Apps, paste the code and press Run.