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:
- From your Ecwid admin, go to Catalog → Products.
- Open the product.
- 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):
- Open your Ecwid storefront.
You can always access your storefront by clicking the View [your store name] link in the top right corner of the admin.
- Navigate to the page of the product.
- Copy the ID from the browser address bar. It’s the numbers that go at the end of the link, after letter “p” (“239904127” in our example):
In case you want to get the IDs of several products in bulk, you can export products with their IDs to a CSV file. The CSV file downloaded to your device will contain a list of IDs for your products in the "product_internal_id" column. 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 several ways to get the ID of a specific product category. First, you can copy IDs for individual categories from your Ecwid admin or from the storefront. Second, you can export IDs for several categories in bulk.
To get the category ID:
- From your Ecwid admin, go to Catalog → Categories.
- Open the category for which you need to get the ID.
- 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):
- Open your Ecwid storefront.
You can always access your storefront by clicking the View [your store name] link in the top right corner of the admin.
- Navigate to the page of your product category.
- Copy the ID from the browser address bar. It’s the numbers that go at the end of the link, after letter “c” (“120581513” in our example):
In case you want to get the IDs of several categories in bulk, you can export your catalog with their IDs to a CSV file. The CSV file downloaded to your device will contain a list of IDs for your categories in the "category_internal_id" column. You can open this file in any text editor like Notepad or TextEdit or in a spreadsheet editor like Excel or Google Sheets.