# 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.

- Page: https://fous.com/methods/hm.com/search-products
- Method: `hm.com/search_products`, version 1
- Website: hm.com
- Returns: product name, prices, sale price, colours, category, photo, product link, article number
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `query` | string | yes | `"linen shirt"` | Clothing or home product to search for, such as linen shirt. |
| `country` | string | no |  | Country name or two-letter country code, such as United States or GB. Default "United States". |
| `max_results` | integer | no |  | Maximum products to return, such as 36. Default 36. |
| `on_sale_only` | boolean | no |  | Only show reduced-price products, for example true. Default false. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "query": "linen shirt"
}
```

Its output:

```json
{
  "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"
      ]
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
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"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## 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?

## Input schema

```json
{
  "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

```json
{
  "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
}
```

## See more

- [H&M API: Get product](https://fous.com/methods/hm.com/get-product.md): Gets 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.
- [IKEA API: Search products](https://fous.com/methods/ikea.com/search-products.md): Searches IKEA products in a chosen country and returns current prices, details, photos and reviews in IKEA's result order.
- [Zara API: Search products](https://fous.com/methods/zara.com/search-products.md): Searches a country's English Zara store for products, with current prices, colours, images and product links. The all section excludes non-Zara brands.
- [Macy's API: Search products](https://fous.com/methods/macys.com/search-products.md): Searches 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.
- [Nike API: Search products](https://fous.com/methods/nike.com/search-products.md): Searches 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.
- [Zalando API: Search products](https://fous.com/methods/zalando.com/search-products.md): Searches 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.
- [Nordstrom API: Search products](https://fous.com/methods/nordstrom.com/search-products.md): Search 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.
- [AliExpress API: Search products](https://fous.com/methods/aliexpress.com/search-products.md): Searches 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.
- [All H&M methods](https://fous.com/methods/hm.com.md)
