Commerce and retail
H&M data API
Read products from H&M with one key and one response shape.
Read H&M products by keyword, search-box suggestions, the markets and stores H&M publishes, the navigation tree, and the factories that make a product. Product rows use the same commerce schema as Amazon, Walmart and Target, so one parser handles all of them.
Products are keyed on the product id, the ten-digit number in an H&M product URL, such as 0685816001. Every search row carries one.
Your first call
curl "https://www.socialcrawl.dev/v1/hm/search?query=t-shirts" \
-H "x-api-key: sc_your_key_here"const url = new URL("https://www.socialcrawl.dev/v1/hm/search");
url.searchParams.set("query", "t-shirts");
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY! },
});
const data = await res.json();
console.log(data.data.items[0]);import os
import requests
res = requests.get(
"https://www.socialcrawl.dev/v1/hm/search",
headers={"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]},
params={
"query": "t-shirts",
},
)
data = res.json()
print(data["data"]["items"][0])Each row carries the product id, name, brand, current and original price, images and colour. It also carries sizes, availability and the product page URL. Measured on 22/11/2026: this call returned 36 products for 5 credits in under a second.
Pass a product id from a row to read the factories that make it:
curl "https://www.socialcrawl.dev/v1/hm/product/suppliers?product_id=0685816001" \
-H "x-api-key: sc_your_key_here"What it covers
| What you want | Call |
|---|---|
| Products for a keyword | GET /v1/hm/search |
| Search-box suggestions | GET /v1/hm/search/suggestions |
| Factories, suppliers and worker bands for a product | GET /v1/hm/product/suppliers |
| Every H&M store in a market | GET /v1/hm/stores |
| The markets H&M sells in | GET /v1/hm/countries |
| The website navigation tree | GET /v1/hm/categories |
What it does not cover
- Product detail by id. There is no product-detail endpoint, so read price, sizes and images from the search row.
- A near-me store search.
storesreturns every store in one market as a single page. - Reviews and ratings. H&M rows carry no rating.
- Anything behind an H&M login, such as orders or Club points.
All endpoints
6 endpoints available.
| Endpoint | Path | Credit Tier |
|---|---|---|
| Get the H&M category tree | /v1/hm/categories | standard (1cr) |
| List H&M countries and languages | /v1/hm/countries | standard (1cr) |
| Get H&M suppliers and factories for a product | /v1/hm/product/suppliers | advanced (5cr) |
| Search H&M products by keyword | /v1/hm/search | advanced (5cr) |
| Get H&M search suggestions | /v1/hm/search/suggestions | advanced (5cr) |
| List H&M stores in a country | /v1/hm/stores | advanced (5cr) |
How far back and how deep
Each list returns one page at a time. Send cursor for the next page, or max_items or max_pages to collect several pages in one call. A page size appears only where it has been verified. How paging works
| Path | Rows per page | Date window | One call collects |
|---|---|---|---|
/v1/hm/search | about 36 | none | up to 5,000 rows or 50 pages; limit up to 36 |
Platform notes
Pick the catalogue with language. language takes a language and region code such as en_us (the default), en_gb, de_de or fr_fr. It is a different code from the two-letter locale that countries returns, which is the value to pass as query to stores (us, gb, de).
Sort and filter search. sort_by takes relevance (default), newest, price_low or price_high. filters takes an H&M facet string copied from a live search payload, such as colorWithNames:black_000000. A guessed filter that H&M cannot parse fails the call instead of returning an unfiltered page.
Categories are the US tree. categories has no language parameter, so its links are the US ones.
Unknown ids differ by endpoint. An unknown country code on stores returns an empty list, while a product id H&M cannot resolve on product/suppliers fails the call.
