H&M Search
Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.
Search H&M by keyword and return product cards with the current selling price.
Credit cost: 2 credits per call
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringKeyword or an H&M search URL.
locale?stringStore locale. fr_fr (default) or en_us. A full URL keeps its own locale.
"fr_fr"page?numberPage number, starting at 1.
return_page_source?booleanReturn the page HTML instead of the parsed search.
falsefields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body.
falseSuccessful response
application/json- response
results?array<>pagination?curl -X GET 'https://api.piloterr.com/v2/hm/search?query=string'{
"results": [
{
"url": "https://www2.hm.com/fr_fr/productpage.1358282001.html",
"brand": "H&M",
"image": "https://image.hm.com/assets/hm/fb/25/fb250a2e95579dadf4aeed00b9425b45902cbe8c.jpg",
"price": 34.99,
"sizes": [
{
"id": "002",
"label": "XS",
"stock": 2
},
{
"id": "003",
"label": "S",
"stock": 2
}
],
"title": "Robe en maille avec jupe évasée",
"locale": "fr_fr",
"currency": "EUR",
"article_code": "1358282001",
"price_display": "34,99 €",
"is_out_of_stock": false,
"compare_at_price": null
}
],
"pagination": {
"next": "https://www2.hm.com/fr_fr/search-results.html?q=robe&page=2",
"page": 1,
"per_page": 36,
"total_pages": 128,
"total_results": 4597
}
}