Skip to main content
GET
Hm Search Suggestions
Fetch H&M’s current anonymous search suggestions. Pass a nonempty query up to 200 characters; language defaults to en_us and accepts storefront locales such as de_de. items preserves the source’s phrase order followed by related content. Each item has type, text and url. Phrase suggestions have no source link, so their url is null. Content links point to H&M. Exact duplicate entries are removed. total counts the suggestions returned; it is not a count of matching products or searches. next_cursor is always null. No customer account, cookies or search history are used. The adapter calls the anonymous suggestion service used by H&M’s public website. It does not synthesize suggestions from product search results, and it does not supply popularity scores, product inventory or autocomplete pagination. An unmatched query may return an empty list. A source-blocked query returns 404 without a net SocialQuery credit charge. A fresh successful request uses the documented price; cached responses and successful idempotent replays are free. Suggestions can change over time and between storefront locales.

Authorizations

x-api-key
string
header
required

Headers

Cache-Control
string
Idempotency-Key
string
X-Max-Credits
integer

Optional nonnegative integer cap on the maximum request hold. A live request whose hold exceeds this cap returns 422 CREDIT_BUDGET_EXCEEDED before spending. Metered holds use the requested limit; cache hits and successful idempotent replays cost zero.

Required range: x >= 0

Query Parameters

query
string
required
Required string length: 1 - 200
language
string
default:en_us

H&M storefront locale, for example en_us or de_de.

Pattern: ^[a-zA-Z]{2}_[a-zA-Z]{2}$

Response

Read H&M's current anonymous phrase and content suggestions for a query and storefront locale. Native source order; no customer history, popularity metrics, product results or pagination. Empty matches are valid; blocked queries return 404 without a net credit charge.

success
boolean
required
platform
string
required
endpoint
string
required
credits_used
integer
required
Required range: x >= 0
credits_remaining
integer | null
required
request_id
string
required
cached
boolean
required
data
object
required

The selected operation determines the resource fields in this object. Source data can omit a metric or report it as null.