H&M Fashion Scraper
Extract clothing listings, prices, color variants, and sustainability info from H&M product pages. Powered by spider-browser .
Extract data in minutes
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
stealth: 2,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www2.hm.com/en_us/women/products/dresses.html");
await page.content(10000);
const data = await page.evaluate(`(() => {
const items = [];
document.querySelectorAll("article.hm-product-item").forEach(el => {
const name = el.querySelector(".item-heading a")?.textContent?.trim();
const price = el.querySelector(".item-price span")?.textContent?.trim();
const link = el.querySelector(".item-heading a")?.href;
if (name) items.push({ name, price, link });
});
return JSON.stringify({ total: items.length, items: items.slice(0, 10) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Structured data endpoint
Extract structured JSON from hm.com with a single POST request. AI-configured selectors, cached for fast repeat calls.
/fetch/hm.com/ curl -X POST https://api.spider.cloud/fetch/hm.com/ \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"return_format": "json"}' import requests
resp = requests.post(
"https://api.spider.cloud/fetch/hm.com/",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
json={"return_format": "json"},
)
print(resp.json()) const resp = await fetch("https://api.spider.cloud/fetch/hm.com/", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data); Data you can extract
Fashion price tracking
Monitor product prices, sales, and stock availability on hm.com.
Protection bypass
Handle Cloudflare and custom bot detection on fashion e-commerce platforms.
Product catalogs
Extract sizes, colors, materials, and style information from product listings.
More Fashion & Beauty scrapers
Extract product listings, pricing, size availability, and collection data from Zara fashion pages.
Extract fashion listings, brand names, pricing, and sale data from ASOS online store pages.
Extract fast fashion product data, flash deals, ratings, and inventory from Shein catalog pages.
Start scraping hm.com
Get your API key and start extracting data in minutes.