H&M API & Data Access

Unofficial | 👉 Official H&M Website: https://www.hm.com | 👥 Contributors: steve


These are unofficial H&M API endpoints useful for scraping public data such as product information, photos, styles and pricing. They are made available for unofficial use and experimentation, such as for security research, use at your own risk!

These endpoints were uncovered from the H&M mobile app using MITM proxy interception, meaning that these endpoints are unlikely to change too much as mobile clients tend to stick around in the wild for a while. Hence, it should be safe to assume these won’t change too much over the next few years.

Rate Limiting

Please be considerate when requesting data through these endpoints or H&M may block your requesting IP address. We don’t recommend exceeding one request per second per proxy.

Read Only

These endpoints are “read only” and only allow you to scrape data.

Official API

There is no known officially supported H&M API.

Sample Data

Below is a sample JSON snippet for a clothing item. You can also download aggregate results together in CSV format.

  "code": "0570004_group_009",
  "name": "Polo Shirt Slim fit",
  "price": {...},
  "images": [...],
  "categories": [...],
  "whitePrice": {...},
  "articles": [...],
  "visible": false,
  "concept": [...],
  "numbersOfPieces": 0,
  "defaultArticle": {...},
  "sale": false,
  "variantSizes": [...],
  "swatches": [...],
  "articleCodes": [...],
  "ticket": "Oy9zZWFyY2gvc2VhcmNoLWhpdHMtd2l0aC1jb3VudC9zZWFyY2gtaGl0czsjO3Byb2R1Y3Rfa2V5OzA1NzAwMDRfZ3JvdXBfMDA5X2VuX3VzOzA1NzAwMDQwMDlfZW5fdXM7T0JKRUNUSVZFJDtOT05FOk5PTkU7NTU7",
  "searchEngineProductId": "0570004_group_009_en_us",
  "dummy": false,
  "linkPdp": "/en_us/productpage.0570004009.html",
  "categoryName": "Men",
  "rgbColors": [...],
  "articleColorNames": [...],
  "ecoTaxValue": 0,
  "swatchesTotal": 24,
  "showPriceMarker": true,
  "redirectToPdp": false,
  "mainCategoryCode": "MEN_TSHIRTSTANKS_POLO",
  "comingSoon": false