{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"26050d54-7030-4b60-8857-ca6ba1cc8eee","name":"H&M API","description":"The H&M API returns product data from hm.com as JSON: keyword search across the H&M catalogue with regular and sale prices, colours, every size with its stock level, images, category codes and product links, for any H&M country site, plus search suggestions, the category tree, store locations and the supplier behind a product. H&M has no public product API. This collection holds every endpoint of the H&M API on RapidAPI, ready to send from Postman.\n\nBuilt and maintained by [Happy Endpoint](https://happyendpoint.com/library/hm-api?utm_source=postman&utm_medium=collection&utm_campaign=hm-api).\n\n## Get started\n\n1. Subscribe to the [H&M API on RapidAPI](https://rapidapi.com/happyendpoint/api/h-m-hennes-mauritz1) and copy your key. Current plans are listed there.\n2. Fork this collection into your own workspace. Open the collection's **Variables** tab and paste your key into the **Current value** of `rapidapi_key`. Leave the Initial value empty: current values stay on your machine and are never shared.\n3. Send **Products, Stores and Suppliers > Product search** with `query=jeans` and `languageCode=en_gb` (the UK site). **Countries and language codes** lists the other sites.\n4. Narrow it with `filters`, built from the facet ids in the response: `sale:true||customerGroups:Woman` returns only women's items on sale.\n\n## What you can do\n\n- **Search the catalogue** of any H&M country site, sorted by relevance, newest or price, with filters for size, colour, fit, material, customer group, sale status and the other facets the response lists, and facet counts for the whole result set.\n- **Track prices and markdowns:** each product carries its regular price and, when on sale, its sale price.\n- **Track sizes:** each product lists every size with an in-stock or sold-out level.\n- **Look up reference data:** search suggestions, the category tree, countries and language codes.\n- **Find stores and suppliers:** H&M stores in a country with opening hours and departments, and the supplier and production location of a product.\n\nAll 7 requests are `GET`. `/product-search` returns H&M's own search payload (`searchHits`, `pagination`), not a `success`/`data` wrapper.\n\n## Things to know about the data\n\n- **A sale price is a second entry in `prices`.** Products on sale carry `redPrice` (sale) next to `whitePrice` (regular); others carry only `whitePrice`. Do not take `prices[0]`.\n- **`stock` is a level, not a count.** Across about 1,000 sizes on three UK pages every value was `2` (in stock) or `0` (sold out).\n- **`stockState` stays \"Available\"** for every product we read, including one with 8 of its 10 sizes sold out. Read the sizes instead.\n- **One result per colour.** On one page of women's jeans, \"Wide High Waist Jeans\" appeared 8 times. The first 7 digits of `id` are the style, the last 3 the colour, and colour names repeat (five swatches of one style were \"Dark denim blue\"), so key on `articleId`.\n- **A plain keyword mixes departments.** 20 of the first 36 UK results for \"jeans\" were kids' products. Add `customerGroups:Woman` (Man, Girl, Boy) or check `mainCatCode`.\n- **Filters work:** `sale:true||customerGroups:Woman` cut 2,019 jeans to 186, every one with a `redPrice`.\n- **Links are relative** (`/en_gb/productpage.1313469003.html`); prefix `https://www2.hm.com`.\n\n## Use it from Claude, Cursor or any MCP client\n\nRapidAPI exposes every endpoint of this API as an MCP tool. Point your MCP client at `https://mcp.rapidapi.com` with the headers `x-api-host: h-m-hennes-mauritz1.p.rapidapi.com` and `x-api-key: <your RapidAPI key>`.\n\n## Links\n\n- Product page and FAQ: [happyendpoint.com/library/hm-api](https://happyendpoint.com/library/hm-api?utm_source=postman&utm_medium=collection&utm_campaign=hm-api)\n- Subscribe and plans: [rapidapi.com/happyendpoint/api/h-m-hennes-mauritz1](https://rapidapi.com/happyendpoint/api/h-m-hennes-mauritz1)\n- More retail and ecommerce data: [happyendpoint.com/ecommerce-data](https://happyendpoint.com/ecommerce-data?utm_source=postman&utm_medium=collection&utm_campaign=hm-api)\n\n## More from Happy Endpoint on Postman\n\nEvery public Happy Endpoint collection, for real estate, ecommerce and other platforms: [postman.com/happyendpoints-team](https://www.postman.com/happyendpoints-team).\n\n## Contact\n\nQuestions about the API, custom data or bulk datasets: email [hello@happyendpoint.com](mailto:hello@happyendpoint.com).\n\n## Disclaimer\n\nHappy Endpoint is an independent provider. This collection is not affiliated with, endorsed by, sponsored by or connected to H&M (H & M Hennes & Mauritz AB). H&M is a trademark of its owner, referenced only to describe the data.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"56555678","team":43080622,"collectionId":"26050d54-7030-4b60-8857-ca6ba1cc8eee","publishedId":"2sBYHYsctx","public":true,"publicUrl":"https://documenter-api.postman.tech/view/56555678/2sBYHYsctx","privateUrl":"https://go.postman.co/documentation/56555678-26050d54-7030-4b60-8857-ca6ba1cc8eee","customColor":{"right-sidebar":"303030","top-bar":"FFFFFF","highlight":"1D4ED8"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"value":"H&amp;M API: Product Prices, Sale Items, Sizes and Stores","name":"title"},{"value":"H&amp;M API Postman collection: H&amp;M products with regular and sale prices, sizes in stock, colours, categories, stores and suppliers as JSON.","name":"description"}],"appearance":{"themes":[{"colors":{"right-sidebar":"303030","top-bar":"FFFFFF","highlight":"1D4ED8"},"name":"light","logo":null},{"colors":{"right-sidebar":"303030","top-bar":"212121","highlight":"60A5FA"},"name":"dark","logo":null}],"default":"light"}},"version":"8.12.12","publishDate":"2026-11-05T05:36:25.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"H&amp;M API: Product Prices, Sale Items, Sizes and Stores","description":"H&amp;M API Postman collection: H&amp;M products with regular and sale prices, sizes in stock, colours, categories, stores and suppliers as JSON."},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/0d967c87095e757db82929b270ca9e6f39361a13321214cb4c21a32a767ccc2e","favicon":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/v1793253795/team/fea4634cfb38c1c4b615f71bbf3e1a80"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBYHYsctx"}