Knowledge base
Guides
Academy
Video tutorials
Try searching for:
Recently viewed articles:

Table of contents

Getting the ID of your product or category

Each product and category in your Ecwid store has its own unique identifier (or ID). You can see these identifiers as part of the product/category web address. IDs can be used to create CSS codes for certain store pages or to add a specific store category to a website.

In this article, we explain how you can find the ID of a product or product category.

Getting ID for a product

There are several ways to get the ID of a product. First, you can copy IDs for individual products from your Ecwid admin or from the storefront. Second, you can export IDs for several products in bulk.

To get the ID of an individual product:

  1. From your Ecwid admin, go to Catalog → Products.
  2. Open the product.
  3. Copy the ID from the browser address bar. You will see numbers that go after “id=” — that’s the ID of your product (“239904127” in our example):

    Getting_the_ID_of_your_product_or_category__5_.png

If you need to get IDs of hidden products that do not display in the storefront, you can do that only in your Ecwid admin.

In case you want to get the IDs of several products in bulk, you can export products with their IDs to a CSV file.

To get the IDs of several products:

  1. From your Ecwid admin, go to Catalog → Products.
  2. Tick the products for which you want to get the IDs and click Import or Export products → Export Selected. You can also click Import or Export products → Export All if you need to export all your product IDs.
  3. In the export dialog, select product name or SKU and Product ID for columns:

    Getting_the_ID_of_your_product_or_category__1_.png

    You can also select other columns if you want.
  4. Click Download CSV file.

The CSV file will contain a list of IDs for your products. You can open this file in any text editor like Notepad or TextEdit or in a spreadsheet editor like Excel or Google Sheets.

Getting ID for a category

There are two ways to get the ID of a specific product category. First, you can copy it from your Ecwid admin. Second, you can copy it from the storefront.

The ID of the Store front page category (the one with featured products) is always “0”.

To get the category ID:

  1. From your Ecwid admin, go to Catalog → Categories.
  2. Open the category for which you need to get the ID.
  3. Copy the ID from the browser address bar. You will see numbers that go after “id=” — that’s the ID of your product category (“120581513” in our example):

    Getting_the_ID_of_your_product_or_category__4_.png

If you need to get IDs of hidden categories that do not display in the storefront, you can do that in your Ecwid admin or temporarily make your category visible.
Was this article helpful?

Awesome! Thanks for your feedback!

Thanks for your feedback!

Sorry about that! What went wrong?
3 out of 4 found this helpful
10
We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.
Accept cookies Decline