How to Find a Shopify Product ID: Step-by-Step Guide
Product ID
Definition
A product ID is an identifier used to distinguish a product or product record in a catalog, ecommerce platform, or inventory system. Depending on the system, it may be an internal ID or a standardized code such as a GTIN.
Overview
Product ID in Shopify is the internal numeric identifier shown in the admin product URL — you can find it by opening a product in the Shopify admin and reading the number after /admin/products/ in your browser's address bar. For example, when editing a product you'll see a URL like https://example-store.myshopify.com/admin/products/1234567890123; the trailing numeric segment is the Shopify product ID you use when connecting third-party apps or calling the Admin API.
That numeric ID is different from a SKU, a product handle, or a barcode (GTIN). SKUs and barcodes are product identifiers you assign for inventory or marketplace use; the handle is the storefront URL slug. The Shopify product ID is an internal record key used by apps and by Shopify's admin/API to reference the product record.
Where Shopify Displays the Product ID
Open Shopify and sign in to your store's admin, then go to Products → All products and click the product you want to inspect. While the product edit page is open, look at the browser address bar. The URL structure for the admin product editor is:
https://{your-store}.myshopify.com/admin/products/{numeric-product-id}
The numeric segment in that position is the internal Product ID. Use that full number when a third-party app asks for a product ID or when reading REST API responses that include the id field.
Step-By-Step: Copying the Product ID
- Sign in: Log in to your Shopify admin at your-store.myshopify.com/admin.
- Open product: Navigate to Products → All products and click the product name to open the editor.
- Read the URL: In the browser address bar find /admin/products/ followed by a long number — that number is the Product ID.
- Copy it: Select and copy only the numeric portion (no slashes or query parameters) to paste into the app or API field that requires the product ID.
Non-Live Example URL
Use a non-live example like this when documenting integrations or sharing instructions: https://example-store.myshopify.com/admin/products/1234567890123. In that URL, 1234567890123 is the example product ID; replace example-store with your store's myshopify domain when you follow the steps in your own admin.
How Product ID Differs From SKU, Handle, And Barcode
- SKU (Stock Keeping Unit): A merchant-assigned code used for inventory and warehouse tracking; SKUs appear on product variant records but are not the internal Shopify record ID.
- Handle: The human-readable URL slug used on the storefront (for example, example-store.myshopify.com/products/blue-widget); handles are friendly strings, not the numeric admin ID.
- Barcode (GTIN/UPC/EAN): A standardized product identifier used for retail and marketplaces; barcodes are separate product attributes you can store in Shopify fields.
- Product ID: The internal numeric identifier Shopify assigns to the product record; used by apps, the Admin REST API id field, and certain integrations.
Finding Variant IDs Versus Product IDs
Shopify assigns separate numeric IDs to product variants. To find a variant ID from the admin, open the product, then click the specific variant; the admin URL will include /variants/{variant-id} or the variant id appears as a query parameter. Shopify's help page documents finding variant IDs for tasks like custom apps: https://help.shopify.com/en/manual/products/variants/find-variant-id.
When You're Connecting Third-Party Apps
Third-party apps commonly request the product ID so they can read or write product data via the Admin API. If an app asks for an ID, provide the numeric admin product ID from the URL. If the app supports REST calls, it will use that numeric id in endpoints such as /admin/api/2023-10/products/{product_id}.json (API versions vary). If the app uses GraphQL, it might require a GraphQL node ID (a base64-encoded identifier) instead — check the app instructions; documentation on Shopify's handling of IDs and entities is available for developers.
Troubleshooting: I Only See A Storefront URL
If you only see a storefront URL (for example, a public link like /products/blue-widget) instead of an admin URL, you are likely viewing the product on the storefront or using the "View" button in the admin. The storefront URL uses the product handle and is not the internal numeric Product ID. To get the internal ID:
- Use the admin editor: Click Products in the Shopify admin and open the product from the All products list rather than using the public View link.
- Check your permissions: Ensure your Shopify account has staff/admin permissions that allow product editing; limited accounts may not show admin edit pages.
- Avoid the storefront preview: The preview URL is public-facing and uses handles; switch back to the admin edit screen to read the numeric ID in the address bar.
- Apps and embedded UI: Some embedded apps show only the storefront link — use the product editor URL or ask the app vendor if they accept handles or SKUs instead of an admin ID.
Practical Tips And Gotchas
- Copy only numbers: When pasting a Product ID into an integration field, copy just the numeric portion; including slashes or stray characters can cause errors.
- Watch for GraphQL IDs: GraphQL APIs sometimes use encoded node IDs. If an app asks for a GraphQL id, do not supply the numeric admin id — follow the app's instructions to convert or fetch the node id.
- Variant vs product: If the app asks for a variant ID but you give a product ID, the integration will fail — verify whether the app expects product-level or variant-level IDs.
- Multiple stores: Product IDs are unique per store. If you copy an ID from one store, it won't reference the same item in another store.
In short, the Product ID you need is the internal numeric value visible in the Shopify admin product editor URL; use that number (not SKU, handle, or barcode) when configuring apps or using the Admin API, and open the product in the admin rather than viewing the storefront if you only see a public URL.
Sources And Additional Reading (3)
- Find a variant ID
“Find a variant ID.” Shopify Help Center, https://help.shopify.com/en/manual/products/variants/find-variant-id.
- IDs and Entities
“IDs and Entities.” Shopify Developers, https://shopify.dev/apps/api/usage/ids-entities.
- Admin REST API overview
“Admin REST API overview.” Shopify Developers, https://shopify.dev/docs/api/admin-rest.
More from this term
Looking for a 3PL?
Compare warehouses on Racklify and find the right logistics partner for your business.