GroundsocialDocs

API · H&M

GET /hm/search

Search H&M's catalogue on one country site.

RequestGET /v1/hm/search
Operation idhm.search.all
Cost3 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Search H&M's catalogue on one country site.

Query parameters

NameTypeRequiredDescription
querystringyesSearch words. Example: jeans.
pageintegerno
limitintegerno
sort_by"relevance" | "newest" | "price_low" | "price_high"noOne of relevance, newest, price_low, price_high.
languagestringnoH&M locale path (en_us default, en_gb, de_de, sv_se…).
filtersstringnohm.com URL filter parameters, k=v&k=v.

Responses

StatusMeaningSchema
200A page of products.HmSearch
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404Nothing matched.Error
429Too many requests. Wait for Retry-After seconds.Error
503H&M is temporarily unavailable. Retryable; nothing was charged.Error

HmSearch fields

FieldTypeDescription
querystring
localestring
pagenumber
totalnumber | null
paginationobject | null
currencystring | null
hitsobject[]
facetsobject[]
related_searchesobject[]

Errors use one shape everywhere; see Errors for every code and what to do.