H&M is one of the world’s largest fashion retailers, operating in more than 70 markets with a catalog spanning clothing, accessories, beauty, and home. The H&M API gives you structured access to that catalog: product search, live pricing across markets, store locations, category browsing, and supplier information.
What the H&M API covers
Product search - keyword search across H&M’s catalog in any market, with pagination, sorting (relevance, newest, price) and filters for colour, size, fit and material. Each product comes back with its ID, name, prices, colour swatches, images, the product page link, and stock for every size.
Prices - each product carries a list of prices: whitePrice is the regular price and redPrice, when present, is the sale price. Prices are in the local currency of the market you search, and formattedPrice gives the display string (£24.99, 29,99 €).
Availability - every size has its own stock value, which is the field to use for sell-out tracking. The listing-level availability.stockState reads “Available” on almost every product, so it says little on its own.
Category browsing - H&M’s category hierarchy from top-level departments (women, men, kids, home) down to sub-categories. Useful for systematic catalog ingestion and for building browse-style UIs.
Markets - /countries lists the 85 countries H&M serves, grouped by region, with their language codes and site addresses. 63 of them have an online shop, and those are the codes /product-search takes as languageCode (en_gb, de_de, en_us).
Store locator - /stores returns every H&M store in a country with its address, postcode, coordinates, opening hours for each day and the departments in the store.
Supplier details - for one product, the countries it is made in, the suppliers there, and each supplier’s factories with name, address and worker count band. This comes from H&M’s own supply chain disclosure and is useful for transparency and ESG products.
Search autocomplete - term suggestions for search-as-you-type interfaces.
Multi-market pricing
H&M prices the same product differently across markets, and a product keeps the same ID in every market. Search the same term with different languageCode values, match products by ID and compare the prices.
const markets = ['en_gb', 'de_de', 'en_us', 'sv_se', 'fr_fr'];
const headers = {
'X-RapidAPI-Key': process.env.RAPIDAPI_KEY,
'X-RapidAPI-Host': 'h-m-hennes-mauritz1.p.rapidapi.com',
};
const byMarket = await Promise.all(
markets.map(async (languageCode) => {
const url = new URL('https://h-m-hennes-mauritz1.p.rapidapi.com/product-search');
url.search = new URLSearchParams({ query: 'jeans', languageCode, pageSize: '36' });
const data = await (await fetch(url, { headers })).json();
return { languageCode, products: data.searchHits.productList };
})
);
// Regular price (whitePrice) and sale price (redPrice) of one product in every market
const productId = '1045459083';
const prices = byMarket.map(({ languageCode, products }) => {
const p = products.find((x) => x.id === productId);
const price = (type) => p?.prices.find((x) => x.priceType === type)?.formattedPrice;
return { languageCode, regular: price('whitePrice'), sale: price('redPrice') };
});
// [{ languageCode: 'en_gb', regular: '£24.99', sale: undefined },
// { languageCode: 'de_de', regular: '29,99 €', sale: undefined }, ...]
Keep pageSize at 36 or 60. Larger pages can fail, so page through results instead.
For cross-border grey market analysis, this pattern is the foundation.
Use cases
Price monitoring - H&M runs frequent promotional events: seasonal sales, member-price weekdays, and category-specific markdowns. Monitoring a set of products for price drops is straightforward with the API and a simple polling loop.
Affiliate feed management - affiliate product feeds need current prices and availability. Fashion feeds go stale fast as prices change and sizes sell out. The H&M API keeps your feed accurate.
Fashion catalog ingestion - for comparison sites, style apps, or outfit recommendation tools that include H&M as a retailer source, category browsing and paginated product search give you the full catalog.
Competitor price analysis - if you are a fashion brand or retailer, tracking H&M’s pricing on comparable product types helps you position your own pricing and monitor promotional intensity.
Supply chain transparency - the supplier data is uncommon in retail APIs. For ESG reporting products, responsible sourcing tools, or supply chain intelligence platforms, H&M’s published supplier information is a useful signal.
Multi-market retail intelligence - H&M’s global presence makes it useful as a benchmark for retail pricing across markets. A product that tracks H&M prices across regions can surface anomalies and cross-border arbitrage opportunities.
Kohl’s as a complement
For the US market, the Kohl’s Data API covers a different US retail segment - department store with strong private label and national brands. Pair H&M for global fashion with Kohl’s for US department store depth.