---
title: "Get H&M search-box suggestions"
method: GET
path: "/hm/search/suggestions"
tags: ["H&M"]
---

# Get H&M search-box suggestions

`GET /hm/search/suggestions`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/hm/search/suggestions`
- Auth: API key in header `x-api-key`

Returns H&M's own search-box typeahead suggestions. When query is given, returns spelling-complete phrase suggestions and merchandised content results. When query is omitted or empty, instead returns trending searches and popular-search shortcuts (phrase/content suggestions are both empty in that mode). search_history is not session-scoped -- it returns the identical list for every request, so treat it as fixed default content rather than a real per-caller history.

## Query parameters

- `query` string

## Headers

- `x-api-key` string, required

## Response `200`

OK

- HmSuggestResponseDoc
  - `code` integer
  - `data` HmSuggestResponse
    - `blocked` boolean
    - `content_suggestions` HmSuggestionLink[]
      - `content_type` string
      - `deep_link` string
      - `image_url` string
      - `link` string
      - `title` string
    - `fetched_at` string
    - `phrase_suggestions` string[]
    - `popular_searches` HmSuggestionLink[]
      - `content_type` string
      - `deep_link` string
      - `image_url` string
      - `link` string
      - `title` string
    - `query` string
    - `search_history` string[]
    - `source_url` string
    - `trending_searches` string[]
  - `msg` string

## Other responses

- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
