H&M API: Search products
Searches H&M clothing and home products by keyword, with country-specific prices and an optional sale-only filter.
Unofficial. Not affiliated with or endorsed by H&M.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Query, required
query Clothing or home product to search for, such as linen shirt.
linen shirt
- Country optional
country Country name or two-letter country code, such as United States or GB.
United States (default)
- Max Results optional
max_results Maximum products to return, such as 36.
36 (default)
Whole number from 1 to 100.
- On Sale Only optional
on_sale_only Only show reduced-price products, for example true.
false (default)
True or false.
Input as JSON
{ "query": "linen shirt"}Output
{ "products": [ { "price": 29.99, "category": "Men - Shirts", "photo_link": "https://image.hm.com/assets/hm/38/a5/38a53b8bfaf4db7fc0e887294a896304a19a2ab2.jpg" , "sale_price": null, "product_link": "https://www2.hm.com/en_us/productpage.1307418014.html" , "product_name": "Relaxed-Fit Linen-Blend Resort Shirt", "currency_code": "USD", "article_number": "1307418014", "available_colours": [ "Dark brown", "Dark khaki green", "Black" ] }, { "price": 29.99, "category": "Men - Shirts", "photo_link": "https://image.hm.com/assets/hm/d4/25/d42550668ee7f08f4a94b88661bd257dc63c95ab.jpg" , "sale_price": null, "product_link": "https://www2.hm.com/en_us/productpage.1357117001.html" , "product_name": "Relaxed-Fit Linen-Blend Resort Shirt", "currency_code": "USD", "article_number": "1357117001", "available_colours": [ "Dark brown", "Light blue" ] }, { "price": 19.99, "category": "Kids - Shirts", "photo_link": "https://image.hm.com/assets/hm/aa/09/aa091c48ba53f5ca81f0d76d441222d0de763d0b.jpg" , "sale_price": null, "product_link": "https://www2.hm.com/en_us/productpage.1275884001.html" , "product_name": "Linen-Blend Shirt", "currency_code": "USD", "article_number": "1275884001", "available_colours": [ "Light beige", "White" ] } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"hm.com/search_products","input":{"query":"linen shirt"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "hm.com/search_products" , "input": { "query": "linen shirt" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "hm.com/search_products" , "input": { "query": "linen shirt" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run hm.com/search_products# with {"query":"linen shirt"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "query" ], "properties": { "query": { "type": "string", "description": "Clothing or home product to search for, such as linen shirt." }, "country": { "type": "string", "default": "United States", "description": "Country name or two-letter country code, such as United States or GB." }, "max_results": { "type": "integer", "default": 36, "maximum": 100, "minimum": 1, "description": "Maximum products to return, such as 36.", "x-fous-developer": true }, "on_sale_only": { "type": "boolean", "default": false, "description": "Only show reduced-price products, for example true." } }, "additionalProperties": false}Output schema
{ "type": "object", "required": [ "products" ], "properties": { "products": { "type": "array", "items": { "type": "object", "required": [ "product_name", "price", "currency_code", "sale_price", "available_colours", "category", "photo_link", "product_link", "article_number" ], "properties": { "price": { "type": "number", "description": "Regular price in the listed currency." }, "category": { "type": [ "string", "null" ], "description": "Catalog category." }, "photo_link": { "type": [ "string", "null" ], "description": "Product photo URL." }, "sale_price": { "type": [ "number", "null" ], "description": "Reduced price when on sale, or null." }, "product_link": { "type": "string", "description": "Product page URL." }, "product_name": { "type": [ "string", "null" ], "description": "Product name." }, "currency_code": { "type": "string", "description": "Three-letter currency code." }, "article_number": { "type": [ "string", "null" ], "description": "H&M article number.", "x-fous-developer": true }, "available_colours": { "type": "array", "items": { "type": "string" }, "description": "Available colour names." } }, "additionalProperties": false }, "description": "Products in H&M search order." } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
hm.com/search_products- Returns
- product name, prices, sale price, colours, category, photo, product link, article number
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method hm.com/search_products with the inputs above.
Ask your agent
- Find me linen shirts on H&M that are currently on sale, priced in US dollars.
- Show me the cheapest black wool coats available on hm.com for shipping to the UK, around 10 results.
- I need a list of H&M home throw pillows in beige or cream, with product links and photos.
- Search H&M for women's floral midi dresses and tell me which ones are marked down.
- What H&M sweatshirts come in navy or grey, and what are their article numbers?
See more
All H&M methodsGets an H&M item's current country-specific price, sizes, colours and images by product name or product page link. Description, materials, composition, care and sustainability details are always returned as null.
hm.com/get_productSearches IKEA products in a chosen country and returns current prices, details, photos and reviews in IKEA's result order.
ikea.com/search_productsSearches a country's English Zara store for products, with current prices, colours, images and product links. The all section excludes non-Zara brands.
zara.com/search_productsSearches Macy's products in the site's order with optional USD price bounds, sale-only results and sorting. Prices for products with a range use the lowest shown price.
macys.com/search_productsSearches Nike products in a chosen country, in Nike search order, with optional gender (men, women, kids) and sale-only filters. Prices, currency and availability reflect the selected country's Nike store.
nike.com/search_productsSearches clothes and shoes in one Zalando country shop, with optional gender, brand, deal and sort filters. Prices and discounts are those shown on the product cards; size-dependent prices may be starting prices.
zalando.com/search_productsSearch Nordstrom products by words, price, sale status and sort order. Prices are the lowest listed price. Available sizes may be empty when a product page is unavailable.
nordstrom.com/search_productsSearches AliExpress listings by product words, shipping destination, price range and sort order. Unpriced promotional cards are omitted; free shipping is marked only when the listing explicitly says so.
aliexpress.com/search_products