InsightSocial

H&M scraper API

The InsightSocial H&M API has 8 endpoints, from 20 credits a call. A search call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.

The H&M scraper API for product search, products with sizes, online stock and every colour, reviews with fit, stores, categories and the suppliers H&M names, in the H&M country you choose.

8 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card

curl "https://api.insightsocial.app/v1/hm/search?query=linen+shirt&country=GB" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "hm",
"endpoint": "/v1/hm/search",
"schema_version": "2",
"data": {
"query": "linen shirt",
"country": "GB",
"products": [
{
"id": "1234567001",
"name": "Regular Fit Linen Shirt",
"url": "https://www2.hm.com/en_gb/productpage.1234567001.html",
"price": {
"amount": 27.99,
"currency": "GBP"
},
"sale_price": null,
"colours": [
{
"id": "1234567001",
"name": "White"
},
{
"id": "1234567002",
"name": "Light beige"
}
],
"sizes": [
"XS",
"S",
"M",
"L",
"XL"
],
"image_url": "https://cdn.example.com/products/linen-shirt.jpg"
}
],
"pagination": {
"next_cursor": "eyJwYWdlIjoyfQ"
}
},
"unavailable": [],
"credits_used": 0,
"charge_reason": "miss",
"free_call": true
}

What H&M data can you get?

Public H&M data only, in the same JSON envelope as every other platform. Every H&M endpoint is beta: inside data it returns H&M's own structure under our naming rules (snake_case keys, string ids, ISO times where H&M gives a timestamp), not the shared profile and post schema, and fields may change.

Search and categories

Products for a query in a country, with prices, sale prices, colours, sizes and filters, up to 72 a page, search suggestions, and every category in the country's menu.

Products

One product by article id with its prices, sizes and online stock, every colour, images, materials, care and rating.

Reviews

A product's reviews with ratings, fit, the colour and size bought, and the rating summary.

Suppliers, stores and countries

The suppliers and factories H&M names for a product, with countries and worker counts, the stores in a country with hours and departments, and the countries H&M sells in.

What people build with the H&M API

  • Fashion price and assortment tracking

    Run the same searches in several H&M countries to compare prices, sale prices and the colours and sizes on offer.

  • Fit and review research

    Read reviews with the size and colour bought and how it fit, to see where a garment runs small or large.

  • Supply-chain research

    List the suppliers and factories H&M names for its products, with their countries and worker counts.

H&M API endpoints

All 8 H&M endpoints and their price in credits. Every one has a fixed price.

EndpointCreditsWhat it returns
/categories20List every category in an H&M country's menu, with its parent, path and page URL.
/countries20List the countries H&M sells in, with their region and the languages of each site.
/product40Get an H&M product with its prices, sizes and online stock, every colour, images, materials, care and rating.
/product/reviews40List an H&M product's reviews with ratings, fit, the colour and size bought, and the rating summary.
/product/suppliers20Get the suppliers and factories H&M names for a product, with countries and worker counts.
/search20Search H&M products in a country, with prices, sale prices, colours, sizes, filters and cursor paging.
/search/suggest20List H&M search suggestions and suggested pages for the start of a query.
/stores20List H&M stores in a country with addresses, coordinates, opening hours and departments.

Parameters, response fields and examples for each endpoint are in the H&M API reference.

How much does the H&M API cost?

H&M calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 searches at 20 credits each.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Repeats and retries

    A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.

  • One balance

    API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.

Not writing code?

Connect InsightSocial to Claude or ChatGPT and ask for H&M data in plain English. Same account, same credits.

Use it from Claude or ChatGPT

H&M API: frequently asked questions

The one you name with a two-letter country code, such as GB or DE, and optionally a language. The default is the US site. /v1/hm/countries lists the countries H&M sells in and the languages of each site.

The same key works for 86 more platforms

All platforms on one social media API