H&M Product Scraper 👗 avatar

H&M Product Scraper 👗

Pricing

from $0.99 / 1,000 results

Go to Apify Store
H&M Product Scraper 👗

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

Shahid Irfan

Maintained by Community

Actor stats

5

Bookmarked

28

Total users

6

Monthly active users

20 days ago

Last modified

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

FieldTypeDescription
idStringH&M product identifier.
trackingIdStringProduct tracking identifier when available.
productNameStringProduct title.
brandNameStringBrand name, normally H&M.
productUrlStringFull H&M product page URL.
formattedPriceStringPrice as displayed in the selected locale.
priceNumberNumeric product price.
priceMinNumberMinimum price listed for the product.
priceMaxNumberMaximum price listed for the product.
isNewProductBooleanIndicates whether the product is marked as new.
stockStateStringProduct availability state when provided by H&M.
isOnlineBooleanIndicates whether the product is available for online purchase.
isComingSoonBooleanIndicates whether the product is marked as coming soon.
colorNameStringPrimary product color name.
colorCodeStringPrimary product color code.
swatchColorNamesArrayColor names available through the product swatches.
swatchColorCodesArrayColor codes available through the product swatches.
allSizesArrayAll size labels listed for the product.
availableSizesArraySize labels currently shown as available.
outOfStockSizesArraySize labels currently shown as out of stock.
sizesCountNumberNumber of size labels listed for the product.
imageProductSrcStringPrimary product image URL.
imageModelSrcStringModel image URL when available.
galleryImagesArrayAdditional product gallery image URLs.
mainCatCodeStringH&M category code.
searchQueryStringKeyword used for the collection.
localeStringRegional H&M catalog used for the run.
pageNumberNumberResult 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

  1. Open H&M Product Scraper in Apify Console.
  2. Enter a keyword, or provide an H&M search or category URL in startUrl.
  3. Choose the regional locale when you need a catalog other than en_us.
  4. Set results_wanted and max_pages for the size of the collection.
  5. Run the Actor and review the dataset preview.
  6. 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

ParameterTypeRequiredDefaultDescription
startUrlStringNo-Optional public H&M search or category URL. The Actor can infer the query and locale from the URL.
keywordStringNo-Product keyword such as shirt, linen dress, or wool blazer. Provide this when startUrl is not enough to identify a search.
localeStringNoen_usH&M regional catalog in ll_cc format, such as en_us, de_de, or sv_se.
results_wantedIntegerNo20Maximum number of product records to save.
max_pagesIntegerNo10Safety cap for the number of result pages processed.
proxyConfigurationObjectNo{ "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

Collect up to 20 products for a general H&M keyword:

{
"keyword": "shirt",
"results_wanted": 20,
"max_pages": 3
}

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, or wool blazer when you need a focused dataset.
  • Start with results_wanted: 20 to confirm the query, locale, prices, and available fields before a larger run.
  • Use startUrl when 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.

  • 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.

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.