Skip to main content
AI Studio  add-on for Spider.
Fashion & Beauty
hm.com Verified

H&M Fashion Scraper

Extract clothing listings, prices, color variants, and sustainability info from H&M product pages. Built on spider-browser .

Get started Docs
target
hm.com
success rate
99.9%
latency
~4ms
POST /fetch/hm.com/
return_format
curl -X POST https://api.spider.cloud/fetch/hm.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://hm.com/",
  "status": 200,
  "data": {
    "product_name": "string",
    "price": "string",
    "color_options": "string",
    "sizes": "string",
    "material": "string",
    "sustainability_tag": "string",
    "category": "string",
    "image_url": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from hm.com with a single POST. AI-resolved selectors, cached on the first call.

hm-fashion-scraper.ts
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();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

Product namePriceColor optionsSizesMaterialSustainability tagCategoryImage URL
Pricing

Fashion price tracking

Monitor product prices, sales, and stock availability on hm.com.

Anti-Bot

Protection bypass

Handle Cloudflare and custom bot detection on fashion e-commerce platforms.

Data

Product catalogs

Extract sizes, colors, materials, and style information from product listings.

Related

More Fashion & Beauty scrapers.

Start

Start scraping hm.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.