Health & Beauty Products API

An interactive demo of the Affiliate.com Products API for health and beauty products: pick a product type, build filters with the real fields and operators, and see the request that returns the results.

Affiliate.com Health & Beauty Products API graphic

Beauty shoppers know the product by name. They look for a particular serum, a shade of foundation or a replacement brush head, and they compare the price across several stores before they add it to a cart. The Affiliate.com Products API lets a developer search the whole Health & Beauty area across merchants and affiliate networks with one request, and get the same fields back for every result. This guide to the Health & Beauty Products API shows what that looks like on live data, last pulled on November 23, 2026. It has an interactive demo you can change, the request behind every result, and notes on keeping a beauty and health page accurate.

What counts as Health & Beauty

In the current Shopify Standard Product Taxonomy, Health & Beauty is one of the 26 top-level categories. It has three second-level groups, Health Care, Jewelry Cleaning & Care and Personal Care, and most of what shoppers think of as beauty sits under Personal Care, in groups such as Cosmetics, Hair Care, Oral Care and Skin Care. The API does not filter on that taxonomy directly, so the searches in this article use keywords.

Who builds with a beauty and health API

Beauty and health products suit an API because shoppers search by name and the same product is sold in many places. A beauty blog that earns through affiliate links wants routines and gift sets built from products that are in stock. A deals page wants the sale price and the discount on every item. A comparison page needs the same product from several retailers side by side.

A shopping assistant that gets asked for a moisturizer under a set price needs real listings to recommend, with the price and availability attached. The work is the same in every case: search by what the shopper would type, keep what is in stock, and show a price the reader can trust.

Try the search

This demo runs on real results from the Affiliate.com Products API, refreshed weekly and last pulled on November 23, 2026. Pick a product type and one of the quick filters, which are already set to a sensible starting point. The request below the results updates with every change, and clicking a product shows the record the API returns for it. To go further, open Customize filters and build your own with the API’s fields, operators and sort options.

How the request is built

Every control in the demo uses the API’s own field names and operators, and each filter adds one criterion to the search array. The criteria are joined together. That is the whole model: start with a keyword search, then narrow.

ControlWhat it adds to the request
Product typename LIKE a short list of keyword phrases for that product type, such as face moisturizer, shampoo or electric toothbrush
In stock, USD, imageavailability = InStock, currency = USD and image_url NOT NULL
final_price, sale_discountA numeric criterion with one of the operators the API accepts for those fields: <, <=, >, >=, = or BETWEEN (two values joined as min|max)
on_saleon_sale = true
merchant.namemerchant.name LIKE the merchant you picked
sort_by, sort_ordersort_by can be relevance, final_price, regular_price, sale_discount or name, and sort_order is asc or desc. Sort order is ignored when sorting by relevance

One criterion is always present: it limits results to listings that have an image. The fields list trims each result to what a product card needs.

The phrases behind each product type

Each tab searches a short list of phrases joined with ||, which means any of them can match. Phrases such as face moisturizer or electric toothbrush are more precise than a single word, and the list is easy to widen or narrow.

Product typePhrases the demo searches
Skin careface moisturizer, vitamin c serum, sunscreen, face cleanser, eye cream
Hair careshampoo, conditioner, hair dryer, hair straightener, hair mask
Makeupmascara, lipstick, foundation, eyeshadow palette, makeup brush, lip gloss, blush
Oral careelectric toothbrush, whitening strips, water flosser, toothpaste
Fragranceperfume, eau de parfum, cologne, body mist
Wellnessprotein powder, multivitamin, massage gun, heating pad, essential oil

Fields worth building on

FieldWhat it gives you
name, brandThe listing title and brand as the merchant publishes them.
regular_price, final_price, sale_discountThe full price, the price a shopper pays now, and the discount. All three can be used as filters.
availabilityInStock, OutOfStock or Unknown. Filtering on InStock keeps unavailable items off the page.
image_urlThe product image the merchant supplies. A NOT NULL filter on it keeps image-less listings out of a grid.
merchant.name, network.nameThe retailer and the affiliate network the listing comes from.
categoryThe merchant’s own category text. Labels differ between merchants, so this article filters by keyword instead.

Why this search uses keywords instead of a category

The category field holds each merchant’s own label, and merchants do not share one vocabulary. In a test search for beauty products with the same filters as the demo, in stock and in US dollars, the 100 results carried 29 different labels, such as “Health & Beauty > Personal Care > Cosmetics > Skin Care”, “Premium Beauty > Premium Skincare”, “Skin Care” and the same path in lower case, and some had no label at all.

Searching by the words Health & Beauty in that field has the opposite problem. The first 100 results came from only 3 merchants, 96 of them from one, and none from Walmart or Ulta Beauty, which both appeared among the results of the keyword search because they file their products under their own labels.

A keyword search reaches every merchant, and the other filters keep the results tidy. The catch is that one word is too loose. A bare “serum” also matched video games and a thriller category in a test, so the demo searches for phrases such as face moisturizer, vitamin c serum and electric toothbrush instead.

{
  "per_page": 5,
  "search": [
    { "field": "name", "operator": "LIKE", "value": "face moisturizer||vitamin c serum||shampoo||electric toothbrush" },
    { "field": "availability", "operator": "=", "value": "InStock" },
    { "field": "currency", "operator": "=", "value": "USD" }
  ],
  "fields": ["name", "category", "final_price", "merchant.name"]
}

Getting started in three steps

Moving from the demo to your own page takes three steps, and the request panel above already contains the second one.

StepWhat to do
1. Get a keyRequest an API key from Affiliate.com. Every request sends it as a Bearer token in the Authorization header, which is why the demo above never needs one.
2. Send a searchPOST a search array to https://api.affiliate.com/v1/products. Begin with a keyword phrase for your product type, then add availability, currency and price filters until the results look right.
3. Read the recordsEach result carries the name, price, availability, image and merchant. Show the fields you need and keep the time you fetched them, so a page can say how fresh its prices are.

Keeping a beauty and health page current

Freshness is worth measuring rather than assuming. In a check on November 12, 2026, 88 of 100 beauty and health records had been updated within the previous seven days, and 73 of them within the previous 24 hours. A few merchants refresh less often than weekly, which is a reason to keep the time you fetched a price. The sample in this article is rebuilt every day, and the date near the top shows when it was last pulled.

A product grid is only useful while its prices and availability are right. The guide on how often product pages should be updated covers a sensible refresh schedule. To show that a sale is real, comparing regular price and final price explains the two fields, and how price history helps a reader trust a deal shows how to back a discount up with past prices.

If the search sits behind a chat assistant rather than a web page, the same catalog is available through the MCP server. MCP or REST explains how to choose between the two ways of connecting.

One API call
Find beauty and health products in one API call
  • ✓One request searches merchants across affiliate networks
  • ✓Prices, discounts and availability on every result
  • ✓In-stock, US-dollar listings filtered in the request itself
Get API access →
Request
POST https://api.affiliate.com/v1/products
Authorization: Bearer YOUR_API_KEY

{
  "per_page": 12,
  "search": [
    { "field": "name", "operator": "LIKE", "value": "face moisturizer||vitamin c serum||shampoo||electric toothbrush" },
    { "field": "availability", "operator": "=", "value": "InStock" },
    { "field": "currency", "operator": "=", "value": "USD" },
    { "field": "image_url", "operator": "NOT NULL" }
  ]
}