A shopper visits your store looking for a moisturiser with niacinamide. You stock products that fit, but your filters only offer brand, price and availability. To find what they want, they have to open individual product pages and read the ingredient lists.
An ingredient filter gives them a more direct route. They select “Niacinamide” and browse the matching products in your moisturiser collection.
Whether you’re adding ingredient filters to your own store or building them for a client, you need reliable ingredient information connected to the products the store sells. This guide walks through that connection, from finding the product data to making the filter available to shoppers.
Here’s how you can build that experience with Shopify and The Beauty API.
1. Choose the collection and ingredients
Choose a collection and an ingredient that make sense together. For this example, we’ll use moisturisers and niacinamide.
The intended experience is simple:
- The shopper opens your moisturiser collection.
- They select Niacinamide under Ingredients.
- The collection shows matching products, with your store’s prices and availability.
Start with a short, useful selection of ingredients. Your filters should help shoppers narrow their choices without requiring them to understand every ingredient in a formula.
Keep the complete ingredient list on each product page. The filter helps someone find a product; the product page gives them the detail to consider it further.
2. Create a field for filter ingredients
A product description might contain an ingredient list, but Shopify needs a separate, structured value to use it as a custom filter.
You can store that value in a metafield, Shopify’s name for an additional field attached to a product. Think of it as another box in the product’s information, alongside its title and description.
For this project, you could create a field called Filter ingredients. Each product would hold a list of the ingredients you have chosen to make searchable.
The table below illustrates the idea using fictional products.
| Product in your store | Selected ingredients recorded for filtering |
|---|---|
| Everyday Moisturiser | Niacinamide, Glycerin |
| Rich Moisture Cream | Glycerin |
| Lightweight Face Lotion | Niacinamide |
When the shopper selects Niacinamide, Everyday Moisturiser and Lightweight Face Lotion appear.
Shopify’s Search & Discovery app supports custom filters based on metafields, including lists of text values. Your theme also needs to support storefront filtering. See Shopify’s filter setup guide.
3. Connect your products to The Beauty API
The Beauty API provides product records with structured ingredient information. You can find a product by its brand and name, retrieve its full record, and use the linked ingredient names and identities to prepare your filter values. Barcode lookup offers another route on barcode-enabled plans. Explore The Beauty API documentation.
Our preparation work gives you connected product and ingredient records to build from. Your developer links those records to the products you sell and decides which ingredients to expose as filters.
For the moisturiser example, the workflow looks like this:
Your store’s product → matching Beauty API record → ingredient values → Shopify filter
Connect each store product to the right record
Start with the products in your moisturiser collection. Find the corresponding records in The Beauty API and check that the product and relevant variant match before using their ingredient information.
Keep a reference connecting each store product to its selected Beauty API record. That lets your integration return to the same record when you update the ingredient information.
Prepare consistent ingredient values
For each matched product, retrieve its ingredient data and check for the ingredients selected for your filter.
If niacinamide is present, add Niacinamide to that store product’s Filter ingredients field. Repeat the process for the other ingredients you want shoppers to browse by.
Use the same wording across the collection. A single ingredient should appear as one filter option rather than several options with different spellings or capitalisation.
Keep a missing ingredient list separate from a confirmed result. Missing information should not turn into an “ingredient-free” label.
4. Enable the filter in Shopify
Once the product fields are populated, open Shopify’s Search & Discovery app, add a filter using your Filter ingredients field, and give it the customer-facing label Ingredients.
Your store continues to manage its collection, prices, stock and checkout. The ingredient information adds another way for shoppers to navigate that assortment.
Your team builds this connection using The Beauty API and Shopify’s existing filtering tools.
How we’d approach the first version
Our experience preparing product and ingredient data shapes how we’d approach this feature: give each store product a clear connection to its ingredient record, and keep that connection useful as the catalogue changes.
For this example, we’d start with the moisturiser collection and a small selection of ingredients. That gives us a manageable way to follow the whole journey, from matching a product to seeing it appear when a shopper selects Niacinamide.
We’d also make ingredient updates part of the same workflow. A new product needs its matching record and filter values; a changed ingredient list needs those values reviewed again. Keeping those steps together makes it easier to expand the feature across the store.
If you’re delivering this for a client, we’d include that update workflow in the handover, alongside the collections and ingredients covered. The client then has a clear process for keeping the filters useful after launch.
Those product and ingredient connections also give you a starting point for later features, such as ingredient explanations on product pages or side-by-side product comparisons.
Measure whether shoppers find useful products
After launch, we’d look at whether shoppers select an ingredient, open a matching product and add it to their basket. Combinations that return no products are useful to track too.
Those observations can guide your next improvement, whether that means changing the ingredient selection, improving product information or expanding the feature to another collection.
The first outcome is concrete: shoppers can browse your products by an ingredient they care about, with fewer individual lists to read.
To get started, choose a collection from your store and find its products in The Beauty API. Use their ingredient records to build your first filter, then connect it to the shopping experience you want to offer.

