H&M Product Scraper 👗
Pricing
from $0.99 / 1,000 results
H&M Product Scraper 👗
Scrape H&M products instantly with complete details: pricing, images, stock status, and reviews. Export to JSON/CSV for competitive analysis, price monitoring, and retail research. Fast, reliable H&M data extraction for ecommerce intelligence.
Pricing
from $0.99 / 1,000 results
Rating
5.0
(5)
Developer
Shahid Irfan
Maintained by CommunityActor stats
5
Bookmarked
28
Total users
6
Monthly active users
20 days ago
Last modified
Categories
Share
What does H&M Product Scraper do?
H&M Product Scraper collects structured product data from H&M search and category URLs. Provide a product keyword such as shirt, or start with a public H&M URL, and receive product names, prices, availability, colors, sizes, images, category codes, and product URLs in an Apify dataset.
The Actor supports regional H&M catalogs through locale codes such as en_us, de_de, and sv_se. Use the results for catalog research, price monitoring, assortment analysis, inventory signals, and ecommerce reporting.
Why use H&M Product Scraper?
- Build product catalogs - Collect searchable H&M product records for a category, keyword, or regional catalog.
- Monitor prices and availability - Compare displayed prices, numeric prices, stock state, online availability, and coming-soon status across scheduled runs.
- Analyze sizes and colors - See all listed sizes, currently available sizes, out-of-stock sizes, color names, color codes, and swatch variations.
- Support merchandising research - Review product images, category codes, new-product flags, and assortment coverage in a consistent dataset.
- Automate exports - Send results to JSON, CSV, Excel, XML, Google Sheets, Airtable, webhooks, Make, Zapier, or your own data workflow through Apify.
What data can you extract from H&M?
The dataset is designed for product-level catalog and monitoring workflows, with fields covering identity, pricing, availability, variants, media, category context, and collection context.
Output Data
| Field | Type | Description |
|---|---|---|
id | String | H&M product identifier. |
trackingId | String | Product tracking identifier when available. |
productName | String | Product title. |
brandName | String | Brand name, normally H&M. |
productUrl | String | Full H&M product page URL. |
formattedPrice | String | Price as displayed in the selected locale. |
price | Number | Numeric product price. |
priceMin | Number | Minimum price listed for the product. |
priceMax | Number | Maximum price listed for the product. |
isNewProduct | Boolean | Indicates whether the product is marked as new. |
stockState | String | Product availability state when provided by H&M. |
isOnline | Boolean | Indicates whether the product is available for online purchase. |
isComingSoon | Boolean | Indicates whether the product is marked as coming soon. |
colorName | String | Primary product color name. |
colorCode | String | Primary product color code. |
swatchColorNames | Array | Color names available through the product swatches. |
swatchColorCodes | Array | Color codes available through the product swatches. |
allSizes | Array | All size labels listed for the product. |
availableSizes | Array | Size labels currently shown as available. |
outOfStockSizes | Array | Size labels currently shown as out of stock. |
sizesCount | Number | Number of size labels listed for the product. |
imageProductSrc | String | Primary product image URL. |
imageModelSrc | String | Model image URL when available. |
galleryImages | Array | Additional product gallery image URLs. |
mainCatCode | String | H&M category code. |
searchQuery | String | Keyword used for the collection. |
locale | String | Regional H&M catalog used for the run. |
pageNumber | Number | Result page where the product was found. |
Empty and null values are removed from saved records. Some optional fields may therefore be absent when H&M does not publish that information for a product.
How to scrape H&M product data
- Open H&M Product Scraper in Apify Console.
- Enter a keyword, or provide an H&M search or category URL in
startUrl. - Choose the regional
localewhen you need a catalog other thanen_us. - Set
results_wantedandmax_pagesfor the size of the collection. - Run the Actor and review the dataset preview.
- Download the results or connect the dataset to a schedule, webhook, spreadsheet, or API workflow.
You can provide both startUrl and keyword. When both are present, the keyword is used for the search and the URL can provide the locale and starting page context. If you provide only startUrl, the Actor attempts to infer the query from the URL.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
startUrl | String | No | - | Optional public H&M search or category URL. The Actor can infer the query and locale from the URL. |
keyword | String | No | - | Product keyword such as shirt, linen dress, or wool blazer. Provide this when startUrl is not enough to identify a search. |
locale | String | No | en_us | H&M regional catalog in ll_cc format, such as en_us, de_de, or sv_se. |
results_wanted | Integer | No | 20 | Maximum number of product records to save. |
max_pages | Integer | No | 10 | Safety cap for the number of result pages processed. |
proxyConfiguration | Object | No | { "useApifyProxy": false } | Optional Apify Proxy settings for larger or repeated collections. |
Proxy configuration
For a larger collection, you can enable Apify Proxy and select a residential proxy group:
{"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Usage Examples
Basic keyword search
Collect up to 20 products for a general H&M keyword:
{"keyword": "shirt","results_wanted": 20,"max_pages": 3}
Regional keyword search
Collect products from H&M's German catalog and retain the regional pricing and availability context:
{"keyword": "linen dress","locale": "de_de","results_wanted": 50,"max_pages": 5}
Start from an H&M URL
Let the Actor read the query and locale from a public H&M search URL:
{"startUrl": "https://www2.hm.com/en_us/search-results.html?q=overshirt","results_wanted": 100,"max_pages": 8}
Larger collection with Apify Proxy
Use optional proxy settings for a larger product collection:
{"keyword": "cotton t-shirt","locale": "en_us","results_wanted": 500,"max_pages": 15,"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Sample Output
The following example shows one product record from the dataset. Optional fields may be omitted when H&M does not provide them:
{"id": "1293921003","trackingId": "OzU7IzsxMjkzOTIxMDAzOyM7Izo=","productName": "Oxford Shirt","brandName": "H&M","productUrl": "https://www2.hm.com/en_us/productpage.1293921003.html","formattedPrice": "$24.99","price": 24.99,"priceMin": 24.99,"priceMax": 24.99,"isNewProduct": false,"stockState": "Available","isOnline": true,"isComingSoon": false,"colorName": "Blue/striped","colorCode": "333859","swatchColorNames": ["Blue/striped", "White"],"swatchColorCodes": ["333859", "000000"],"allSizes": ["XS", "S", "M", "L", "XL"],"availableSizes": ["S", "M", "L", "XL"],"outOfStockSizes": ["XS"],"sizesCount": 5,"imageProductSrc": "https://image.hm.com/assets/hm/example-product.jpg","imageModelSrc": "https://image.hm.com/assets/hm/example-model.jpg","galleryImages": ["https://image.hm.com/assets/hm/example-product.jpg","https://image.hm.com/assets/hm/example-product-side.jpg"],"mainCatCode": "men_shirts","searchQuery": "shirt","locale": "en_us","pageNumber": 1}
Tips for Best Results
- Use a specific keyword such as
linen shirt,cotton dress, orwool blazerwhen you need a focused dataset. - Start with
results_wanted: 20to confirm the query, locale, prices, and available fields before a larger run. - Use
startUrlwhen you want the Actor to begin from a particular public H&M search or category page. - Keep the same keyword and locale for scheduled runs when you want comparable product snapshots.
- Enable proxy settings for larger or repeated collections if the run returns fewer products than expected.
- Review the dataset preview because H&M may change product availability, size labels, images, or regional pricing.
Integrations and Export Formats
- Google Sheets - Export product records for collaborative price and assortment analysis.
- Airtable - Create a searchable product catalog with views for colors, sizes, and availability.
- Webhooks - Send completed run notifications and dataset information to another system.
- Make or Zapier - Trigger alerts, reports, or downstream catalog updates.
- API - Read dataset results programmatically from your own applications and scheduled workflows.
Apify datasets can be exported as JSON, CSV, Excel, XML, and other supported formats.
Frequently Asked Questions
How many H&M products can I collect?
You can request the number of records needed with results_wanted. The final count depends on matching H&M products, available result pages, and the max_pages setting.
Can I use an H&M URL instead of a keyword?
Yes. Add a public H&M search or category URL to startUrl. The Actor can infer the query and locale from the URL when that information is available.
How does the locale affect the results?
The locale selects the regional H&M catalog used for the search. For example, en_us returns the US catalog, while de_de returns the German catalog and its local pricing.
Does the output include product sizes and colors?
Yes. Records can include primary colors, swatch colors, all listed sizes, available sizes, out-of-stock sizes, and a size count when H&M provides those values.
Are empty values included in the dataset?
No. Empty and null values are removed before records are saved. A missing field usually means that H&M did not provide that value for the product.
Can I schedule recurring H&M product monitoring?
Yes. Create an Apify schedule to run the Actor hourly, daily, weekly, or at another interval, then export or forward each dataset through your preferred integration.
Can I export H&M product data to CSV or Excel?
Yes. Apify supports CSV, Excel, JSON, XML, and other dataset export formats for analysis and data pipelines.
What should I do if a run returns fewer products than expected?
First check that the keyword or URL returns products in the selected locale. Then increase max_pages, review the dataset preview, and consider enabling proxyConfiguration for a larger or repeated run.
Related Actors
- Nike Product Scraper - Collect Nike product listings for fashion and footwear price, assortment, and catalog research.
- Shein Product Scraper - Collect Shein product data for apparel catalog and competitive analysis workflows.
- Tokopedia Search Scraper - Gather marketplace product listings, prices, ratings, and reviews from Tokopedia.
- Namshi Product Scraper - Extract fashion and beauty product information from Namshi for regional ecommerce research.
Support
For issues, feature requests, or product-field questions, use the Issues tab on the Actor page or contact the developer through Apify.
Legal Notice
This Actor is intended for legitimate research, monitoring, and analytics using publicly available H&M product information. You are responsible for complying with H&M's terms, applicable privacy requirements, and all laws that apply to your use of the collected data.