H&M avatar
H&M

Pricing

$9.99/month + usage

Go to Apify Store
H&M

H&M

Scrape products from H&M websites. All countries and languages. Fast and efficient.

Pricing

$9.99/month + usage

Rating

0.0

(0)

Developer

datasaurus

datasaurus

Maintained by Community

Actor stats

2

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Share

H&M Products Scraper

This tool scrapes product data from H&M. It works with all website countries and languages.

Checkout our other scrapers: Zara | Stradivarius | Pull&Bear | MassimoDutti | Bershka | Oysho | ZaraHome

Features

  • Detailed Scrape:

    • Scrapes individual product pages for detailed information
    • Fields include: name, description, price, colors, sizes, SKUs, category, images, stock availability, discount, product page url, plus more.
    • Approx run cost: 1000 products in 30 seconds, actor usage cost 2 cents (including proxy).
  • Granularity: Scrape:

  • Multiple URLs: Scrape data from multiple start urls within a single scrape, including from different country websites.

  • Set Limits: Define the maximum products pages to scrape per url.

  • Deduplication: Unique products are returned, even across multiple start URLs. This is useful in instances where the same product appears in multiple subcategories. The scrapper will do it's best to deduplicate results - as pages are scrapped concurrently, the scrapper may occassionally not identify every duplicate product.

Notes

  • This tool is configured to use datacentre proxies which are low cost and necessay to avoid IP address blocking. It is effecient with data download sizes which optimises run time and cost.
  • The output is in JSON format due to the nested data structure.

Known Scraping Challenges

  • Occasionally the scrape might not start or the scrape might stop due to requests being blocked by the website. A '403 error' will appear in the logs. This is common in webscrapping and difficult to avoid, but it can be solved by re-running the scrape.

Resources

Example Input

{
"start_urls": [
{"url": "https://www2.hm.com/en_gb/index.html"},
{"url": "https://www2.hm.com/en_gb/home/seasonal-trending/bestsellers.html"},
],
"deduplicate_across_all_start_urls": true,
"max_categories": 1,
"max_pages": 1
}

Example Output

{
"id": "0974175002",
"trackingId": "OzU7IzswOTc0MTc1MDAyOyM7IzsvZmFzaGlvbi9NT0JJTEUvTEFORElOR19QQUdFL05BVklHQVRJT05fUkVTVUxUOyM7IztPQkpFQ1RJVkUkOzExOzQ3OyM7IzsvaG9tZTs_e4",
"productName": "Cotton storage basket",
"external": false,
"brandName": "H&M",
"url": "https://www2.hm.com/en_gb/productpage.0974175002.html",
"showPriceMarker": false,
"prices": [
{
"priceType": "whitePrice",
"price": 19.99,
"minPrice": 19.99,
"maxPrice": 19.99,
"formattedPrice": "£19.99"
}
],
"availability": {
"stockState": "Available",
"comingSoon": false
},
"swatches": [
{
"articleId": "0974175002",
"url": "https://www2.hm.com/en_gb/productpage.0974175002.html",
"colorName": "Light beige",
"colorCode": "B5AFA0",
"trackingId": "OzU7IzswOTc0MTc1MDAyOyM7IzsvZmFzaGlvbi9NT0JJTEUvTEFORElOR19QQUdFL05BVklHQVRJT05fUkVTVUxUOyM7IztPQkpFQ1RJVkUkOzExOzQ3OyM7IzsvaG9tZTs_e4",
"productImage": "https://image.hm.com/assets/hm/9d/b2/9db248e3025308a910b4d3cd543ec33803f09cd2.jpg"
}
],
"productMarkers": [],
"images": [
{
"url": "https://image.hm.com/assets/hm/d2/c3/d2c3427b67121103bce070735bebc6a76b6f824d.jpg"
},
{
"url": "https://image.hm.com/assets/hm/cd/b3/cdb3cc592089d526a1563e8d4f4ca3c0ea53346d.jpg"
}
],
"hasVideo": false,
"removed": false,
"colorName": "Light beige",
"isPreShopping": false,
"isOnline": true,
"modelImage": "https://image.hm.com/assets/hm/ec/7c/ec7c5c8be146f7c79343fa550b3eb8e082b0259e.jpg",
"colors": "B5AFA0",
"productImage": "https://image.hm.com/assets/hm/9d/b2/9db248e3025308a910b4d3cd543ec33803f09cd2.jpg",
"sizes": [
{
"id": "001",
"label": "NOSIZE",
"stock": 2
}
],
"newArrival": false,
"isLiquidPixelUrl": false,
"colorWithNames": "beige_f5f5dc",
"mainCatCode": "home_storageorganizing_baskets"
}