H&M Product
Use in bulk with DataflowRun this endpoint over a file or a list, once or on a schedule.
Read an H&M product, including the selling price, colors, and sizes in stock.
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*stringH&M product URL or an article code.
locale?stringStore used when query is an article code. fr_fr (default) or en_us. A full URL keeps its own locale.
"fr_fr"return_page_source?booleanReturn the page HTML instead of the parsed product.
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
url?stringbrand?stringcolor?stringimage?stringprice?numbersizes?array<>title?stringcolors?array<>locale?stringcategory?stringcurrency?stringin_stock?booleanproduct_id?stringcoming_soon?booleandescription?stringarticle_code?stringprice_display?stringcompare_at_price?unknowncurl -X GET 'https://api.piloterr.com/v2/hm/product?query=string'{
"url": "https://www2.hm.com/fr_fr/productpage.1358282001.html",
"brand": "H&M",
"color": "Gris foncé chiné",
"image": "https://image.hm.com/assets/hm/fb/25/fb250a2e95579dadf4aeed00b9425b45902cbe8c.jpg",
"price": 34.99,
"sizes": [
{
"id": "1358282001002",
"label": "XS",
"in_stock": true,
"low_stock": false
},
{
"id": "1358282001003",
"label": "S",
"in_stock": true,
"low_stock": false
}
],
"title": "Robe en maille avec jupe évasée",
"colors": [
{
"url": "https://www2.hm.com/fr_fr/productpage.1358282001.html",
"name": "Gris foncé chiné",
"price": 34.99,
"article_code": "1358282001",
"price_display": "34,99 €",
"compare_at_price": null
},
{
"url": "https://www2.hm.com/fr_fr/productpage.1358282002.html",
"name": "Beige ancien",
"price": 24.5,
"article_code": "1358282002",
"price_display": "24,50 €",
"compare_at_price": 34.99
}
],
"locale": "fr_fr",
"category": "ladies_dresses_flared",
"currency": "EUR",
"in_stock": true,
"product_id": "1358282",
"coming_soon": false,
"description": "Robe courte et ajustée en douce maille enrichie d'une touche de laine.",
"article_code": "1358282001",
"price_display": "34,99 €",
"compare_at_price": null
}