Browse articles

How to: Find a product's ID and variant IDs

Learn how to find a product ID and variant ID

Last updated

Find a product ID

Finding a product ID is simple. Open the product page in your Shopify Admin. Then copy the last number from the URL. That is the product ID.

Find a variant id for a product with multiple variants

If your product has multiple variants, go to the variant page and extract the variant ID from the URL:

  1. Open the product page in your Shopify admin.

  2. Find the Variants section

  3. Click on the variant you would like to have, e.g. XS

  4. Copy the last number, which follows variants/
    Make sure it’s not the number following products/

Find the variant ID for a product without variants

Even if your product does not have any variants, in reality it always has one variant. Finding it can be a bit tricky though. This is how you do it:

Still stuck?

Chat with us and we'll help you get your cart live. Or email contact@elitecart.app.